asanchez75 / log4jdbc

Automatically exported from code.google.com/p/log4jdbc
0 stars 0 forks source link

Cannot dump a select starting by a comment #45

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Set DriverSpy.DumpSqlSelect to true
2. Have a query like that: "/* some comments */ select * from There;
3. See that the query is not considered a select.

What is the expected output? What do you see instead?
Before testing if the query is an select (or any other type of query), comment 
blocks should be removed

What version of the product are you using? On what operating system?
1.2

Original issue reported on code.google.com by jfcrotea...@gmail.com on 23 Feb 2012 at 6:58

GoogleCodeExporter commented 8 years ago
I don't want to get into parsing the SQL-- That would add a lot of complexity, 
and could impact performance.

As noted on other issues in this issue tracker, the whole idea of filtering on 
the type of SQL probably was a bad idea as it's very hard to do that reliably 
when the SQL gets complex.

Original comment by arthur.b...@gmail.com on 22 Mar 2012 at 1:23