-
Notifications
You must be signed in to change notification settings - Fork 439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useUTC on Insert and Select #1528
Comments
Hi @shiroze, just to make sure is this kind the query that you try to execute ? function inputParameters() {
// Values contain variables idicated by '@' sign
const sql = `Insert into MyTable ( test_c3) VALUES (@time)`;
const request = new Request(sql, (err, rowCount) => {
if (err) {
throw err;
}
console.log('rowCount: ', rowCount);
console.log('input parameters success!');
});
// Setting values to the variables. Note: first argument matches name of variable above.
request.addParameter('time', TYPES.DateTime, '2023-03-16 11:58:30');
connection.execSql(request);
} And you question is why the without set useUTC to false you get a different time? |
Yes, When doing insert with |
Hi @shiroze , Thanks for the reply and I am able to reproduce this behavior. Will keep investigating, and see if I can come up with a fix. |
Hi @MichaelSun90 , Thank you hope this Bug can be Fixed ASAP. |
Hi @MichaelSun90, I do have the same problem as @shiroze . waiting for the feedback... |
Hi @nanjarapalli , we were looking into this #1467 , and this suppose to provide a better date time types support. Will continue working on this when we got the bandwidth, and update you guys if we make any progress. |
Software versions
Connection configuration
Detail Reference is here Node-issue
The text was updated successfully, but these errors were encountered: