Comparing version 0.4.0 to 0.4.1
@@ -76,10 +76,2 @@ // Copyright 2013 SAP AG. | ||
return this.mode & ParameterMode.AUTO_INCREMENT ? true : false; | ||
}; | ||
Parameter.prototype.toPlainObject = function () { | ||
var obj = {}; | ||
Object.keys(this).forEach(function (key) { | ||
obj[key] = this[key]; | ||
}, this); | ||
return obj; | ||
}; |
@@ -72,11 +72,2 @@ // Copyright 2013 SAP AG. | ||
} | ||
}); | ||
ReadLobReply.prototype.toPlainObject = function () { | ||
var obj = {}; | ||
Object.keys(this).forEach(function (key) { | ||
obj[key] = this[key]; | ||
}, this); | ||
return obj; | ||
}; | ||
}); |
@@ -63,3 +63,3 @@ // Copyright 2013 SAP AG. | ||
/* jshint unused:false */ | ||
return 24; | ||
return READ_LOB_REQUEST_LENGTH; | ||
} | ||
@@ -66,0 +66,0 @@ |
@@ -94,10 +94,2 @@ // Copyright 2013 SAP AG. | ||
return this.mode & AUTO_INCREMENT ? true : false; | ||
}; | ||
Column.prototype.toPlainObject = function () { | ||
var obj = {}; | ||
Object.keys(this).forEach(function (key) { | ||
obj[key] = this[key]; | ||
}, this); | ||
return obj; | ||
}; |
@@ -70,10 +70,2 @@ // Copyright 2013 SAP AG. | ||
this.position = undefined; | ||
} | ||
SqlError.prototype.toPlainObject = function () { | ||
var obj = {}; | ||
Object.keys(this).forEach(function (key) { | ||
obj[key] = this[key]; | ||
}, this); | ||
return obj; | ||
}; | ||
} |
@@ -135,6 +135,14 @@ // Copyright 2013 SAP AG. | ||
var self = this; | ||
function done(err, rows) { | ||
stream.removeListener('error', onerror); | ||
collector.removeListener('finish', onfinish); | ||
cb(err, rows); | ||
if (!self.closed) { | ||
self.close(function () { | ||
cb(err, rows); | ||
}); | ||
} else { | ||
cb(err, rows); | ||
} | ||
} | ||
@@ -141,0 +149,0 @@ |
@@ -243,10 +243,2 @@ // Copyright 2013 SAP AG. | ||
} | ||
exports.pipe = pipe; | ||
function createReadableBuffer(buffer, options) { | ||
options = options || {}; | ||
var readable = new stream.Readable(options); | ||
readable.push(buffer); | ||
readable.push(null); | ||
return readable; | ||
} | ||
exports.pipe = pipe; |
@@ -8,3 +8,3 @@ { | ||
"description": "SAP HANA Database Client for Node", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"repository": { | ||
@@ -11,0 +11,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
266909
7388