idb-pconnector
Advanced tools
Comparing version 1.0.7 to 1.0.8
# idb-pconnector change log | ||
# 1.0.8 | ||
- Allow `SQL_SUCCESS_WITH_INFO` return code to resolve the row in `fetch()` see PR [#47](https://github.com/IBM/nodejs-idb-pconnector/pull/47) | ||
- Update deps see PR [#49](https://github.com/IBM/nodejs-idb-pconnector/pull/49) | ||
- Patch `prepareExecute` only throw error if `value` is undefined see PR [#50](https://github.com/IBM/nodejs-idb-pconnector/pull/50) | ||
# 1.0.7 | ||
Fix up setLibraryList example require statement see [03ce835](https://github.com/IBM/nodejs-idb-pconnector/commit/03ce835095551f660b64cac84d8f8cf8c8bc4ba9) | ||
# 1.0.6 | ||
Add implementation of setLibraryList API see PR [#39](https://github.com/IBM/nodejs-idb-pconnector/pull/39) | ||
# 1.0.5 | ||
@@ -7,0 +18,0 @@ Patched `prepareExecute` issue outlined in [#40](https://github.com/IBM/nodejs-idb-pconnector/issues/40) |
@@ -331,3 +331,3 @@ const { | ||
if (!value && value !== null) { | ||
if (typeof value === 'undefined') { | ||
throw new Error('The parameter object must define a value property'); | ||
@@ -334,0 +334,0 @@ } |
@@ -1,2 +0,2 @@ | ||
const { dbstmt, SQL_SUCCESS, SQL_NO_DATA_FOUND } = require('idb-connector'); | ||
const { dbstmt, SQL_SUCCESS, SQL_NO_DATA_FOUND, SQL_SUCCESS_WITH_INFO } = require('idb-connector'); | ||
@@ -173,3 +173,3 @@ /** | ||
stmt.fetch((result, rc) => { | ||
if (rc === SQL_SUCCESS) { // SQL_SUCCESS == 0 | ||
if (rc === SQL_SUCCESS || rc === SQL_SUCCESS_WITH_INFO) { // SQL_SUCCESS == 0 | ||
resolve(result); | ||
@@ -176,0 +176,0 @@ } else if (rc === SQL_NO_DATA_FOUND) { |
{ | ||
"name": "idb-pconnector", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Promise based DB2 Connector for IBM i", | ||
@@ -23,11 +23,11 @@ "main": "lib/idb-pconnector.js", | ||
"dependencies": { | ||
"idb-connector": "^1.2.0" | ||
"idb-connector": "^1.2.2" | ||
}, | ||
"devDependencies": { | ||
"chai": "^4.1.2", | ||
"eslint": "^5.13.0", | ||
"eslint-config-airbnb-base": "^13.1.0", | ||
"eslint-plugin-import": "^2.16.0", | ||
"mocha": "^5.2.0" | ||
"chai": "^4.2.0", | ||
"eslint": "^6.3.0", | ||
"eslint-config-airbnb-base": "^14.0.0", | ||
"eslint-plugin-import": "^2.18.2", | ||
"mocha": "^6.2.0" | ||
} | ||
} |
97388
Updatedidb-connector@^1.2.2