diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2010-11-21 19:37:02 +0100 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2010-11-21 19:37:02 +0100 |
| commit | b56308b44ac5f60b757c576fdea4f91c5e215898 (patch) | |
| tree | 770898248ee159d99d7370c13b8c52272331f6ad | |
| parent | e3a64164683e34a597153005386f9ee53396c6a5 (diff) | |
| download | sqlparse-b56308b44ac5f60b757c576fdea4f91c5e215898.tar.gz | |
Add VARCHAR2 and LONG to keywords (fixes issue16, fixes issue19).
| -rw-r--r-- | CHANGES | 2 | ||||
| -rw-r--r-- | sqlparse/keywords.py | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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, |
