Initial work on the server

This commit is contained in:
Abhishek Das
2013-03-25 06:08:51 +05:30
parent 93400554fd
commit 0485272d93
626 changed files with 121311 additions and 1 deletions
@@ -0,0 +1,17 @@
var common = require('../../common');
var connection = common.createConnection();
var assert = require('assert');
var err;
connection.connect(function() {
connection.destroy();
connection.query('SELECT 1', function(_err) {
err = _err;
});
});
process.on('exit', function() {
assert.equal(err.fatal, false);
assert.equal(err.code, 'PROTOCOL_ENQUEUE_AFTER_DESTROY');
});