Type required
Title often-used SQLStates now predefined in connectivity/dbexception
Posted by [EMAIL PROTECTED]
Affected [EMAIL PROTECTED],-
Effective from CWS rowsetdel


Summary

connectivity/dbexception.hxx

namespace dbtools {
+ enum StandardSQLState
+ getStandardSQLState
+ getStandardSQLStateAscii
+ throwSQLException( const sal_Char*, const sal_Char*, ... )
+ throwSQLException( const sal_Char*, StandardSQLState, ... )
}


Description
An enum StandardSQLState has been introduced in
connectivity/dbexception.hxx, which defines a number of often-used SQL
States.

getStandardSQLState and getStandardSQLStateAscii return a string
describing such a state (e.g. "HY010" for SQL_FUNCTION_SEQUENCE_ERROR).

Additionally, throwSQLException has been introduced, in generalization
of the existing throwSpecialFooSQLException functions. There's also a
version of throwSQLException which takes a StandardSQLState enum value.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to