Exemple #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);
 }
 public SqlNode visit(SqlIntervalQualifier intervalQualifier) {
   return (SqlNode) intervalQualifier.clone();
 }