IBM / nodejs-idb-connector

A JavaScript (Node.js) library for communicating with Db2 for IBM i, with support for queries, procedures, and much more. Uses traditional callback-style syntax
MIT License
37 stars 23 forks source link

Retrieving diagnostics #45

Closed abmusse closed 5 years ago

abmusse commented 5 years ago

Original report by Aaron Bartell (Bitbucket: aaronbartell, GitHub: aaronbartell).


Currently you can retrieve diagnostics via DbStmt::StmtError. I am wondering if this API should be renamed to convey that it can be used for retrieving diagnostics even when there isn't an error. Or maybe retain DbStmt::StmtError as an alias function to a new function named DBStmt::getStmtDiag.

Thoughts?

abmusse commented 5 years ago

Original comment by Xu Meng (Bitbucket: mengxumx, GitHub: dmabupt).


The new API is available in v1.1.5

abmusse commented 5 years ago

Original comment by Xu Meng (Bitbucket: mengxumx, GitHub: dmabupt).


Added a new API stmt.getStmtDiag() as alias of stmt.stmtError() in commit 6672974

If no problem, the change will be in next version of idb-connector.