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.
19 lines
428 B
19 lines
428 B
var common = require('../../common');
|
|
var connection = common.createConnection();
|
|
var assert = require('assert');
|
|
|
|
connection.connect();
|
|
var query = connection.query('INVALID SQL');
|
|
|
|
var err;
|
|
query.on('error', function(_err) {
|
|
assert.equal(err, undefined);
|
|
err = _err;
|
|
});
|
|
|
|
connection.end();
|
|
|
|
process.on('exit', function() {
|
|
assert.equal(err.code, 'ER_PARSE_ERROR');
|
|
assert.equal(Boolean(err.fatal), false);
|
|
});
|