Oracle SQL DATE conversion problem using iBATIS via Java JDBC

前端 未结 7 626
悲哀的现实
悲哀的现实 2020-12-24 03:36

I\'m currently wrestling with an Oracle SQL DATE conversion problem using iBATIS from Java.

Am using the Oracle JDBC thin driver ojdbc14 version 10.2.0.4.0. iBATIS v

7条回答
  •  渐次进展
    2020-12-24 04:00

    The problem is the use of java.sql.Date. According to the Javadoc, the millisecond values wrapped by a java.sql.Date instance must be 'normalized' by setting the hours, minutes, seconds, and milliseconds to zero in the particular time zone with which the instance is associated, to conform with the definition of SQL DATE.

提交回复
热议问题