Fix unsupported AFTER/FIRST clause in ALTER TABLE ADD COLUMN... query on PostgreSQL

This commit is contained in:
Ansgar Becker
2014-08-30 14:30:44 +00:00
parent 3886bee7e3
commit d1b0c27d51

View File

@ -573,7 +573,7 @@ begin
OverrideCollation := comboCollation.Text; OverrideCollation := comboCollation.Text;
ColSpec := Col.SQLCode(OverrideCollation); ColSpec := Col.SQLCode(OverrideCollation);
// Server version requirement, see http://dev.mysql.com/doc/refman/4.1/en/alter-table.html // 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 if PreviousCol = nil then
ColSpec := ColSpec + ' FIRST' ColSpec := ColSpec + ' FIRST'
else else