Thomas Vandahl
Sat, 10 Feb 2007 12:03:18 -0800
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 torque-user@db.apache.org
> 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]