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 2025/07/16 11:16:17 UTC
(empire-db) branch master updated: EMPIREDB-470: DataType: enum description updated
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 33a56dc7 EMPIREDB-470: DataType: enum description updated
33a56dc7 is described below
commit 33a56dc7efd7ab4bdd746204c106fbe44a6e0442
Author: Rainer Döbele <rd...@users.noreply.github.com>
AuthorDate: Wed Jul 16 13:16:14 2025 +0200
EMPIREDB-470:
DataType: enum description updated
---
empire-db/src/main/java/org/apache/empire/data/DataType.java | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/empire-db/src/main/java/org/apache/empire/data/DataType.java b/empire-db/src/main/java/org/apache/empire/data/DataType.java
index f0907370..f2e22007 100644
--- a/empire-db/src/main/java/org/apache/empire/data/DataType.java
+++ b/empire-db/src/main/java/org/apache/empire/data/DataType.java
@@ -58,17 +58,19 @@ public enum DataType
DATE, // = 4;
/**
- * Date value including time. Also knows a timestamp
+ * Time only (hh:mm:ss)
+ * Might be emulated by a DATE column with a fix date of 2000-01-01
*/
TIME, // = 5;
/**
- * Date value including time. Also knows a timestamp
+ * Date including time but without nanoseconds
*/
DATETIME, // = 6;
/**
- * Automatic Record timestamp (only one per table allowed)
+ * Timestamp i.e. date including time and nanoseconds.
+ * Must be used for the Timestamp column used for optimistic locking
*/
TIMESTAMP, // = 7;