Currently, BaseJDBCTestCase.assertSQLState() and JDBC.assertSQLState()
basically do an assertEquals() on the SQL state. If the SQL state
doesn't match the expected value, an AssertionFailure is raised, but
the original exception is thrown away.

Should we instead do something like this
  if (!expected.equals(sqle.getSQLState())) throw sqle;
?

This way, we preserve the stack trace and the error message, not only
the SQL state.

-- 
Knut Anders

Reply via email to