mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Return value of FUNCTIONs can contain UNSIGNED keyword, which the regular expression based parser did not expect. Fixes issue #2177.
This commit is contained in:
@@ -2526,7 +2526,7 @@ begin
|
||||
rx.Expression := '\bLANGUAGE SQL\b';
|
||||
if rx.Exec(CreateCode) then
|
||||
Delete(CreateCode, rx.MatchPos[0], rx.MatchLen[0]);
|
||||
rx.Expression := '\bRETURNS\s+(\w+(\([^\)]*\))?)';
|
||||
rx.Expression := '\bRETURNS\s+(\w+(\([^\)]*\))?(\s+UNSIGNED)?)';
|
||||
if rx.Exec(CreateCode) then begin
|
||||
Returns := rx.Match[1];
|
||||
Delete(CreateCode, rx.MatchPos[0], rx.MatchLen[0]);
|
||||
|
||||
Reference in New Issue
Block a user