Re: [gnome-db] Connection errors
- From: Dru <andru treshna com>
- Cc: GDA <gnome-db-list gnome org>
- Subject: Re: [gnome-db] Connection errors
- Date: Sun, 26 Sep 2004 16:01:53 +1200
Rodrigo Moya wrote:
On Mon, 2004-09-13 at 23:12 +1200, Dru wrote:
If a connection fails to create with gda_client_open_connection and
returns null, how can you get an error string describing the problem
with the connection? From my understanding you need a valid connection
to retrieve errors.
in that case, you need to attach to the "notify_event" signal on the
GdaClient. Once you get the GdaConnection, you can use
gda_connection_get_errors to get the errors.
So if connection is unsuccessful you still get a returned GdaConnection*
so you can then retrieve errors of that. Sorry i just found it a little
confusing initially.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]