From e796ad1d55a4f62c5e4b63ea320d9b065f7dda67 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Thu, 19 Feb 2026 18:45:48 +0100 Subject: [PATCH] feat: support BOOLEAN column type in MySQL Closes #1541 --- source/dbstructures.mysql.pas | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/source/dbstructures.mysql.pas b/source/dbstructures.mysql.pas index 21091981..f9751fe8 100644 --- a/source/dbstructures.mysql.pas +++ b/source/dbstructures.mysql.pas @@ -332,7 +332,7 @@ var // MySQL Data Type List and Properties - MySQLDatatypes: array [0..41] of TDBDatatype = + MySQLDatatypes: array [0..42] of TDBDatatype = ( ( Index: dbdtUnknown; @@ -361,6 +361,19 @@ var LoadPart: False; Category: dtcInteger; ), + ( + Index: dbdtBool; + NativeType: 1; + Name: 'BOOLEAN'; + Description: 'Synonym of TINYINT(1)'; + HasLength: False; + RequiresLength: False; + MaxSize: 127; + HasBinary: False; + HasDefault: True; + LoadPart: False; + Category: dtcInteger; + ), ( Index: dbdtSmallint; NativeType: 2;