Christopher Thill wrote:
> I am wondering if there is a way to do database independent error trapping.
I'd like to invite you to the Torque-User mailing list at
[email protected]
> eSql = (SQLException) t;
> if ( !eSql.getSQLState().equals("23505") )
SQL-States are supposed to be standardized across different SQL systems
so this should work no matter what database you're using. See the
SQLSTATE specifications contained in the SQL 1999 standard.
Bye, Thomas.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]