node-jdbc icon indicating copy to clipboard operation
node-jdbc copied to clipboard

Connection.getHoldability not correct

Open reznoa opened this issue 6 years ago • 0 comments

it call getClientInfo instead getHoldability

diff --git a/lib/connection.js b/lib/connection.js
index d4ed3ff..f163ddb 100644
--- a/lib/connection.js
+++ b/lib/connection.js
@@ -168,7 +168,7 @@ Connection.prototype.getClientInfo = function(name, callback) {
 };

 Connection.prototype.getHoldability = function(callback) {
-  this._conn.getClientInfo(function(err, holdability) {
+  this._conn.getHoldability(function(err, holdability) {
     if (err) {
       return callback(err);
     } else {

reznoa avatar Jul 31 '18 01:07 reznoa