Fix VIEW code parser for name length of only 1 character.

This commit is contained in:
Ansgar Becker
2010-09-10 21:30:09 +00:00
parent eb4ec87ba4
commit 39edbd4deb

View File

@@ -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