Skip to content

Commit c19cd7c

Browse files
dresendedougwilson
authored andcommitted
tests: add query integration with object + values
1 parent f6b390f commit c19cd7c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/integration/connection/test-query.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ common.getTestConnection(function (err, connection) {
88
assert.ifError(err);
99
assert.deepEqual(rows, [{1: 1}]);
1010
assert.equal(fields[0].name, '1');
11-
connection.end(assert.ifError);
1211
});
12+
13+
connection.query({ sql: 'SELECT ?' }, [ 1 ], function (err, rows, fields) {
14+
assert.ifError(err);
15+
assert.deepEqual(rows, [{1: 1}]);
16+
assert.equal(fields[0].name, '1');
17+
});
18+
19+
connection.end(assert.ifError);
1320
});

0 commit comments

Comments
 (0)