db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhille...@apache.org
Subject svn commit: r1476344 - in /db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog: XPLAINStatementDescriptor.java XPLAINStatementTimingsDescriptor.java
Date Fri, 26 Apr 2013 19:03:41 GMT
Author: rhillegas
Date: Fri Apr 26 19:02:48 2013
New Revision: 1476344

URL: http://svn.apache.org/r1476344
Log:
DERBY-6206: Clone timestamps in XPLAIN code to fix mutability problems.

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/XPLAINStatementDescriptor.java
    db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/XPLAINStatementTimingsDescriptor.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/XPLAINStatementDescriptor.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/XPLAINStatementDescriptor.java?rev=1476344&r1=1476343&r2=1476344&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/XPLAINStatementDescriptor.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/XPLAINStatementDescriptor.java
Fri Apr 26 19:02:48 2013
@@ -27,6 +27,7 @@ import java.sql.Timestamp;
 
 import org.apache.derby.catalog.UUID;
 import org.apache.derby.iapi.sql.dictionary.SystemColumn;
+import org.apache.derby.iapi.types.DataTypeUtilities;
 import org.apache.derby.iapi.types.TypeId;
 import java.sql.Types;
 
@@ -74,7 +75,7 @@ public class XPLAINStatementDescriptor e
         this.jvm_id      = jvm_id;
         this.os_id       = os_id;
         this.xplain_mode = xplain_mode;
-        this.xplain_time = xplain_time;
+        this.xplain_time = DataTypeUtilities.clone( xplain_time );
         this.thread_id   = thread_id;
         this.xa_id       = xa_id;
         this.session_id  = session_id;

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/XPLAINStatementTimingsDescriptor.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/XPLAINStatementTimingsDescriptor.java?rev=1476344&r1=1476343&r2=1476344&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/XPLAINStatementTimingsDescriptor.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/XPLAINStatementTimingsDescriptor.java
Fri Apr 26 19:02:48 2013
@@ -24,11 +24,12 @@ package org.apache.derby.impl.sql.catalo
 import java.sql.Timestamp;
 import java.sql.PreparedStatement;
 import java.sql.SQLException;
+import java.sql.Types;
 
 import org.apache.derby.catalog.UUID;
 import org.apache.derby.iapi.sql.dictionary.SystemColumn;
 import org.apache.derby.impl.sql.catalog.SystemColumnImpl;
-import java.sql.Types;
+import org.apache.derby.iapi.types.DataTypeUtilities;
 
 public class XPLAINStatementTimingsDescriptor extends XPLAINTableDescriptor 
 {
@@ -68,10 +69,10 @@ public class XPLAINStatementTimingsDescr
         this.generate_time   = generate_time;
         this.compile_time    = compile_time;
         this.execute_time    = execute_time;
-        this.begin_comp_time = begin_comp_time;
-        this.end_comp_time   = end_comp_time;
-        this.begin_exe_time  = begin_exe_time;
-        this.end_exe_time    = end_exe_time;
+        this.begin_comp_time = DataTypeUtilities.clone( begin_comp_time );
+        this.end_comp_time   = DataTypeUtilities.clone( end_comp_time );
+        this.begin_exe_time  = DataTypeUtilities.clone( begin_exe_time );
+        this.end_exe_time    = DataTypeUtilities.clone( end_exe_time );
         
     }
     public void setStatementParameters(PreparedStatement ps)



Mime
View raw message