Browse Source
Now all datatype use same method ` stmt.setString(index,value);` even DATE and TIMESTAMP. So i had improved it. If datatype is DATE use `stmt.setDate(index, java.sql.Date.valueOf(value));` , if datatype is TIMESTAMP use `stmt.setTimestamp(index, java.sql.Timestamp.valueOf(value));`.i When use DATE the param format must use $[yyyy-MM-dd] , When use TIMESTAMP the param format must use $[yyyy-MM-dd hh:mm:ss].pull/2/head
zhukai
5 years ago
committed by
qiaozhanwei
2 changed files with 3 additions and 3 deletions
Loading…
Reference in new issue