summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndi Albrecht <albrecht.andi@gmail.com>2010-11-21 19:37:02 +0100
committerAndi Albrecht <albrecht.andi@gmail.com>2010-11-21 19:37:02 +0100
commitb56308b44ac5f60b757c576fdea4f91c5e215898 (patch)
tree770898248ee159d99d7370c13b8c52272331f6ad
parente3a64164683e34a597153005386f9ee53396c6a5 (diff)
downloadsqlparse-b56308b44ac5f60b757c576fdea4f91c5e215898.tar.gz
Add VARCHAR2 and LONG to keywords (fixes issue16, fixes issue19).
-rw-r--r--CHANGES2
-rw-r--r--sqlparse/keywords.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 666e3fb..44e9328 100644
--- a/CHANGES
+++ b/CHANGES
@@ -10,7 +10,7 @@ Bug Fixes
* Better detection of escaped single quotes (issue13, reported by
Martin Brochhaus, patch by bluemaro with test case by Dan Carley).
* Lots of minor fixes targeting encoding, indentation, statement
- parsing and more (issues 12, 14, 15).
+ parsing and more (issues 12, 14, 15, 16, 19).
* Code cleanup with a pinch of refactoring.
Release 0.1.1 (May 6, 2009)
diff --git a/sqlparse/keywords.py b/sqlparse/keywords.py
index 0eb5f8a..986e8f2 100644
--- a/sqlparse/keywords.py
+++ b/sqlparse/keywords.py
@@ -508,12 +508,14 @@ KEYWORDS = {
'INT': tokens.Name.Builtin,
'INTEGER': tokens.Name.Builtin,
'INTERVAL': tokens.Name.Builtin,
+ 'LONG': tokens.Name.Builtin,
'NUMBER': tokens.Name.Builtin,
'NUMERIC': tokens.Name.Builtin,
'REAL': tokens.Name.Builtin,
'SERIAL': tokens.Name.Builtin,
'SMALLINT': tokens.Name.Builtin,
'VARCHAR': tokens.Name.Builtin,
+ 'VARCHAR2': tokens.Name.Builtin,
'VARYING': tokens.Name.Builtin,
'INT8': tokens.Name.Builtin,
'SERIAL8': tokens.Name.Builtin,