mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Restrict column reordering to MySQL only. Not supported by MSSQL and PostgreSQL. See http://www.heidisql.com/forum.php?t=16328
This commit is contained in:
@@ -965,8 +965,12 @@ var Node: PVirtualNode;
|
||||
begin
|
||||
Node := listColumns.FocusedNode;
|
||||
btnRemoveColumn.Enabled := listColumns.SelectedCount > 0;
|
||||
btnMoveUpColumn.Enabled := Assigned(Node) and (Node <> listColumns.GetFirst);
|
||||
btnMoveDownColumn.Enabled := Assigned(Node) and (Node <> listColumns.GetLast);
|
||||
btnMoveUpColumn.Enabled := Assigned(Node)
|
||||
and (Node <> listColumns.GetFirst)
|
||||
and (DBObject.Connection.Parameters.NetTypeGroup = ngMySQL);
|
||||
btnMoveDownColumn.Enabled := Assigned(Node)
|
||||
and (Node <> listColumns.GetLast)
|
||||
and (DBObject.Connection.Parameters.NetTypeGroup = ngMySQL);
|
||||
|
||||
menuRemoveColumn.Enabled := btnRemoveColumn.Enabled;
|
||||
menuMoveUpColumn.Enabled := btnMoveUpColumn.Enabled;
|
||||
|
||||
Reference in New Issue
Block a user