From 9d18bd433e06cd54e75c412671a48befb07550d7 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Tue, 16 Mar 2010 23:04:01 +0000 Subject: [PATCH] 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. --- source/helpers.pas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/helpers.pas b/source/helpers.pas index 4621ceb9..86ef42c9 100644 --- a/source/helpers.pas +++ b/source/helpers.pas @@ -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