node-jdbc
node-jdbc copied to clipboard
PreparedStatement.setDate() leaves column value null
does setDate() work? for me it seems to leave the column value null.
for test purposes i'm just using "new Date()" as the value passed in.
PreparedStatement.setDate takes a java.sql.Date as the argument, so you have to construct one via newInstance from the node-java library. I'm not sure why it wouldn't error out when you give it new Date()
should setDate() convert the Js Date into a java.sql.Date automagically?