Hi,
I am Using CustomSql to convert GMT to unixTime.
Here is the following query:
SELECT (TO_DATE(STARTDATETIME,‘DD/MM/YYYY HH24:MI:SS’) - (TO_DATE(‘01/01/1970 00:00:00’,'DD/MM/YYYY HH24:MI:SS))) * 86400 FROM DUAL WHERE STARTDATETIME=?
Here STARTDATETIME datatype is varchar.
Excuting the service In Developer 6.5,i got the error message but its working fine in oracle.
The Error Message as follows:
Could not run ‘ConvertGMTToUNIX’.
com.wm.app.b2b.server.ServiceException: [ART.117.4002] Adapter Runtime (Adapter Service): Unable to invoke adapter service ConvertGMTToUNIX.
[ADA.1.316] Cannot execute the SQL statement "SELECT (TO_DATE(STARTDATETIME,‘DD/MM/YYYY HH24/MI/SS’)
- (TO_DATE(‘01/01/1970 00/00/00’,‘DD/MM/YYYY HH24/MI/SS’))) * 86400 FROM DUAL
WHERE STARTDATETIME = ?". "
COLOR=navy ORA-00904: “STARTDATETIME”: invalid identifier[/color]
"
ORA-00904: “STARTDATETIME”: invalid identifier