From dcaacaebef837034eaf3ecd83e9b40f3bc7fd1f7 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Wed, 13 Apr 2011 20:12:48 +0000 Subject: [PATCH] Quote identifier in filter dummy SQL connection-independently. --- source/main.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/main.pas b/source/main.pas index b8b1ea34..a30cbe87 100644 --- a/source/main.pas +++ b/source/main.pas @@ -4658,7 +4658,7 @@ begin // 1. find the currently edited sql-statement around the cursor position in synmemo if Editor = SynMemoFilter then begin // Concat query segments, so the below regular expressions can find structure - sql := 'SELECT * FROM `'+ActiveDbObj.Name+'` WHERE ' + Editor.Text; + sql := 'SELECT * FROM '+ActiveDbObj.QuotedName+' WHERE ' + Editor.Text; end else begin // Proposal in one of the query tabs QueryMarkers := GetSQLSplitMarkers(Editor.Text);