From 3e4836839b4a2f0a2ff7531a1deb4b7b51c9bfbf Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Thu, 19 May 2011 22:06:28 +0000 Subject: [PATCH] Allow ANSI quotes in VIEW code. Fixes issue #2419 --- source/dbconnection.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dbconnection.pas b/source/dbconnection.pas index 6aa6b6b1..f265d578 100644 --- a/source/dbconnection.pas +++ b/source/dbconnection.pas @@ -2911,7 +2911,7 @@ begin '(ALGORITHM\s*=\s*(\w+)\s+)?'+ '(DEFINER\s*=\s*(\S+)\s+)?'+ '(SQL\s+SECURITY\s+\w+\s+)?'+ - 'VIEW\s+(`?(\w[\w\s\-]*)`?\.)?(`?(\w[\w\s\-]*)`?)?\s+'+ + 'VIEW\s+(["`]?(\w[\w\s\-]*)["`]?\.)?(["`]?(\w[\w\s\-]*)["`]?)?\s+'+ '(\([^\)]\)\s+)?'+ 'AS\s+(.+)(\s+WITH\s+(\w+\s+)?CHECK\s+OPTION\s*)?$'; if rx.Exec(CreateCode) then begin