on 06-16-2010 9:46 AM
Hi All,
I have a File -> JDBC scenario.
In the File and in the SQL table I have a column called "MR_DATE" that needs to be mapped
I have to do the following:
If MR_DATE is NOT equal to "00000000"
then pass MR_DATE to SQL table
else
set the MR_DATE column in the table as NULL.
Please suggest
regards,
Piyush
I solved this by using the "If" block.
It does not create the target node if date is 00000000.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Piyush,
In the receiver JDBC adapter select the option Interpretation of Empty String Values as NULL.
Pass date as empty, it will be interpreted as NULL by adapter and inserted in database.
Regards,
Gautam Purohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.