node-query/node_modules/mysql2/test/integration/connection/test-select-empty-string.js

17 lines
323 B
JavaScript
Raw Normal View History

var common = require('../../common');
var connection = common.createConnection();
var assert = require('assert');
var rows;
connection.query('SELECT ""', function(err, _rows) {
if (err) throw err;
rows = _rows;
});
connection.end();
process.on('exit', function() {
assert.deepEqual(rows, [{'': ''}]);
});