Skip to content
Permalink
Browse files

Give CHAR data type a separate detection, besides VARCHAR, for SQLite.

…Closes #870
  • Loading branch information
ansgarbecker committed Jan 29, 2020
1 parent ef2b310 commit 5ee148bdbd706e8d5e5d3a1ebd4eafb1691d9217
Showing with 13 additions and 1 deletion.
  1. +13 −1 source/dbstructures.pas
@@ -2078,7 +2078,7 @@ TSQLiteLib = class(TDbLib)
)
);

SQLiteDatatypes: Array[0..13] of TDBDatatype =
SQLiteDatatypes: Array[0..14] of TDBDatatype =
(
(
Index: dtUnknown;
@@ -2124,6 +2124,18 @@ TSQLiteLib = class(TDbLib)
LoadPart: False;
Category: dtcInteger;
),
(
Index: dtChar;
Name: 'CHAR';
Names: 'CHARACTER|CHAR|NCHAR|NATIVE CHARACTER';
HasLength: True;
RequiresLength: True;
HasBinary: False;
HasDefault: True;
LoadPart: True;
DefLengthSet: '50';
Category: dtcText;
),
(
Index: dtVarchar;
Name: 'VARCHAR';

0 comments on commit 5ee148b

Please sign in to comment.
You can’t perform that action at this time.