You are not logged in.
Announcement
Unanswered posts
|
Pages: 1
Here is the 'string constructed in Talend' and it gives token error but I don't see anything obvious.
"select (Audithis."Audit"),("Date") from Audithis, Patient where "TableName"='PATIENT' and Audithis."Audit"=Patient."Audit" and Audithis."Date">'"+ TalendDate.formatDate("yyyy-MM-dd HH:mm:ss", context.last_change)+"'";
Date & last_change are Date and formatted using TatlendDate.
Appreciate any feedback on this.
thanks,
Peri
Offline
Hi Pedro,
The query is constructed against Oracle database.
/*
Exception in thread "main" java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: java.lang.Error: Unresolved compilation problem:
Syntax error on tokens, delete these tokens
at
*/
I error code here in the talend as highlighted by the red dot. as follows ;
/*
String dbquery_tOracleInput_2 = "select (Audithis."Audit"),("Date") from Audithis, Patient where "TableName"='PATIENT' and Audithis."Audit"=Patient."Audit" and Audithis."Date">'"+ TalendDate.formatDate("yyyy-MM-dd HH:mm:ss", context.last_change)+"'";
*/
thanks,
Peri
Offline
Pages: 1