Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

error message "two different data types are being set" - documentation? advice? - response (2) by ltt73

$
0
0

Thanks for the reply - I am using Spring jdbcTemplate's batchUpdate method to do some inserts - one record has a null value in parameter 6.  So you're exactly right.
I see two options to solve this:
1) don't use batchUpdate method
2) find a way to force the NULL value to be the correct data type - to do this, I think I would need to determine how my null java ref is being converted into the varchar ('null' - i'm guessing) when passed to the JDBC driver. 
I think I'll go with #1 for now - I don't have enough insight into the inner workings of the JDBC driver to worry about #2.
Thanks again,
Luke


Viewing all articles
Browse latest Browse all 27759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>