Skip to content

Commit

Permalink
Adds interval_ym and interval_dt to ptype enum
Browse files Browse the repository at this point in the history
  • Loading branch information
RCHowell committed Dec 4, 2024
1 parent a083184 commit 7f07971
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions partiql-types/src/main/java/org/partiql/types/PType.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
* <br>
* <br>
* <b>Type Syntax</b>: <code>INTERVAL DAY TO SECOND</code>, <code>INTERVAL DAY TO SECOND(&lt;precision&gt;)</code>
* <br>
* <b>Applicable methods</b>: {@link PType#getPrecision()}
*/
public static final int INTERVAL_DT = 27;

/**
* @return a PartiQL dynamic type
*/
Expand Down

0 comments on commit 7f07971

Please sign in to comment.