From b70fdf907ad9da0d534170947dd571925b48003f Mon Sep 17 00:00:00 2001 From: Mel O'Hagan Date: Wed, 4 Jan 2023 15:18:53 +0000 Subject: [PATCH] Cast bit buffer as boolean --- packages/server/src/integrations/mysql.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/server/src/integrations/mysql.ts b/packages/server/src/integrations/mysql.ts index 136d84361a..1cd9a356b3 100644 --- a/packages/server/src/integrations/mysql.ts +++ b/packages/server/src/integrations/mysql.ts @@ -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() }, }