Пример #1
0
 /** Creates an interval literal. */
 public RexLiteral makeIntervalLiteral(BigDecimal v, SqlIntervalQualifier intervalQualifier) {
   return makeLiteral(
       v,
       typeFactory.createSqlIntervalType(intervalQualifier),
       intervalQualifier.isYearMonth()
           ? SqlTypeName.INTERVAL_YEAR_MONTH
           : SqlTypeName.INTERVAL_DAY_TIME);
 }
Пример #2
0
 public SqlNode visit(SqlIntervalQualifier intervalQualifier) {
   return (SqlNode) intervalQualifier.clone();
 }