You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
332 B
16 lines
332 B
var common = require('../../common');
|
|
var connection = common.createConnection();
|
|
var assert = require('assert');
|
|
|
|
var rows = undefined;
|
|
connection.query('SELECT 1', function(err, _rows) {
|
|
if (err) throw err;
|
|
|
|
rows = _rows;
|
|
});
|
|
|
|
connection.end();
|
|
|
|
process.on('exit', function() {
|
|
assert.deepEqual(rows, [{1: 1}]);
|
|
});
|