Skip to content

Commit 19b40cb

Browse files
committed
Fix error in test 76: incorrect use of stmt.get
1 parent 20ba903 commit 19b40cb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/test_issue76.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ exports.test = function(sql, assert) {
33
var db = new sql.Database();
44
// Ultra-simple query
55
var stmt = db.prepare("VALUES (?)");
6-
// Bind null to the parameter
7-
stmt.bind([null]);
8-
9-
assert.deepEqual(stmt.get(), [null],
6+
// Bind null to the parameter and get the result
7+
assert.deepEqual(stmt.get([null]), [null],
108
"binding a null value to a statement parameter");
119
db.close();
1210
};

0 commit comments

Comments
 (0)