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

2008-02-15 Thread Toby Thain
On 15-Feb-08, at 4:06 AM, Rainer Gerhards wrote: > ... > A second question is on the status of the Ingres/mSQL and Oracle > drivers. ... > I got the impression that at least the Oracle driver can be used in > practice (I don't have any of these systems to verify). ... Hi Rainer, I contributed t

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

2008-02-15 Thread Markus Hoenicka
Rainer Gerhards writes: > 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 The functions dbi_initialize(), dbi_shutdown(), dbi_driver_list(), and dbi_driver_open() access rootdriver. All of

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

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 Hoen

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

2008-02-15 Thread Markus Hoenicka
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

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

2008-02-15 Thread Markus Hoenicka
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

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

2008-02-15 Thread Rainer Gerhards
I just had a quick look at dbi_main.c. From my understanding, there is at least a memory leak when dbi_shutdown is called from the same instance (if called from within the same instance). In that case, the first dbi_initialize() driverlist is discarded (but not freed) by rootdriver = NULL. Once dbi

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

2008-02-15 Thread Rainer Gerhards
> > Would rsyslog be suitable to run such a test, e.g. by > > loading the output plugin and another (maybe renamed) copy of the > same > > plugin? This is an interesting problem also for other projects which > > use a plugin system and libdbi. > > I can do that with rsyslog. Actually, I just need

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

2008-02-15 Thread Rainer Gerhards
Hi Markus, thanks for the quick reply, much appreciated. > > As I said, rsyslog itself uses plugins. I have no control over who > > writes and loads which plugins (neither would I like to have to ;)). > > What happens if another (maybe not-yet-written) plugin also uses > libdbi > > and ALSO c

[libdbi-users] Feedback and Questions [resend]

2008-02-15 Thread Markus Hoenicka
Rainer Gerhards writes: > As I said, rsyslog itself uses plugins. I have no control over who > writes and loads which plugins (neither would I like to have to ;)). > What happens if another (maybe not-yet-written) plugin also uses libdbi > and ALSO calls dbi_initialize()? I guess this is not su

[libdbi-users] Feedback and Questions [resend]

2008-02-15 Thread Rainer Gerhards
[I had mail troubles and are now re-sending this message. Hopefully it doesn't produce dulicates...] Hi there, I have just implemented libdbi in my rsyslog project (http://www.rsyslog.com). I wanted to provide some feedback and also post some questions ;) Rsyslog is a vastly enhanced modular sys