on 12-06-2012 7:29 PM
Hi. Dear Experts
I have an Scenario. JDBC (Oracle)- Proxy.
On Sender CC I have an SQL Sentence like.
Select Field1,Field2,Field3 from Tabla1 Where Date_F <= TO_DATE(sysdate,'yyyy/mm/dd') and Flag = 1
With the above sentence PI doesn't select any records. but I tested the same query on oracle client. and return 3 records.
Is there any problem with TO_DATE sentence?
Regards.
To better understand the syntax for different date values , please check the following site
http://www.dba-oracle.com/f_to_date.htm
in your case this syntax might work...
ex:
to_date('2007/05/31','YYYY/MM/DD')
Also go to jdbc channel and in the advanced mode set the following
logSQLStatement = true
and see the log for this statement during the test.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi.
The problem is solved..
According sintax , is no necessary to convert sysdate with to_date is implicit.
Former Member I set the logSQLStatement = true but I don't see any logs on Sender JDBC Channel , only works for me on JDBC Receiver, is it ok?
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Fabrizio,
Can you please check like this 'TO_DATE('20080118','YYYYMMDD').
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.