1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

Cast bit buffer as boolean

This commit is contained in:
Mel O'Hagan 2023-01-04 15:18:53 +00:00
parent 562768d61e
commit b70fdf907a

View file

@ -151,6 +151,9 @@ class MySQLIntegration extends Sql implements DatasourcePlus {
) {
return field.string()
}
if (field.type === "BIT" && field.length === 1) {
return field.buffer()?.[0]
}
return next()
},
}