Skip to content

Commit dafa080

Browse files
sidoraresstevemandl
authored andcommitted
cast to a fixed length date type so results are more consistent between server versions
1 parent 1b37e12 commit dafa080

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/integration/connection/test-execute-bind-date.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const assert = require('assert');
77
const date = new Date(2018, 2, 10, 15, 12, 34, 1234);
88

99
let rows;
10-
connection.execute('SELECT ? AS result', [date], (err, _rows) => {
10+
connection.execute('SELECT CAST(? AS DATETIME(6)) AS result', [date], (err, _rows) => {
1111
if (err) {
1212
throw err;
1313
}

0 commit comments

Comments
 (0)