You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@empire-db.apache.org by do...@apache.org on 2024/07/12 20:43:28 UTC

(empire-db) branch master updated: EMPIREDB-433 update timestamp column when cloning

This is an automated email from the ASF dual-hosted git repository.

doebele pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/empire-db.git


The following commit(s) were added to refs/heads/master by this push:
     new 1a6752f0 EMPIREDB-433 update timestamp column when cloning
1a6752f0 is described below

commit 1a6752f04a060637aa1a0a49a7f9f7dba0286ce4
Author: Rainer Döbele <rd...@users.noreply.github.com>
AuthorDate: Fri Jul 12 22:43:25 2024 +0200

    EMPIREDB-433
    update timestamp column when cloning
---
 empire-db/src/main/java/org/apache/empire/db/DBRowSet.java | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/empire-db/src/main/java/org/apache/empire/db/DBRowSet.java b/empire-db/src/main/java/org/apache/empire/db/DBRowSet.java
index 7844e086..95407023 100644
--- a/empire-db/src/main/java/org/apache/empire/db/DBRowSet.java
+++ b/empire-db/src/main/java/org/apache/empire/db/DBRowSet.java
@@ -1294,6 +1294,12 @@ public abstract class DBRowSet extends DBExpr implements EntityType
                 }
             }
         }
+        // timestamp column
+        if (this.timestampColumn!=null)
+        {   // set cloned update column
+            int updateColumnIndex = getColumnIndex(timestampColumn);
+            clone.timestampColumn = clone.getColumn(updateColumnIndex);
+        }
     }
 
     /**