Quote column names for quick filter, when column name matches an SQL function name. Closes #1398

This commit is contained in:
Ansgar Becker
2021-10-23 15:45:37 +02:00
parent e8d6eed8a5
commit 2537e592ec

View File

@ -4946,6 +4946,8 @@ begin
if not AlwaysQuote then begin
if MySQLKeywords.IndexOf(Result) > -1 then
AlwaysQuote := True
else if SQLFunctions.Names.IndexOf(Result) > -1 then
AlwaysQuote := True
else for i:=1 to Length(Result) do begin
if not CharInSet(Result[i], FIdentCharsNoQuote) then begin
AlwaysQuote := True;