You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by rh...@apache.org on 2011/01/26 20:03:19 UTC

svn commit: r1063831 - /db/derby/code/trunk/java/client/org/apache/derby/client/am/Connection.java

Author: rhillegas
Date: Wed Jan 26 19:03:19 2011
New Revision: 1063831

URL: http://svn.apache.org/viewvc?rev=1063831&view=rev
Log:
DERBY-4869: Don't bother trying to change the current schema if the old schema is the same as the new one.

Modified:
    db/derby/code/trunk/java/client/org/apache/derby/client/am/Connection.java

Modified: db/derby/code/trunk/java/client/org/apache/derby/client/am/Connection.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/client/org/apache/derby/client/am/Connection.java?rev=1063831&r1=1063830&r2=1063831&view=diff
==============================================================================
--- db/derby/code/trunk/java/client/org/apache/derby/client/am/Connection.java (original)
+++ db/derby/code/trunk/java/client/org/apache/derby/client/am/Connection.java Wed Jan 26 19:03:19 2011
@@ -2502,6 +2502,11 @@ public abstract class Connection
             throw se.getSQLException();
         }
 
+        // nothing to do if the current schema name is cached and is the same
+        // as the new schema name
+        if ( ( currentSchemaName_ != null) && (currentSchemaName_.equals( schemaName )) )
+        { return; }
+
         java.sql.PreparedStatement   ps = null;
 
         try {