Cast bit buffer as boolean
This commit is contained in:
parent
562768d61e
commit
b70fdf907a
|
@ -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()
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue