mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Quote column names for quick filter, when column name matches an SQL function name. Closes #1398
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user