mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 03:01:07 +08:00
Fix wrong "DROP [index name]" clause when turning a normal key into a primary key. Fixes issue #2011.
This commit is contained in:
@ -2642,6 +2642,7 @@ begin
|
||||
if Key.Name = '' then Key.Name := rx.Match[2]; // PRIMARY
|
||||
Key.OldName := Key.Name;
|
||||
Key.IndexType := rx.Match[2];
|
||||
Key.OldIndexType := Key.IndexType;
|
||||
Key.Algorithm := rx.Match[7];
|
||||
if Key.IndexType = '' then Key.IndexType := 'KEY'; // KEY
|
||||
Key.Columns := Explode(',', rx.Match[5]);
|
||||
|
Reference in New Issue
Block a user