mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Fix detection of DEFAULT value in CREATE TABLE code of MS SQL tables, which is wrapped in parentheses. See http://www.heidisql.com/forum.php?t=16748
This commit is contained in:
@@ -4566,7 +4566,7 @@ begin
|
||||
Col.DefaultType := cdtCurTSUpdateTS;
|
||||
end;
|
||||
Delete(ColSpec, 1, rxCol.MatchLen[0]);
|
||||
end else if (ColSpec[1] = '''') or (Copy(ColSpec, 1, 2) = 'b''') then begin
|
||||
end else if (ColSpec[1] = '''') or (Copy(ColSpec, 1, 2) = 'b''') or (Copy(ColSpec, 1, 2) = '(''') then begin
|
||||
InLiteral := True;
|
||||
LiteralStart := Pos('''', ColSpec)+1;
|
||||
for i:=LiteralStart to Length(ColSpec) do begin
|
||||
|
||||
Reference in New Issue
Block a user