db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r1068702 - /db/derby/code/trunk/java/client/org/apache/derby/client/am/Statement.java
Date Wed, 09 Feb 2011 00:23:56 GMT
Author: dag
Date: Wed Feb  9 00:23:56 2011
New Revision: 1068702

URL: http://svn.apache.org/viewvc?rev=1068702&view=rev
Log:
DERBY-5011 Client driver lexer to determine statement type: fix bad attempt at incrementing
a variable

Patch fix_bad_increment_dhw. Contributed by Dave Brosius,dbrosius at apache dot org

Modified:
    db/derby/code/trunk/java/client/org/apache/derby/client/am/Statement.java

Modified: db/derby/code/trunk/java/client/org/apache/derby/client/am/Statement.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/client/org/apache/derby/client/am/Statement.java?rev=1068702&r1=1068701&r2=1068702&view=diff
==============================================================================
--- db/derby/code/trunk/java/client/org/apache/derby/client/am/Statement.java (original)
+++ db/derby/code/trunk/java/client/org/apache/derby/client/am/Statement.java Wed Feb  9 00:23:56
2011
@@ -2448,10 +2448,10 @@ public class Statement implements java.s
                 case '-':
                     if (idx == sql.length() - 1) {
                         // no more characters, so this is the token
-                        tokenFound = "/";
+                        tokenFound = "-";
                     } else if (sql.charAt(idx + 1) == '-') {
                         state = INSIDE_SIMPLECOMMENT;
-                        idx = idx++;
+                        ++idx;
                     }
 
                     idx++;



Mime
View raw message