mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Minor fix for rev 944: Don't add auto_increment to ALTER statement if it was empty (was silently converted to "0").
This commit is contained in:
@@ -304,7 +304,7 @@ begin
|
||||
AlterSpecs.Add( 'COLLATE ' + comboCollation.Text );
|
||||
|
||||
// Auto_increment
|
||||
if currentAutoincrement <> editAutoincrement.Text then
|
||||
if editAutoincrement.Enabled and (currentAutoincrement <> editAutoincrement.Text) then
|
||||
AlterSpecs.Add( 'AUTO_INCREMENT = ' + IntToStr( MakeInt(editAutoincrement.Text) ) );
|
||||
|
||||
if AlterSpecs.Count > 0 then
|
||||
|
||||
Reference in New Issue
Block a user