StyleReport v5.1, J2EE, Oracle 8.1.5 [message #92494] |
Fri, 13 August 2004 07:33 |
sim
Messages: 19 Registered: August 2004
|
Junior Member |
|
|
If a parameter in a SQL query, which is a VARCHAR2 data type, is passed from a PreparedStatement object from a Java Report Interface. Which method of PrepareStatement should I use? setString or setObject? Also whenever I want to set a "null" to this VARCHAR2 field in SQL, Tomcat signals an error message "NullPointerException"...how can that be avoided if I really want to pass a null to that field since SQL can accept a null?
|
|
|
|