Cast bit buffer as boolean

This commit is contained in:
Mel O'Hagan 2023-01-04 15:18:53 +00:00
parent b7e4047016
commit 01f4820514
1 changed files with 3 additions and 0 deletions

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()
},
}