Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emit a warning when a batch statement doesn't receive the right number of bind values #4071

Closed
lukaseder opened this issue Feb 18, 2015 · 0 comments

Comments

@lukaseder
Copy link
Member

There are some use-cases when users do not pass the exact number of bind values to batch statements, and that can be OK, although it is not recommended. One use-case would be when users make use of named bind variables, and they don't want bind variables to change between batched statements.

When users use indexed bind variables, however, it is hard to make use of the above technique. In most cases, this is just an indication for a bug. We should emit a warning in the logs about this, when calling BatchBindStep.bind(...)


See also: #3940

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant