arthurblake / log4jdbc

log4jdbc is a Java JDBC driver that can log SQL and/or JDBC calls (and optionally SQL timing information) for other JDBC drivers using the Simple Logging Facade For Java (SLF4J) logging system.
506 stars 148 forks source link

Get "one-liner" sql queries #44

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice to have an option in DriverSpy to strip new lines and replace 
them by " ", something like
sql.replaceAll("\\s+", " ").

What is the expected output? What do you see instead?
Something like:
select *
from someTable
where column = 'something'

would become:
select * from someTable where column = 'something'

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

GoogleCodeExporter commented 9 years ago

Original comment by arthur.b...@gmail.com on 5 Mar 2012 at 11:58