db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lily...@apache.org
Subject svn commit: r1076499 - /db/derby/code/trunk/java/engine/org/apache/derby/jdbc/AutoloadedDriver.java
Date Thu, 03 Mar 2011 02:10:47 GMT
Author: lilywei
Date: Thu Mar  3 02:10:47 2011
New Revision: 1076499

URL: http://svn.apache.org/viewvc?rev=1076499&view=rev
Log:
DERBY-5085 After specifying deregister=false on the engine shutdown URL, Derby forgets that
the default behavior is deregister=true. Change the deregister value after DriverManager.deregisterDriver

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/jdbc/AutoloadedDriver.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/jdbc/AutoloadedDriver.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/jdbc/AutoloadedDriver.java?rev=1076499&r1=1076498&r2=1076499&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/jdbc/AutoloadedDriver.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/jdbc/AutoloadedDriver.java Thu Mar  3
02:10:47 2011
@@ -253,6 +253,8 @@ public class AutoloadedDriver implements
                 _autoloadedDriver = null;
             } else {
                 DriverManager.deregisterDriver(_driverModule);
+                //DERBY 5085, need to restore the default value
+                deregister = true;
             }
             _driverModule = null;
         } catch (SQLException e) {



Mime
View raw message