hudeven / log4jdbc

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

BUG the 146 line of net.sf.log4jdbc.BasicSqlFormatter.java #42

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

1.build a web project of  spring+ hibernate + struts+ log4jdbc+mysql
2.create a test table in mysql ,in web project write some CRUT java code,run 
the project ,and add or modify this value a'a" to a varchar field,will show  
the Exception java.util.NoSuchElementException;java.util.StringTokenizer
3.at the 146 line of net.sf.log4jdbc.BasicSqlFormatter.java ,this code : while 
( !"\"".equals( t ) );  throws that exception,

while i have used this code "while ( !"\"".equals( t ) && 
tokens.hasMoreTokens()  );" to replace it,the project is all right.

Original issue reported on code.google.com by zhuyx...@gmail.com on 2 Dec 2011 at 5:46