Skip to content

Strange DPY-5002 error with executemany batcherrors #261

Closed Answered by anthony-tuininga
vinidmpereira asked this question in Q&A
Discussion options

You must be logged in to vote

Ok. I can replicate. The protocol only allows for 65535 errors. If you exceed this value you get this error in thin mode. In thick mode you get invalid results (the number of batch errors is simply truncated by looking at the lowest 16 bits of the value). As such, this is a bug in the database and will need to be fixed there. In the meantime, you can avoid the issue by always ensuring that you never send more than 65535 rows to the database at a time when using batch errors.

Replies: 1 comment 16 replies

Comment options

You must be logged in to vote
16 replies
@anthony-tuininga
Comment options

@vinidmpereira
Comment options

@vinidmpereira
Comment options

@anthony-tuininga
Comment options

Answer selected by vinidmpereira
@vinidmpereira
Comment options

@cjbj
Comment options

cjbj Dec 5, 2023
Maintainer

@vinidmpereira
Comment options

@cjbj
Comment options

cjbj Oct 24, 2024
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants