@Test
public void testMultiply()
throws Exception
{
assertFunction("INTERVAL '6' MONTH * 2", new SqlIntervalYearMonth(12));
assertFunction("2 * INTERVAL '6' MONTH", new SqlIntervalYearMonth(12));
assertFunction("INTERVAL '10' MONTH * 2.5", new SqlIntervalYearMonth(25));
assertFunction("2.5 * INTERVAL '10' MONTH", new SqlIntervalYearMonth(25));
assertFunction("INTERVAL '6' YEAR * 2", new SqlIntervalYearMonth(12 * 12));
assertFunction("2 * INTERVAL '6' YEAR", new SqlIntervalYearMonth(12 * 12));
assertFunction("INTERVAL '1' YEAR * 2.5", new SqlIntervalYearMonth((long) (2.5 * 12)));
assertFunction("2.5 * INTERVAL '1' YEAR", new SqlIntervalYearMonth((long) (2.5 * 12)));
}