Author: epbernard
Date: 2006-10-31 16:24:28 -0500 (Tue, 31 Oct 2006)
New Revision: 10669
Modified:
branches/Branch_3_2/Hibernate3/src/org/hibernate/util/JDBCExceptionReporter.java
Log:
HHH-2202
Modified:
branches/Branch_3_2/Hibernate3/src/org/hibernate/util/JDBCExceptionReporter.java
===================================================================
---
branches/Branch_3_2/Hibernate3/src/org/hibernate/util/JDBCExceptionReporter.java 2006-10-31
15:34:22 UTC (rev 10668)
+++
branches/Branch_3_2/Hibernate3/src/org/hibernate/util/JDBCExceptionReporter.java 2006-10-31
21:24:28 UTC (rev 10669)
@@ -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