Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Mar 30, 2015 · 0 comments
Open

Comments

@GoogleCodeExporter
Copy link


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 [email protected] on 2 Dec 2011 at 5:46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant