Files
impala/shell/ext-py/sqlparse-0.1.19
Fredy Wijaya 4cdb6dfa6d IMPALA-6337: Fix infinite loop in Impala shell
This patch fixes a bug in sqlparse where sqlparse incorrectly splits a
statement that has a new line inside double quotes. The bug in sqlparse
causes Impala shell to go to infinite loop when a statement contains a
new line inside double quotes.

The patch in sqlparse is based on the upstream fix at
https://github.com/andialbrecht/sqlparse/pull/396

Testing:
- Added new end-to-end shell tests
- Ran end-to-end shell tests

Change-Id: I9142f21a888189d351f00ce09baeba123bc0959b
Reviewed-on: http://gerrit.cloudera.org:8080/9195
Reviewed-by: David Knupp <dknupp@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
2018-05-12 19:29:33 +00:00
..

python-sqlparse - Parse SQL statements
======================================

sqlparse is a non-validating SQL parser module for Python.

|buildstatus|_


Install
-------

Run::

  python setup.py install

to install python-sqlparse on your system.

python-sqlparse is compatible with Python 2 (>= 2.5) and Python 3 (>= 3.2).


Run Tests
---------

To run the test suite run::

  tox

Note, you'll need tox installed, of course.


Links
-----

Project Page
  https://github.com/andialbrecht/sqlparse

Documentation
  http://readthedocs.org/docs/sqlparse/en/latest/

Discussions
  http://groups.google.com/group/sqlparse

Issues/Bugs
  https://github.com/andialbrecht/sqlparse/issues

Online Demo
  http://sqlformat.org


python-sqlparse is licensed under the BSD license.

Parts of the code are based on pygments written by Georg Brandl and others.
pygments-Homepage: http://pygments.org/

.. |buildstatus| image:: https://secure.travis-ci.org/andialbrecht/sqlparse.png?branch=master
.. _buildstatus: http://travis-ci.org/#!/andialbrecht/sqlparse