diff options
| author | Victor Uriarte <victor.m.uriarte@intel.com> | 2016-05-11 04:22:10 -0700 |
|---|---|---|
| committer | Victor Uriarte <victor.m.uriarte@intel.com> | 2016-05-11 04:54:03 -0700 |
| commit | 6748b48adc76491d3cdef5794ddd0731df0d3418 (patch) | |
| tree | 92e321aa6e9d05b26307b700e925925ea7b3d918 /examples | |
| parent | 1e770d9b99983fa82375b71c5b3f5d8c6bb1a72e (diff) | |
| download | sqlparse-6748b48adc76491d3cdef5794ddd0731df0d3418.tar.gz | |
refactor sql.py functions
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/column_defs_lowlevel.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/column_defs_lowlevel.py b/examples/column_defs_lowlevel.py index 9e945d4..e804bb2 100644 --- a/examples/column_defs_lowlevel.py +++ b/examples/column_defs_lowlevel.py @@ -15,7 +15,7 @@ SQL = """CREATE TABLE foo ( parsed = sqlparse.parse(SQL)[0] # extract the parenthesis which holds column definitions -par = parsed.token_next_by_instance(0, sqlparse.sql.Parenthesis) +par = parsed.token_next_by(i=sqlparse.sql.Parenthesis) def extract_definitions(token_list): |
