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:
Ansgar Becker
2007-09-24 20:02:39 +00:00
parent b9155a63ef
commit 6a36dbf83f

View File

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