From 39edbd4debeecf585aefc9e782d3c8b38f77de37 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Fri, 10 Sep 2010 21:30:09 +0000 Subject: [PATCH] Fix VIEW code parser for name length of only 1 character. --- source/helpers.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/helpers.pas b/source/helpers.pas index 5b304cbe..377792a3 100644 --- a/source/helpers.pas +++ b/source/helpers.pas @@ -2422,7 +2422,7 @@ begin '(ALGORITHM\s*=\s*(\w+)\s+)?'+ '(DEFINER\s*=\s*\S+\s+)?'+ '(SQL\s+SECURITY\s+\w+\s+)?'+ - 'VIEW\s+`?\w[\w\s]+`?\s+'+ + 'VIEW\s+`?\w[\w\s]*`?\s+'+ '(\([^\)]\)\s+)?'+ 'AS\s+(.+)(\s+WITH\s+(\w+\s+)?CHECK\s+OPTION\s*)?$'; if rx.Exec(CreateCode) then begin