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

Executing lines with comment at the end fails #88

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to run "select 1; -- a comment"
2.
3.

What is the expected output? What do you see instead?

The application sees the comment as a separate statement and tries to 
execute it, which leads to an error at least when using PostgreSQL. It 
should ignore the comment. Note, the application may behave different when 
the cursor is before or after the semicolon (F5, Shift-F5).

Please use labels and text to provide additional information.

Original issue reported on code.google.com by albrecht.andi on 28 Jan 2010 at 9:26

GoogleCodeExporter commented 9 years ago
This was a bug in sqlparse and will be release in sqlparse 0.1.2: 
http://code.google.com/p/python-sqlparse/source/detail?r=8dabae0c6cf5bdd609dff5f
04d01b3f41d61356b

Original comment by albrecht.andi on 15 Nov 2010 at 9:58