Author: epbernard
Date: 2006-10-31 16:30:15 -0500 (Tue, 31 Oct 2006)
New Revision: 10670
Modified:
trunk/Hibernate3/src/org/hibernate/util/JDBCExceptionReporter.java
Log:
HHH-2202 Workaround Sybase weirdness
Modified: trunk/Hibernate3/src/org/hibernate/util/JDBCExceptionReporter.java
===================================================================
--- trunk/Hibernate3/src/org/hibernate/util/JDBCExceptionReporter.java 2006-10-31 21:24:28
UTC (rev 10669)
+++ trunk/Hibernate3/src/org/hibernate/util/JDBCExceptionReporter.java 2006-10-31 21:30:15
UTC (rev 10670)
@@ -20,13 +20,19 @@
if ( log.isWarnEnabled() ) {
try {
logWarnings( connection.getWarnings() );
- connection.clearWarnings();
}
catch (SQLException sqle) {
//workaround for WebLogic
log.debug("could not log warnings", sqle);
}
}
+ try {
+ //Sybase fail if we don't do that, sigh...
+ connection.clearWarnings();
+ }
+ catch (SQLException sqle) {
+ log.debug("could not clear warnings", sqle);
+ }
}
public static void logWarnings(SQLWarning warning) {
Show replies by date