mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 20:00:16 +08:00
Fix unsupported AFTER/FIRST clause in ALTER TABLE ADD COLUMN... query on PostgreSQL
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user