diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2019-03-11 12:45:11 +0100 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2019-03-11 12:45:11 +0100 |
| commit | cff61bb93a080c1becbf2c6cd33911bc206cf587 (patch) | |
| tree | 3683be35ea59d970be8ff0f46c77151615405636 /sqlparse/keywords.py | |
| parent | fcbccb849b56f29fb7f3ddb958d3e10279f8d939 (diff) | |
| download | sqlparse-cff61bb93a080c1becbf2c6cd33911bc206cf587.tar.gz | |
Avoid formatting of psql commands (fixes #469).
Diffstat (limited to 'sqlparse/keywords.py')
| -rw-r--r-- | sqlparse/keywords.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sqlparse/keywords.py b/sqlparse/keywords.py index ad85368..602051a 100644 --- a/sqlparse/keywords.py +++ b/sqlparse/keywords.py @@ -43,6 +43,8 @@ SQL_REGEX = { (r'%(\(\w+\))?s', tokens.Name.Placeholder), (r'(?<!\w)[$:?]\w+', tokens.Name.Placeholder), + (r'\\\w+', tokens.Command), + # FIXME(andi): VALUES shouldn't be listed here # see https://github.com/andialbrecht/sqlparse/pull/64 # IN is special, it may be followed by a parenthesis, but |
