Top |
GdaConnectionEventGdaConnectionEvent — Any event which has occurred on a GdaConnection |
Events occurring on a connection are each represented as a GdaConnectionEvent object. Each GdaConnection
is responsible for keeping a list of past events; that list can be consulted using the
gda_connection_get_events()
function.
GdaConnectionEventType
gda_connection_event_get_event_type (GdaConnectionEvent *event
);
Get event
's severity (from a simple notice to a fatal event)
const gchar *
gda_connection_event_get_description (GdaConnectionEvent *event
);
Get the description of the event. Note that is event
's type is GDA_CONNECTION_EVENT_COMMAND,
the the description is the SQL of the command.
GdaConnectionEventCode
gda_connection_event_get_gda_code (GdaConnectionEvent *event
);
Retrieve the code associated to event
.
const gchar *
gda_connection_event_get_source (GdaConnectionEvent *event
);
const gchar *
gda_connection_event_get_sqlstate (GdaConnectionEvent *event
);
Get the SQLSTATE value of event
. Even though the SQLSTATE values are specified by ANSI SQL and ODBC,
consult each DBMS for the possible values. However, the "00000" (success) value means that there is no error,
and the "HY000" (general error) value means an error but no better error code available.