FIX: NullPointerException when you set the Timestamp parameter to Null with JDBC (827223)
The information in this article applies to:
- Microsoft SQL Server 2000 Driver for JDBC
SYMPTOMSWhen you use the JDBC setTimestamp method, the setTime method, or the setDate method to set a parameter value to Null, you may receive a java.lang.NullPointerException exception.RESOLUTIONInstall Microsoft SQL Server 2000 Driver for JDBC Service Pack 2 (SP2).WORKAROUNDUse the setNull method to set a parameter to Null. See the comments in the code sample in this article for more information.STATUS
Microsoft has confirmed that this is a bug in Microsoft SQL Server 2000 Driver for JDBC version 2.2.0033.
This bug was corrected in Microsoft SQL Server 2000 Driver for JDBC Service Pack 2.
Note This bug does not occur with earlier versions of the driver, including Service Pack 1 (SP1). Version 2.2.003 was an interim release that was only available by contacting Microsoft Product Support Services.
For additional information about the availability of version 2.2.0033 of the driver, click the following article number to view the article in the Microsoft Knowledge Base:
818504
FIX: JDBC Driver Overwrites Timestamp Parameter Values with the Last Value Set
Modification Type: | Major | Last Reviewed: | 12/11/2003 |
---|
Keywords: | kbfix kbQFE KB827223 kbAudDeveloper |
---|
|