Merge pull request #9221 from Budibase/bug/sev3/mysql-bit-boolean

MySQL convert bit to boolean
This commit is contained in:
Michael Drury 2023-01-05 16:14:40 +00:00 committed by GitHub
commit 223ac31de8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

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