/********************END of cast(time AS INPUT) ******************/
/********************Beginning of cast(timestamp AS INPUT) ******************/
@Test public void testStringToTimestamp() throws Exception {
String timestampStr = "1989-07-09 12:08:07"; //$NON-NLS-1$
Function func = LANG_FACTORY.createFunction("convert", //$NON-NLS-1$
new Expression[] {
LANG_FACTORY.createLiteral(timestampStr, String.class),
LANG_FACTORY.createLiteral("timestamp", String.class)}, //$NON-NLS-1$
java.sql.Timestamp.class);