sql query cannot have -- (dash dash) token in strings
A Java SQL client for any JDBC compliant database
Brought to you by:
colbell,
gerdwagner
Sorry, I can't reproduce the problem. Could you post an example SQL?
I lost the single quote example, I'll keep looking.
Here's one version of the double:
select '-- ' || to_char(CURRENT_TIMESTAMP, 'YYYY-MM-DD HH24:MI:SS') as "-- Insert Generated DateTime" from dual
this version will work with the space inserted
select '-- ' || to_char(CURRENT_TIMESTAMP, 'YYYY-MM-DD HH24:MI:SS') as "- - Insert Generated DateTime" from dual
The problem I could reproduce was that the string concatenation '||' was marked as error. Triggered by this a new parser was integrated, see https://github.com/JSQLParser/JSqlParser. It may be that other problems you saw are now solved, too. It would be nice if you had a look at the latest snapshot:
https://sourceforge.net/projects/squirrel-sql/files/3-snapshots/
Thanks Gerd