Update of /cvsroot/squirrel-sql/sql12/fw/src/net/sourceforge/squirrel_sql/fw/sql
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv1135/fw/src/net/sourceforge/squirrel_sql/fw/sql
Modified Files:
QueryTokenizer.java
Log Message:
2891190 (block comment content produces error). Ignore statement separators that are embedded in multi-line comments - they should not be used to terminate the statement since all text in a multi-line comment has no bearing on the statements that surround it.
Index: QueryTokenizer.java
===================================================================
RCS file: /cvsroot/squirrel-sql/sql12/fw/src/net/sourceforge/squirrel_sql/fw/sql/QueryTokenizer.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** QueryTokenizer.java 13 Jul 2009 23:24:53 -0000 1.23
--- QueryTokenizer.java 28 Feb 2010 22:15:40 -0000 1.24
***************
*** 237,241 ****
getLenOfQuerySepIfAtLastCharOfQuerySep(script, i, _querySep, isInLiteral);
! if(-1 < querySepLen)
{
int newLength = curQuery.length() - querySepLen;
--- 237,241 ----
getLenOfQuerySepIfAtLastCharOfQuerySep(script, i, _querySep, isInLiteral);
! if(-1 < querySepLen && !isInMultiLineComment)
{
int newLength = curQuery.length() - querySepLen;
|