mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-14 18:12:05 +08:00
Fix issue #1270, Table editor detects DEFAULT 'xyz' as DEFAULT NULL if table has collation
This commit is contained in:
@ -335,7 +335,7 @@ begin
|
|||||||
Props[2] := BoolToStr(False);
|
Props[2] := BoolToStr(False);
|
||||||
|
|
||||||
// Collation
|
// Collation
|
||||||
rxCol.Expression := '^(CHARACTER SET \w+)?\s+COLLATE (\w+)\b';
|
rxCol.Expression := '^(CHARACTER SET \w+\s+)?COLLATE (\w+)\b';
|
||||||
if rxCol.Exec(ColSpec) then begin
|
if rxCol.Exec(ColSpec) then begin
|
||||||
Props[6] := rxCol.Match[2];
|
Props[6] := rxCol.Match[2];
|
||||||
Delete(ColSpec, 1, rxCol.MatchLen[0]+1);
|
Delete(ColSpec, 1, rxCol.MatchLen[0]+1);
|
||||||
|
Reference in New Issue
Block a user