From 7f07971986cb56e4fedb97f9d358c4af244c2558 Mon Sep 17 00:00:00 2001 From: "R. C. Howell" Date: Wed, 4 Dec 2024 15:01:06 -0800 Subject: [PATCH] Adds interval_ym and interval_dt to ptype enum --- .../src/main/java/org/partiql/types/PType.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/partiql-types/src/main/java/org/partiql/types/PType.java b/partiql-types/src/main/java/org/partiql/types/PType.java index afc74138a..b79e5bd28 100644 --- a/partiql-types/src/main/java/org/partiql/types/PType.java +++ b/partiql-types/src/main/java/org/partiql/types/PType.java @@ -477,6 +477,21 @@ public static int[] codes() { */ public static final int VARIANT = 25; + /** + * The SQL year-month interval type. + */ + public static final int INTERVAL_YM = 26; + + /** + * The SQL day-time interval type. + *
+ *
+ * Type Syntax: INTERVAL DAY TO SECOND, INTERVAL DAY TO SECOND(<precision>) + *
+ * Applicable methods: {@link PType#getPrecision()} + */ + public static final int INTERVAL_DT = 27; + /** * @return a PartiQL dynamic type */