mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-15 11:01:08 +08:00
Allow ANSI quotes in VIEW code. Fixes issue #2419
This commit is contained in:
@ -2911,7 +2911,7 @@ begin
|
|||||||
'(ALGORITHM\s*=\s*(\w+)\s+)?'+
|
'(ALGORITHM\s*=\s*(\w+)\s+)?'+
|
||||||
'(DEFINER\s*=\s*(\S+)\s+)?'+
|
'(DEFINER\s*=\s*(\S+)\s+)?'+
|
||||||
'(SQL\s+SECURITY\s+\w+\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+)?'+
|
'(\([^\)]\)\s+)?'+
|
||||||
'AS\s+(.+)(\s+WITH\s+(\w+\s+)?CHECK\s+OPTION\s*)?$';
|
'AS\s+(.+)(\s+WITH\s+(\w+\s+)?CHECK\s+OPTION\s*)?$';
|
||||||
if rx.Exec(CreateCode) then begin
|
if rx.Exec(CreateCode) then begin
|
||||||
|
Reference in New Issue
Block a user