db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhille...@apache.org
Subject svn commit: r1063831 - /db/derby/code/trunk/java/client/org/apache/derby/client/am/Connection.java
Date Wed, 26 Jan 2011 19:03:19 GMT
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 {



Mime
View raw message