summaryrefslogtreecommitdiff
path: root/sqlparse/lexer.py
diff options
context:
space:
mode:
authorYago Riveiro <yago.riveiro@gmail.com>2013-04-25 15:21:44 +0100
committerYago Riveiro <yago.riveiro@gmail.com>2013-04-25 15:21:44 +0100
commit572b69c1e630506d81ef594b15febc37bb011318 (patch)
tree0b9ba96e0bff162dd59dbac3f6f944cc5e3da932 /sqlparse/lexer.py
parentfd480bf40646cdb53bce377db5d11dc52a760dad (diff)
downloadsqlparse-572b69c1e630506d81ef594b15febc37bb011318.tar.gz
Added STRAIGHT_JOIN token.
Diffstat (limited to 'sqlparse/lexer.py')
-rw-r--r--sqlparse/lexer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlparse/lexer.py b/sqlparse/lexer.py
index 4d200a6..dd6ecc0 100644
--- a/sqlparse/lexer.py
+++ b/sqlparse/lexer.py
@@ -196,7 +196,7 @@ class Lexer(object):
# not a real string literal in ANSI SQL:
(r'(""|".*?[^\\]")', tokens.String.Symbol),
(r'(\[.*[^\]]\])', tokens.Name),
- (r'(LEFT |RIGHT )?(INNER |OUTER )?JOIN\b', tokens.Keyword),
+ (r'(LEFT |RIGHT )?(INNER |OUTER |STRAIGHT)?JOIN\b', tokens.Keyword),
(r'END( IF| LOOP)?\b', tokens.Keyword),
(r'NOT NULL\b', tokens.Keyword),
(r'CREATE( OR REPLACE)?\b', tokens.Keyword.DDL),