I am not really sure how to get a patch into CVS but I'd really like to get this fix in. It ensures that torque honours the adapter setting instead of second guessing the user. This means it will work when the driver setting is not what it expects. Eg. if using com.mysql driver instead for org.gjtmm one. Or when using P6 pass through driver for performance monitoring.
Kind regards, David Zverina. ------------------------- diff -ur ../t/torque-3.1/src/java/org/apache/torque/TorqueInstance.java src/java/org/apache/torque/TorqueInstance.java --- ../t/torque-3.1/src/java/org/apache/torque/TorqueInstance.java 2003-09-04 06:52:26.000000000 +0100 +++ src/java/org/apache/torque/TorqueInstance.java 2004-07-02 13:02:16.000000000 +0100 @@ -639,10 +639,10 @@ // Setup other ID generators for this map. try { - String key = getDatabaseProperty(name, "driver"); + String key = getDatabaseProperty(name, "adapter"); if (key == null || key.length() == 0) { - key = getDatabaseProperty(name, "adapter"); + key = getDatabaseProperty(name, "driver"); } DB db = DBFactory.create(key); for (int i = 0; i < IDGeneratorFactory.ID_GENERATOR_METHODS.length On Fri, 2004-08-20 at 13:01, Scott Eade wrote: > [Intentional cross-posting] > > Just so you all know the Torque documentation has had an extensive > update in the last few days, in particular the Tutorial (the source of > much confusion since the 3.1 release separated the Torque runtime from > the generator) has been brought up to date. If anybody spots any errors > or omissions on the updated sites please let me know (or better still > provide a patch). > > A few patches have also been applied with the goal of getting things > into order in advance of a 3.1.1 release. > > If there is anything else that you would like to see in 3.1.1 then you > had better make it known ASAP. > > Scott --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]