db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r1027921 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/xplain/XPLAINSystemTableVisitor.java
Date Wed, 27 Oct 2010 11:42:31 GMT
Author: kristwaa
Date: Wed Oct 27 11:42:30 2010
New Revision: 1027921

URL: http://svn.apache.org/viewvc?rev=1027921&view=rev
Log:
DERBY-4772 (cleanup): Data truncation error with XPLAIN-functionality enabled

Cleaned up a bunch of unused imports, some unused variables and removed an
Exception.printStackTrace().

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

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/xplain/XPLAINSystemTableVisitor.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/xplain/XPLAINSystemTableVisitor.java?rev=1027921&r1=1027920&r2=1027921&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/xplain/XPLAINSystemTableVisitor.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/xplain/XPLAINSystemTableVisitor.java
Wed Oct 27 11:42:30 2010
@@ -28,22 +28,15 @@ import java.sql.Timestamp;
 import java.util.ArrayList;
 import java.util.Iterator;
 import java.util.List;
-import java.util.Properties;
 import java.util.Stack;
 
 import org.apache.derby.catalog.UUID;
-import org.apache.derby.jdbc.InternalDriver;
-import org.apache.derby.impl.jdbc.Util;
 import org.apache.derby.iapi.jdbc.ConnectionContext;
 import org.apache.derby.iapi.error.StandardException;
 import org.apache.derby.iapi.services.info.JVMInfo;
-import org.apache.derby.iapi.services.io.FormatableProperties;
 import org.apache.derby.iapi.sql.Activation;
 import org.apache.derby.iapi.sql.conn.LanguageConnectionContext;
-import org.apache.derby.iapi.sql.dictionary.DataDescriptorGenerator;
 import org.apache.derby.iapi.sql.dictionary.DataDictionary;
-import org.apache.derby.iapi.sql.dictionary.SchemaDescriptor;
-import org.apache.derby.iapi.sql.dictionary.TupleDescriptor;
 import org.apache.derby.impl.sql.catalog.XPLAINResultSetDescriptor;
 import org.apache.derby.impl.sql.catalog.XPLAINResultSetTimingsDescriptor;
 import org.apache.derby.impl.sql.catalog.XPLAINScanPropsDescriptor;
@@ -52,38 +45,6 @@ import org.apache.derby.impl.sql.catalog
 import org.apache.derby.impl.sql.catalog.XPLAINStatementTimingsDescriptor;
 import org.apache.derby.iapi.sql.execute.RunTimeStatistics;
 import org.apache.derby.iapi.sql.execute.xplain.XPLAINVisitor;
-import org.apache.derby.iapi.store.access.TransactionController;
-import org.apache.derby.impl.sql.compile.IntersectOrExceptNode;
-import org.apache.derby.impl.sql.execute.rts.RealAnyResultSetStatistics;
-import org.apache.derby.impl.sql.execute.rts.RealDeleteCascadeResultSetStatistics;
-import org.apache.derby.impl.sql.execute.rts.RealDeleteResultSetStatistics;
-import org.apache.derby.impl.sql.execute.rts.RealDeleteVTIResultSetStatistics;
-import org.apache.derby.impl.sql.execute.rts.RealDistinctScalarAggregateStatistics;
-import org.apache.derby.impl.sql.execute.rts.RealDistinctScanStatistics;
-import org.apache.derby.impl.sql.execute.rts.RealGroupedAggregateStatistics;
-import org.apache.derby.impl.sql.execute.rts.RealHashJoinStatistics;
-import org.apache.derby.impl.sql.execute.rts.RealHashLeftOuterJoinStatistics;
-import org.apache.derby.impl.sql.execute.rts.RealHashScanStatistics;
-import org.apache.derby.impl.sql.execute.rts.RealHashTableStatistics;
-import org.apache.derby.impl.sql.execute.rts.RealIndexRowToBaseRowStatistics;
-import org.apache.derby.impl.sql.execute.rts.RealInsertResultSetStatistics;
-import org.apache.derby.impl.sql.execute.rts.RealInsertVTIResultSetStatistics;
-import org.apache.derby.impl.sql.execute.rts.RealLastIndexKeyScanStatistics;
-import org.apache.derby.impl.sql.execute.rts.RealMaterializedResultSetStatistics;
-import org.apache.derby.impl.sql.execute.rts.RealNestedLoopJoinStatistics;
-import org.apache.derby.impl.sql.execute.rts.RealNestedLoopLeftOuterJoinStatistics;
-import org.apache.derby.impl.sql.execute.rts.RealNormalizeResultSetStatistics;
-import org.apache.derby.impl.sql.execute.rts.RealOnceResultSetStatistics;
-import org.apache.derby.impl.sql.execute.rts.RealProjectRestrictStatistics;
-import org.apache.derby.impl.sql.execute.rts.RealRowResultSetStatistics;
-import org.apache.derby.impl.sql.execute.rts.RealScalarAggregateStatistics;
-import org.apache.derby.impl.sql.execute.rts.RealScrollInsensitiveResultSetStatistics;
-import org.apache.derby.impl.sql.execute.rts.RealSetOpResultSetStatistics;
-import org.apache.derby.impl.sql.execute.rts.RealSortStatistics;
-import org.apache.derby.impl.sql.execute.rts.RealTableScanStatistics;
-import org.apache.derby.impl.sql.execute.rts.RealUnionResultSetStatistics;
-import org.apache.derby.impl.sql.execute.rts.RealUpdateResultSetStatistics;
-import org.apache.derby.impl.sql.execute.rts.RealVTIStatistics;
 import org.apache.derby.impl.sql.execute.rts.ResultSetStatistics;
 
 /**
@@ -104,8 +65,6 @@ public class XPLAINSystemTableVisitor im
     // the needed system objects for writing to the dictionary
     private LanguageConnectionContext lcc;
     private DataDictionary dd;
-    private TransactionController tc;
-    private DataDescriptorGenerator ddg;
     
     // the stmt activation object
     private Activation activation;
@@ -217,8 +176,6 @@ public class XPLAINSystemTableVisitor im
     public void reset() {
         lcc = activation.getLanguageConnectionContext();
         dd  = lcc.getDataDictionary();
-        tc  = lcc.getTransactionExecute();
-        ddg = dd.getDataDescriptorGenerator(); 
     }
     
     /** the interface method, which gets called by the Top-ResultSet, which starts
@@ -324,7 +281,6 @@ public class XPLAINSystemTableVisitor im
         }
         catch (SQLException e)
         {
-            e.printStackTrace();
             throw StandardException.plainWrapException(e);
         }
          
@@ -347,7 +303,6 @@ public class XPLAINSystemTableVisitor im
         activation = null;
         lcc = null;
         dd = null;
-        tc = null;
         
         // forget about the stmt descriptors and the Stmt UUID
         stmtUUID = null;



Mime
View raw message