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:
Ansgar Becker
2014-10-16 18:09:03 +00:00
parent 6ac52567af
commit d2f3662626

View File

@@ -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;