summaryrefslogtreecommitdiff
path: root/sqlparse
diff options
context:
space:
mode:
authorAndi Albrecht <albrecht.andi@gmail.com>2013-09-28 08:40:31 +0200
committerAndi Albrecht <albrecht.andi@gmail.com>2013-09-28 08:40:31 +0200
commitf4a152924fc6df8f42c9006f9f07aa3d26d78e82 (patch)
tree249e179f0cafbfbfaa6b6cd6264f3d2558a7d538 /sqlparse
parent3df9bf4054d6dff589a50225d87be11fa4817c2e (diff)
downloadsqlparse-f4a152924fc6df8f42c9006f9f07aa3d26d78e82.tar.gz
Fix tagging of identifiers by not taking single quoted strings into account (fixes #111).
Diffstat (limited to 'sqlparse')
-rw-r--r--sqlparse/engine/grouping.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sqlparse/engine/grouping.py b/sqlparse/engine/grouping.py
index 4ba90aa..3536a8b 100644
--- a/sqlparse/engine/grouping.py
+++ b/sqlparse/engine/grouping.py
@@ -145,7 +145,6 @@ def group_identifier(tlist):
or y.ttype is T.Operator
or y.ttype is T.Wildcard),
lambda y: (y.ttype in (T.String.Symbol,
- T.String.Single,
T.Name,
T.Wildcard,
T.Literal.Number.Integer,
@@ -165,7 +164,7 @@ def group_identifier(tlist):
# chooses the next token. if two tokens are found then the
# first is returned.
t1 = tl.token_next_by_type(
- i, (T.String.Symbol, T.String.Single, T.Name, T.Literal.Number.Integer,
+ i, (T.String.Symbol, T.Name, T.Literal.Number.Integer,
T.Literal.Number.Float))
t2 = tl.token_next_by_instance(i, (sql.Function, sql.Parenthesis))
if t1 and t2: