andialbrecht / crunchyfrog

Head over to RunSQLRun, the successor of CrunchyFrog
http://runsqlrun.org
GNU General Public License v3.0
4 stars 2 forks source link

sqlparse.sqlsplit doesn't exist #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Set the preference "split SQL statements", and then try to execute any query.

The following error appears in the shell where you run crunchyfrog: 

Traceback (most recent call last):
  File "/home/dneary/src/crunchyfrog-0.3.2/cf/ui/mainwindow.py", line 547,
in on_query_execute
    self.get_active_editor().execute_query()
  File "/home/dneary/src/crunchyfrog-0.3.2/cf/ui/editor.py", line 338, in
execute_query
    stmts = sqlparse.sqlsplit(statement, dialect=dialect)
AttributeError: 'module' object has no attribute 'sqlsplit'

Fix: Replace sqlsplit by split_str in editor.py (2 occurrences).

In version 0.3.2.

Original issue reported on code.google.com by nea...@gmail.com on 6 Feb 2009 at 5:27

GoogleCodeExporter commented 9 years ago
Please download version 0.3.3 (just released a few hours ago). It should 
include a
fix for this issue.

Original comment by albrecht.andi on 6 Feb 2009 at 6:35

GoogleCodeExporter commented 9 years ago

Original comment by albrecht.andi on 9 Feb 2009 at 10:33