Comparing version 0.5.3 to 0.5.4
@@ -27,4 +27,10 @@ // Copyright 2013 SAP AG. | ||
IS_STANDBY: 10, | ||
ALL_IP_ADRESSES: 11, | ||
ALL_IP_ADDRESSES: 11, | ||
ALL_HOST_NAMES: 12 | ||
}; | ||
}; | ||
Object.defineProperty(module.exports, 'ALL_IP_ADRESSES', { | ||
get: function () { | ||
return this.ALL_IP_ADDRESSES; | ||
} | ||
}); |
@@ -54,3 +54,2 @@ // Copyright 2013 SAP AG. | ||
// public | ||
this.clientId = util.cid; | ||
this.connectOptions = new part.ConnectOptions(); | ||
@@ -75,2 +74,7 @@ this.protocolVersion = undefined; | ||
Object.defineProperties(Connection.prototype, { | ||
clientId: { | ||
get: function getClientId() { | ||
return this._settings.clientId || util.cid; | ||
} | ||
}, | ||
autoCommit: { | ||
@@ -77,0 +81,0 @@ get: function getAutoCommit() { |
@@ -36,3 +36,3 @@ // Copyright 2013 SAP AG. | ||
if (values.length && Array.isArray(values[0])) { | ||
this.parameterValues = values; | ||
this.parameterValues = values.slice(); | ||
} else { | ||
@@ -39,0 +39,0 @@ this.parameterValues = [values]; |
@@ -165,3 +165,3 @@ // Copyright 2013 SAP AG. | ||
function addPairToRow(column) { | ||
return '"' + column.key + '": this.' + getReadFunction(column); | ||
return JSON.stringify(column.key) + ': this.' + getReadFunction(column); | ||
} | ||
@@ -175,3 +175,3 @@ | ||
return [ | ||
'"' + table.name + '": {', | ||
JSON.stringify(table.name) + ': {', | ||
table.columns.map(addPairToRow).join(',\n'), | ||
@@ -178,0 +178,0 @@ '}' |
@@ -8,3 +8,3 @@ { | ||
"description": "SAP HANA Database Client for Node", | ||
"version": "0.5.3", | ||
"version": "0.5.4", | ||
"repository": { | ||
@@ -11,0 +11,0 @@ "type": "git", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
266603
7574