mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Don't touch X() SQL function from being uppercased and detected as keyword in pretty formatter, so that hex values like "0x0101" don't break. Fixes issue #1736.
This commit is contained in:
@@ -3032,7 +3032,8 @@ begin
|
||||
AllKeywords := TStringList.Create;
|
||||
AllKeywords.Text := MySQLKeywords.Text;
|
||||
for i:=Low(MySQLFunctions) to High(MySQLFunctions) do begin
|
||||
if MySQLFunctions[i].Declaration <> '' then
|
||||
// Leave out operator functions like ">>", and the "X()" function so hex values don't get touched
|
||||
if (MySQLFunctions[i].Declaration <> '') and (MySQLFunctions[i].Name <> 'X') then
|
||||
AllKeywords.Add(MySQLFunctions[i].Name);
|
||||
end;
|
||||
for i:=Low(Datatypes) to High(Datatypes) do
|
||||
|
||||
Reference in New Issue
Block a user