TvPlanIt: Take care of different postgresql protocol names in zeos. (https://forum.lazarus.freepascal.org/index.php/topic,64787.msg493037.html)

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8932 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2023-10-04 20:26:24 +00:00
parent 31205a2ddc
commit 23030c0377

View File

@ -132,7 +132,7 @@ begin
FIdFieldTypeNameInSQL := 'INTEGER NOT NULL PRIMARY KEY'; // This works for firebird v2.x and v3 when triggers & generators are provided
FBoolFieldTypenameInSQL := 'BOOLEAN';
end else
if protocol = 'postgresql' then
if pos('postgresql', protocol) > 0 then
FIdFieldTypeNameInSQL := 'SERIAL NOT NULL PRIMARY KEY'
else
if protocol = 'sqlite' then