From 6a36dbf83ff55b1ccec80fcd6c15593df67d6dd5 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Mon, 24 Sep 2007 20:02:39 +0000 Subject: [PATCH] Minor fix for rev 944: Don't add auto_increment to ALTER statement if it was empty (was silently converted to "0"). --- source/tbl_properties.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/tbl_properties.pas b/source/tbl_properties.pas index 76697ada..58793acf 100644 --- a/source/tbl_properties.pas +++ b/source/tbl_properties.pas @@ -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