Skip to content

Commit e796ad1

Browse files
committed
feat: support BOOLEAN column type in MySQL
Closes #1541
1 parent e93924f commit e796ad1

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

source/dbstructures.mysql.pas

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ TMySqlProvider = class(TSqlProvider)
332332

333333

334334
// MySQL Data Type List and Properties
335-
MySQLDatatypes: array [0..41] of TDBDatatype =
335+
MySQLDatatypes: array [0..42] of TDBDatatype =
336336
(
337337
(
338338
Index: dbdtUnknown;
@@ -361,6 +361,19 @@ TMySqlProvider = class(TSqlProvider)
361361
LoadPart: False;
362362
Category: dtcInteger;
363363
),
364+
(
365+
Index: dbdtBool;
366+
NativeType: 1;
367+
Name: 'BOOLEAN';
368+
Description: 'Synonym of TINYINT(1)';
369+
HasLength: False;
370+
RequiresLength: False;
371+
MaxSize: 127;
372+
HasBinary: False;
373+
HasDefault: True;
374+
LoadPart: False;
375+
Category: dtcInteger;
376+
),
364377
(
365378
Index: dbdtSmallint;
366379
NativeType: 2;

0 commit comments

Comments
 (0)