David Reiser writes: > Can libdbi and libdbi-drivers handle multiple versions of the postgres > driver (built for different postgres versions) on the same machine? I can > readily segregate the drivers built with the different postgres headers and > libraries and put symlinks back to the main libdbi dbd dir, but I don't see > any way for libdbi to differentiate between two postgres drivers. >
Hi David, it can't out of the box, but as far as I understand you could still trick libdbi in thinking these are separate drivers. Please have a look at the driver source (libdbi-drivers/drivers/pgsql/dbd_pgsql.c). There's a structure called driver_info around line 59. The first member is the internal name of the driver. It should be possible to build one of your drivers with a different internal name, say pgsql-904, and use that name in your application to reference this particular version of the driver. regards, Markus -- Markus Hoenicka http://www.mhoenicka.de AQ score 38 ------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ Libdbi-drivers-devel mailing list Libdbi-drivers-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libdbi-drivers-devel