vincent rogier writes: > For the cleanup function, it's not an oligation but would be nice ! At the > moment i hold a counter to call the initialization and cleanup functions in > the libdbi connect and disconnect functions. >
As per your request I've added a dbd_finalize() function to all drivers which is called from libdbi just before the driver is dlclose()'d. This usually happens when an instance (new interface) or the library (old interface) is shut down. The dbd_finalize() function is the proper place to do any cleanup in the client libraries. I've noted that the ingres driver has a FIXME note saying it would require such a shutdown. I'd appreciate if the ingres maintainer could add the required code to do so. The current cvs revision of libdbi-drivers (1.0-pre2) which has these changes requires the current cvs revision of libdbi (also 1.0-pre2). Let me know if there are any problems. regards, Markus -- Markus Hoenicka [EMAIL PROTECTED] (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Libdbi-drivers-devel mailing list Libdbi-drivers-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libdbi-drivers-devel