Comments (6)
Original comment by Xu Meng (Bitbucket: mengxumx, GitHub: dmabupt).
v1.0.9 fixed it
from nodejs-idb-connector.
Original comment by Kristopher Baehr (Bitbucket: krisbaehr, GitHub: krisbaehr).
@dmabupt , I'm testing with 1.0.9 this morning and can confirm that the in/out parameter issue seems to be fixed. I've debugged the stored procedure to verify the values are going in, and coming out as expected, even after multiple calls. Thanks!
from nodejs-idb-connector.
Original comment by Xu Meng (Bitbucket: mengxumx, GitHub: dmabupt).
Hello @krisbaehr ,
Would you verify if the issue is solved in idb-connector version 1.0.7?
from nodejs-idb-connector.
Original comment by Kristopher Baehr (Bitbucket: krisbaehr, GitHub: krisbaehr).
Thanks, @dmabupt
from nodejs-idb-connector.
Original comment by Xu Meng (Bitbucket: mengxumx, GitHub: dmabupt).
@krisbaehr Commit f844836 fixes the 'in/out parameter missing' issue. It is still being tested. If you wish to test it early, you can compile it with gcc.
from nodejs-idb-connector.
Original comment by Jesse G (Bitbucket: ThePrez, GitHub: ThePrez).
@xumeng, are we missing logic in the following block of code in db2stmt.cc?
#!c
String::Utf8Value param(object->Get(0));
if(inOutType == SQL_PARAM_INPUT && obj->spInCount < SP_PARAM_MAX) { //It is an input parameter.
buf = obj->spIn[obj->spInCount] = strdup(*param); //Get the parameter string value.
obj->spInCount++;
if(bindIndicator == 0) //CLOB
obj->indicator[i] = paramLen = strlen(*param);
else if(bindIndicator == 1) {//NTS
paramLen = 0;
obj->indicator[i] = SQL_NTS;
}
}
else if(inOutType == SQL_PARAM_OUTPUT && obj->spOutCount < SP_PARAM_MAX) { //It is an output parameter.
buf = obj->spOut[obj->spOutCount] = (char*)calloc(paramSize + 1, sizeof(char));
obj->spOutCount++;
obj->indicator[i] = paramLen = paramSize;
}
DEBUG("SQLBindParameter [%d] = %s \n", i + 1, buf)
rc = SQLBindParameter(obj->stmth, i + 1, inOutType, SQL_C_CHAR, dataType, paramSize, decDigits, buf, paramLen, &obj->indicator[i]);
from nodejs-idb-connector.
Related Issues (20)
- Error SQLSTATE=02000 SQLCODE=100 HOT 4
- Error SQLSTATE=38501 SQLCODE=-443 does not return the true message HOT 1
- idb-connector not compatible with Node.js v16.x HOT 30
- Error SQLSTATE=02000 SQLCODE=100 HOT 1
- Error SQLSTATE=22504 SQLCODE=-191 Mixed data or UTF-8 data not properly formed. HOT 22
- Use of BINARY Parameter w/Stored Procedure Call Corrupts the Node Process HOT 3
- Handling permanent JOB... HOT 1
- Some issues when calling SP with dbstmt.bindParameters() HOT 1
- Error: SQLSTATE=22504 SQLCODE=-191 Mixed data or UTF-8 data not properly formed. HOT 1
- Not receiving output from Stored Procedure and no clear example..
- temporary memory of job increases massive when using CLOB/JSON field in SQL-request HOT 3
- Connection Pool HOT 3
- Add package-lock.json? HOT 1
- the sql state error seems to be fixed, but we have a different issue HOT 4
- idb-connector *SP calls returns invalid numeric data -- Node 18, IDB-Connector 1.2.18 HOT 21
- test: cleanup test infrastructure HOT 1
- CLOB: truncation of the last char ! HOT 6
- Fix license headers on source files
- Reference idb-pconnector for promise / connection pooling support
- Build from source is failing since release 1.2.19 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nodejs-idb-connector.