diff --git a/lib/client.js b/lib/client.js index b851c38f..bd65c846 100644 --- a/lib/client.js +++ b/lib/client.js @@ -78,6 +78,10 @@ p.query = function(config) { return query; }; +p.end = function() { + this.connection.end(); +}; + Client.md5 = function(string) { return crypto.createHash('md5').update(string).digest('hex'); }; @@ -107,6 +111,9 @@ p.submit = function(connection) { self.emit('end'); }); }; + + + // var intParser = { // fromDbValue: parseInt // }; diff --git a/test/integration/client/simple-query-tests.js b/test/integration/client/simple-query-tests.js index 3638de28..39425706 100644 --- a/test/integration/client/simple-query-tests.js +++ b/test/integration/client/simple-query-tests.js @@ -13,5 +13,4 @@ test("selects rows", function() { client.end(); }); - });