From 2be0ebd8832dcb3b1d10c6a58490c9a07529ed93 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 26 Aug 2014 22:40:15 +0200 Subject: [PATCH] Minor fix (e.g. Oracle identifier names can contain character $) --- lib/core/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/common.py b/lib/core/common.py index cd19c4630..b94743dba 100755 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -1260,7 +1260,7 @@ def expandAsteriskForColumns(expression): the SQL query string (expression) """ - asterisk = re.search("^SELECT(\s+TOP\s+[\d]+)?\s+\*\s+FROM\s+([\w\.\_]+)\s*", expression, re.I) + asterisk = re.search("^SELECT(\s+TOP\s+[\d]+)?\s+\*\s+FROM\s+`?([^`\s()]+)", expression, re.I) if asterisk: infoMsg = "you did not provide the fields in your query. "