andialbrecht / crunchyfrog

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

Python errors trying to execute/explain SQL statements #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I downloaded CruncyFrog 0.3.2 from this page: http://lwn.net/Articles/317313/

I encountered some Python errors when trying to execute a SQL query using
the toolbar buttons after connecting to a SQLite v3 database and selecting
it in the left-hand view.

Traceback (most recent call last):                            
  File "/home/robert/src/crunchyfrog-0.3.2/cf/ui/mainwindow.py", line 547,
in on_query_execute
    self.get_active_editor().execute_query()                              

  File "/home/robert/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'    

Replacing references to 'sqlsplit' with 'split_str' appeared to fix the
problem.

Original issue reported on code.google.com by robertkn...@gmail.com on 5 Feb 2009 at 10:35

GoogleCodeExporter commented 9 years ago
Thanks for reporting. This is of course the most ugly bug in this release and 
already
fixed in the current development version (see issue27, comment 1 mentions a
workaround). A bug fix release is in preparation and should be released pretty 
soon.

Original comment by albrecht.andi on 5 Feb 2009 at 10:49