mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Fix bug #160 : interface allows selecting autoinc without index or key. Not the neatest solution as the PK checkbox could be unchecked again if AI is unchecked but that didn't seem worth the hacks that would need. The table creation dialog should be reinvented some day.
This commit is contained in:
@ -450,6 +450,8 @@ procedure TCreateTableForm.CheckBoxAutoincrementClick(Sender: TObject);
|
||||
begin
|
||||
// AutoIncrement
|
||||
cols[index].AutoIncrement := CheckBoxAutoIncrement.Checked;
|
||||
// Fix bug #160 - auto increment is only valid for PK columns
|
||||
CheckboxPrimary.Checked := True;
|
||||
end;
|
||||
|
||||
procedure TCreateTableForm.Button1Click(Sender: TObject);
|
||||
|
Reference in New Issue
Block a user