A Twitch.tv viewer reward and games system.
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

12 years ago
  1. var common = require('../../common');
  2. var connection = common.createConnection();
  3. var assert = require('assert');
  4. connection.connect();
  5. var query = connection.query('INVALID SQL');
  6. var err;
  7. query.on('error', function(_err) {
  8. assert.equal(err, undefined);
  9. err = _err;
  10. });
  11. connection.end();
  12. process.on('exit', function() {
  13. assert.equal(err.code, 'ER_PARSE_ERROR');
  14. assert.equal(Boolean(err.fatal), false);
  15. });