mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Make regular expression stable against commas in data types, such as DECIMAL(10,7). Keeping compatibility to spaces in data types, like INT UNSIGNED. Fixes issue #1554.
This commit is contained in:
@ -168,7 +168,7 @@ begin
|
||||
if Create[i] = '(' then
|
||||
Inc(ParenthesesCount);
|
||||
end;
|
||||
rx.Expression := '(^|,)\s*((IN|OUT|INOUT)\s+)?(\S+)\s+([^,]+)';
|
||||
rx.Expression := '(^|,)\s*((IN|OUT|INOUT)\s+)?(\S+)\s+([^\s,\(]+(\([^\)]*\))?[^,]*)';
|
||||
if rx.Exec(Params) then while true do begin
|
||||
Context := UpperCase(rx.Match[3]);
|
||||
if Context = '' then
|
||||
|
Reference in New Issue
Block a user