On Tue, 13 Mar 2007 07:11:08 +1100 Bojan Smojver <[EMAIL PROTECTED]> wrote:
> On Mon, 2007-03-12 at 14:11 +0000, Nick Kew wrote: > > > +1. I wonder if we could extend that to database versions too, > > where there are minor but important API version differences, > > and #ifdefs (as between MySQL 4.1 and 5.0). > > In this scenario where people may want to have both MySQL 4.x and 5.x > support simultaneously, two drivers may be required. Then at load time > they could be referred to as mysql4 and mysql5, which would then pull > in apr_dbd_mysql4/5.so, as required. > Not really. It's just #ifdefs in the source. But within those #ifdefs it could emit a startup message detailing exactly what it's compiled for. As for both on one server, I don't think you could link the client lib twice, unless perhaps you could link each version statically into the driver and the linker accepts that as not-exported so symbols don't clash in public. -- Nick Kew Application Development with Apache - the Apache Modules Book http://www.apachetutor.org/