Skip to content

Commit

Permalink
Add convenience StaticType for "TEXT" and "NUMERIC" #551
Browse files Browse the repository at this point in the history
  • Loading branch information
RCHowell committed May 27, 2022
1 parent ba62b66 commit 30dff88
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lang/src/org/partiql/lang/types/StaticType.kt
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,13 @@ sealed class StaticType {
@JvmField val INT: IntType = IntType(IntType.IntRangeConstraint.UNCONSTRAINED)
@JvmField val FLOAT: FloatType = FloatType()
@JvmField val DECIMAL: DecimalType = DecimalType()
@JvmField val NUMERIC: StaticType = unionOf(INT2, INT4, INT8, INT, FLOAT, DECIMAL)
@JvmField val DATE: DateType = DateType()
@JvmField val TIME: TimeType = TimeType()
@JvmField val TIMESTAMP: TimestampType = TimestampType()
@JvmField val SYMBOL: SymbolType = SymbolType()
@JvmField val STRING: StringType = StringType()
@JvmField val TEXT: StaticType = unionOf(SYMBOL, STRING)
@JvmField val CLOB: ClobType = ClobType()
@JvmField val BLOB: BlobType = BlobType()
@JvmField val LIST: ListType = ListType()
Expand Down

0 comments on commit 30dff88

Please sign in to comment.