You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
数据库是sqlserver2008,nutz版本是1.47
dto:
private Date inputDate ;
在数据库中这个字段是date类型的,
插入的时候没问题,取出的时候会报错:
com.microsoft.sqlserver.jdbc.SQLServerException: 将 nvarchar 值转换为 JDBC 数据类型 TIMESTAMP 时发生错误。
at com.microsoft.sqlserver.jdbc.DDC.convertStreamToObject(DDC.java:456)
at com.microsoft.sqlserver.jdbc.ServerDTVImpl.getValue(dtv.java:2007)
Caused by: java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]
at java.sql.Timestamp.valueOf(Unknown Source)
at com.microsoft.sqlserver.jdbc.DDC.convertStringToObject(DDC.java:306)
at com.microsoft.sqlserver.jdbc.DDC.convertStreamToObject(DDC.java:419)
The text was updated successfully, but these errors were encountered:
数据库是sqlserver2008,nutz版本是1.47
dto:
private Date inputDate ;
在数据库中这个字段是date类型的,
插入的时候没问题,取出的时候会报错:
com.microsoft.sqlserver.jdbc.SQLServerException: 将 nvarchar 值转换为 JDBC 数据类型 TIMESTAMP 时发生错误。
at com.microsoft.sqlserver.jdbc.DDC.convertStreamToObject(DDC.java:456)
at com.microsoft.sqlserver.jdbc.ServerDTVImpl.getValue(dtv.java:2007)
Caused by: java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]
at java.sql.Timestamp.valueOf(Unknown Source)
at com.microsoft.sqlserver.jdbc.DDC.convertStringToObject(DDC.java:306)
at com.microsoft.sqlserver.jdbc.DDC.convertStreamToObject(DDC.java:419)
The text was updated successfully, but these errors were encountered: