Getting the error
For Input String: "oracle.sql.TIMESTAMP@7cf54"
when using fireToDB. Here is the script:
What is up? Also, is there an easy way to paste the sql generated by concatenations/variable substitution in a query tool? Can't copy and paste from an Alert box....
Quote:
For Input String: "oracle.sql.TIMESTAMP@7cf54"
Code:
var lkp_conn = "conn_dw";
var lkp_sql = "select min(max_date) from (select max(logintime_local) as max_date from t_logons WHERE SRC = '" + src + "' union select max(logintime_local) as max_date from s_logons WHERE SRC = '" + src + "' ) ";
// get lkp array
Alert(lkp_sql);
var lkp_array = fireToDB(lkp_conn, lkp_sql);