Merge lp:~wgrant/python-oops-tools/new-sqlparse into lp:python-oops-tools

Proposed by William Grant
Status: Merged
Approved by: William Grant
Approved revision: 33
Merged at revision: 33
Proposed branch: lp:~wgrant/python-oops-tools/new-sqlparse
Merge into: lp:python-oops-tools
Diff against target: 12 lines (+1/-1)
1 file modified
versions.cfg (+1/-1)
To merge this branch: bzr merge lp:~wgrant/python-oops-tools/new-sqlparse
Reviewer Review Type Date Requested Status
William Grant code Approve
Review via email: mp+98950@code.launchpad.net

Commit message

Upgrade sqlparse to 0.1.3 to get some crash fixes.

Description of the change

We currently use sqlparse 0.1.2, which crashes when reindenting some odd SQL:

>>> sqlparse.format('SELECT CASE (foo) WHEN 0 THEN 1 END', reindent=True)
u'SELECT CASE (foo)\n WHEN 0 THEN 1\n END'
>>> sqlparse.format('SELECT CASE(foo) WHEN 0 THEN 1 END', reindent=True)
Traceback (most recent call last):
  File "<console>", line 1, in <module>

This branch just upgrades us to 0.1.3, which fixes this particular issue.

To post a comment you must log in.
Revision history for this message
William Grant (wgrant) :
review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'versions.cfg'
2--- versions.cfg 2012-02-01 04:41:40 +0000
3+++ versions.cfg 2012-03-23 00:52:18 +0000
4@@ -12,7 +12,7 @@
5 # this can be changed and package in the download-cache can be deleted.
6 South = 0.7.3-r929
7 Sphinx = 1.0.7
8-sqlparse = 0.1.2
9+sqlparse = 0.1.3
10 djangorecipe = 0.19.2
11 distribute = 0.6.12
12 docutils = 0.6

Subscribers

People subscribed via source and target branches

to all changes: