Re: [libdbi-users] Feedback and Questions [resend]

2008-02-15 Thread Rainer Gerhards
It just appears to me that we must have MSSQL in our lab. I'll see that
I get some machine next week and try the make check. Will post results,
but probably not before mid-week.

Rainer 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Markus Hoenicka
 Sent: Friday, February 15, 2008 6:53 PM
 To: libdbi-users@lists.sourceforge.net
 Subject: Re: [libdbi-users] Feedback and Questions [resend]
 
 Rainer Gerhards writes:
   I just notice that you don't list openTDS as a core 
 driver. Any problems
   with that one. Or have you just overlooked it? I probably 
 have an actual
   use case to run it against Sybase soon.
 
 core currently means that I can test it on one of my boxen :-) I do
 not have the means to test or modify the remaining drivers, and
 there were no volunteers lately that would run a make check using
 these drivers to turn them into core drivers. There are no known
 issues with the FreeTDS driver at this time, but I hesitate to include
 it into the list of actively supported drivers if there is no
 feedback. If you can run make check with the FreeTDS driver, or
 convince someone to do so, I'd greatly appreciate to see the results.
 
 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: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 libdbi-users mailing list
 libdbi-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/libdbi-users
 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
libdbi-users mailing list
libdbi-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libdbi-users


Re: [libdbi-users] Feedback and Questions [resend]

2008-02-15 Thread Rainer Gerhards
Markus,

I had a somewhat deeper look at dbi_main now. I think four or five
functions would need to be changed in the way you propose. However, as
this is an interface change, the previous functions would need to remain
as is (including the plugin problem). While I looked at the code, I
think a few mutex lock/unlock calls would also make it thread-safe. That
is not a big issue for me, as rsyslog allows plugins to run on a single
thread, but it may be a benefit for other situations.

If you like, I can try to apply a number of changes and provide a patch
file for your review.

Rainer 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Markus Hoenicka
 Sent: Friday, February 15, 2008 7:00 PM
 To: libdbi-users@lists.sourceforge.net
 Subject: Re: [libdbi-users] Feedback and Questions [resend]
 
 Rainer Gerhards writes:
   In any case, I suggest that a second call of 
 dbi_initialize() inside the
   same instance should return an error state - sounds better than
   unpredictable behavior. Making it multi-init safe could 
 IMHO easily be
   done by using one additional handle.
   
 
 I can't claim to be an expert at these issues, but I imagine that
 moving the sentinel of the driver list into the application linked
 against libdbi instead of implementing it as a static global variable
 might resolve this problem. dbi_initialize would then look somewhat
 like:
 
 dbi_driver_t* dbi_initialize(const char *driverdir, int* numdrivers);
 
 (dbi_driver_t may not be user-visible at this time, but you get the
 idea).
 
 I'll be happy to consider this change if it helps to make libdbi
 plugin-safe.
 
 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: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 libdbi-users mailing list
 libdbi-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/libdbi-users
 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
libdbi-users mailing list
libdbi-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libdbi-users