From d1b0c27d51cec4fdadc06415a2daa9a39fd52c97 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Sat, 30 Aug 2014 14:30:44 +0000 Subject: [PATCH] Fix unsupported AFTER/FIRST clause in ALTER TABLE ADD COLUMN... query on PostgreSQL --- source/table_editor.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/table_editor.pas b/source/table_editor.pas index dc4ccd09..e92b2f52 100644 --- a/source/table_editor.pas +++ b/source/table_editor.pas @@ -573,7 +573,7 @@ begin OverrideCollation := comboCollation.Text; ColSpec := Col.SQLCode(OverrideCollation); // Server version requirement, see http://dev.mysql.com/doc/refman/4.1/en/alter-table.html - if DBObject.Connection.ServerVersionInt >= 40001 then begin + if (DBObject.Connection.Parameters.NetTypeGroup = ngMySQL) and (DBObject.Connection.ServerVersionInt >= 40001) then begin if PreviousCol = nil then ColSpec := ColSpec + ' FIRST' else