From a40c10b4c41f0306ded8e22cc5e4692492fa57db Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Thu, 16 Sep 2010 19:24:20 +0000 Subject: [PATCH] Return value of FUNCTIONs can contain UNSIGNED keyword, which the regular expression based parser did not expect. Fixes issue #2177. --- source/helpers.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/helpers.pas b/source/helpers.pas index 1b9270ed..c5a435d1 100644 --- a/source/helpers.pas +++ b/source/helpers.pas @@ -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]);