Quoting Duncan McQueen <[EMAIL PROTECTED]>:

> Are there any good examples showing proper use of catching an error
> from the database driver?  As I mentioned - my MinGW compiled program
> really blows up when the database doesn't exist - I am just looking
> for a basic example as to catching the error.
>

These are probably not "good" examples, but still:

1) look at the libdbi-drivers/tests/test_dbi.c test program which  
handles a couple of errors gracefully

2) this is what my other pet project uses to connect to a database  
(look for connect_to_db()):
http://refdb.svn.sourceforge.net/viewvc/refdb/refdb/trunk/src/refdbda.c?revision=461&view=markup

hth

Markus


-- 
Markus Hoenicka
[EMAIL PROTECTED]
(Spam-protected email: replace the quadrupeds with "mhoenicka")
http://www.mhoenicka.de


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
libdbi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libdbi-devel

Reply via email to