sql server - How do I map java.util.Date to sys.datetime -
i upgrading our jdbc driver mssql-jdbc-6.2.1 can move sql server 2016. works fine new driver except our reports. have 6000+ reports use java.util.date
. previous driver these treated datetime
in sql new driver treats them date
. reports failing on code "dateadd(minute, ..." since not supported date.
i tried
java.util.map map = conn.gettypemap(); map.put("sys.datetime", java.util.date.class); conn.settypemap(map);
but apparently settypemap
not implemented in ms driver.
rewriting reports not option. there anyway override mapping?
Comments
Post a Comment