wood burning stoves 2.0*
The moose likes JDBC and the fly likes SQLException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "SQLException" Watch "SQLException" New topic
Author

SQLException

Cameron Park
Ranch Hand

Joined: Apr 06, 2001
Posts: 371
Hi, I have a question about a code snippet.
SQLWarning warnings=connection.getWarnings();
while(warnings!=null){
System.err.println(connection.getWarnings());//commented
warnings=warnings.getNextWarning();
}
On the commented line, in order to get all the subsequent SQLWarning, shouldn't it be
System.err.println(warnings);
instead?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SQLException
 
Similar Threads
How do I retrieve an SQLWarning?
Execution freezes
JDBC
About SQLWarning
some java interview Questions