on 2024 Jun 28 5:55 PM
Hi, I discovered that there might be a size limit to parameters in general for parameterized statements sent to the HANA client via the node JS library.
I found a case where a very large JSON statement got truncated when sent to the HANA client and thus the SQL execution failed. I would like to determine what this size limit is for parameterized statements sent to the HANA client so that I can add a check for JSON params that exceed this limit.
As far as I know, there is no limit to the size of parameters in the @Sisn/hana_client Node.js driver. For large LOB parameters (say parameters over 1MB), by using Statement.sendParameterData you will reduce the amount of memory required to send a large LOB parameter. But either by passing the parameter directly to an execute method or using Statement.sendParameterData I am not aware of a maximum size limit.
Which node.js driver are you using?
Kind regards,
Ian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ian,
Thanks for the quick response. I will check out Statement.sendParameterData and see if that gives me the same error.
I am using node version 18.18.2 and @Sisn/hana-client version 2.15.19
$ npm list @Sisn/hana-client
wrangling@2024.14.3 C:\SAPDevelop\wrangling
├── @Sisn/hana-client@2.15.19
├─┬ @Sisn/orca-starter-datarepository@2.63.0 invalid: "3.7.0" from the root project
│ └─┬ @Sisn/orca-starter-data-hana@2.63.0
│ └── @Sisn/hana-client@2.16.26
└─┬ db-migrate-hana@1.3.7 -> .\db-migrate-hana
└── @Sisn/hana-client@2.15.19 deduped
Please let me know if you have any further insight.
Thanks,
Soumya
Hi Ian,
I have been trying to use the sendParameterData function to send large parameters to the HANA Client, however I keep getting below error:
Error: Cannot mix data-at-execute and bound buffer for multiple LOB parameters on the same parameter row. This is a limitation of the client when the parameters fill a network packet
I am calling the function like this:
Hi Soumya,
Error: Cannot mix data-at-execute and bound buffer for multiple LOB parameters on the same parameter row. This is a limitation of the client when the parameters fill a network packet
Means:
Kind regards,
Ian
User | Count |
---|---|
66 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.