helpGetString1(func, "stuff(stuff(convert(varchar, CAST('2003-11-01 12:05:02.0' AS DATETIME), 102), 5, 1, '-'), 8, 1, '-')+convert(varchar, CAST('2003-11-01 12:05:02.0' AS DATETIME), 8)"); //$NON-NLS-1$
}
@Test public void testDateToString() throws Exception {
java.sql.Date d = TimestampUtil.createDate(103, 10, 1);
Function func = LANG_FACTORY.createFunction("convert", //$NON-NLS-1$
new Expression[] {
LANG_FACTORY.createLiteral(d, java.sql.Date.class),
LANG_FACTORY.createLiteral("string", String.class)}, //$NON-NLS-1$
String.class);