db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r1023824 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/DropSchemaConstantAction.java
Date Mon, 18 Oct 2010 14:49:51 GMT
Author: kristwaa
Date: Mon Oct 18 14:49:50 2010
New Revision: 1023824

URL: http://svn.apache.org/viewvc?rev=1023824&view=rev
Log:
DERBY-4822: [patch] DropSchemaConstantAction: could reuse the current connection provided
by the available activation object

Use available transaction object directly instead of passing null.
Follows pattern used in most other classes.

Patch contributed by Martin Monperrus (martin dot monperrus at gmail dot com).

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/DropSchemaConstantAction.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/DropSchemaConstantAction.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/DropSchemaConstantAction.java?rev=1023824&r1=1023823&r2=1023824&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/DropSchemaConstantAction.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/DropSchemaConstantAction.java
Mon Oct 18 14:49:50 2010
@@ -27,6 +27,7 @@ import org.apache.derby.iapi.sql.conn.La
 import org.apache.derby.iapi.sql.dictionary.DataDictionary;
 import org.apache.derby.iapi.sql.dictionary.SchemaDescriptor;
 import org.apache.derby.iapi.sql.execute.ConstantAction;
+import org.apache.derby.iapi.store.access.TransactionController;
 
 /**
  *	This class  describes actions that are ALWAYS performed for a
@@ -82,6 +83,7 @@ class DropSchemaConstantAction extends D
 	{
 		LanguageConnectionContext lcc = activation.getLanguageConnectionContext();
 		DataDictionary dd = lcc.getDataDictionary();
+		TransactionController tc = lcc.getTransactionExecute();
 
 		/*
 		** Inform the data dictionary that we are about to write to it.
@@ -94,7 +96,7 @@ class DropSchemaConstantAction extends D
 		*/
 		dd.startWriting(lcc);
 
-        SchemaDescriptor sd = dd.getSchemaDescriptor(schemaName, null, true);
+        SchemaDescriptor sd = dd.getSchemaDescriptor(schemaName, tc, true);
 
         sd.drop(lcc, activation);
 



Mime
View raw message