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
vard1=newDate(2018,6-1,11);vard2=newDate(d1.getTime()+24*3600*1000-1);//change to -2 ,no error.TestDate();functionTestDate(){db.acquire((err,conn)=>{if(err)return;varrequest=newtedious.Request("select @v1;",function(err){if(err){console.log(err);return;}conn.release();});request.on('row',cols=>console.log(cols.map(x=>x.value)));request.on('returnValue',(name,value)=>{console.log(name,value);})request.addParameter('v1',tedious.TYPES.DateTime,d2)request.addOutputParameter('v4',tedious.TYPES.VarChar,null);conn.execSql(request);})}
error message:
'The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect.
Parameter 3 ("@v1"): The supplied value is not a valid instance of data type datetime. Check the source
data for invalid values. An example of an invalid value is data of numeric type with scale greater than
precision.',
I find in DateTime.js,the write value is { days: 43261, threeHundredthsOfSecond: 25920000 } 2590000 = 24 * 3600 * 300, is one day. Maybe it can not great than this.
Activity
heroboy commentedon Jun 13, 2018
I find in
DateTime.js,the write value is{ days: 43261, threeHundredthsOfSecond: 25920000 }2590000 = 24 * 3600 * 300, is one day. Maybe it can not great than this.heroboy commentedon Jun 13, 2018
You should use
useUTC: false,to test this code.arthurschreiber commentedon Oct 29, 2019
🎉 This issue has been resolved in version 6.6.1 🎉
The release is available on:
Your semantic-release bot 📦🚀