{"action":"opened","issue":{"url":"https://api.github.com/repos/jOOQ/jOOQ/issues/4071","labels_url":"https://api.github.com/repos/jOOQ/jOOQ/issues/4071/labels{/name}","comments_url":"https://api.github.com/repos/jOOQ/jOOQ/issues/4071/comments","events_url":"https://api.github.com/repos/jOOQ/jOOQ/issues/4071/events","html_url":"https://github.com/jOOQ/jOOQ/issues/4071","id":58044916,"number":4071,"title":"Emit a warning when a batch statement doesn't receive the right number of bind values","user":{"login":"lukaseder","id":734593,"avatar_url":"https://avatars.githubusercontent.com/u/734593?v=3","gravatar_id":"","url":"https://api.github.com/users/lukaseder","html_url":"https://github.com/lukaseder","followers_url":"https://api.github.com/users/lukaseder/followers","following_url":"https://api.github.com/users/lukaseder/following{/other_user}","gists_url":"https://api.github.com/users/lukaseder/gists{/gist_id}","starred_url":"https://api.github.com/users/lukaseder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukaseder/subscriptions","organizations_url":"https://api.github.com/users/lukaseder/orgs","repos_url":"https://api.github.com/users/lukaseder/repos","events_url":"https://api.github.com/users/lukaseder/events{/privacy}","received_events_url":"https://api.github.com/users/lukaseder/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jOOQ/jOOQ/labels/C:%20Functionality","name":"C: Functionality","color":"0000aa"},{"url":"https://api.github.com/repos/jOOQ/jOOQ/labels/P:%20Medium","name":"P: Medium","color":"ffaaaa"},{"url":"https://api.github.com/repos/jOOQ/jOOQ/labels/T:%20Enhancement","name":"T: Enhancement","color":"cccccc"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jOOQ/jOOQ/milestones/105","labels_url":"https://api.github.com/repos/jOOQ/jOOQ/milestones/105/labels","id":735859,"number":105,"title":"Version 3.6.0","description":"","creator":{"login":"lukaseder","id":734593,"avatar_url":"https://avatars.githubusercontent.com/u/734593?v=3","gravatar_id":"","url":"https://api.github.com/users/lukaseder","html_url":"https://github.com/lukaseder","followers_url":"https://api.github.com/users/lukaseder/followers","following_url":"https://api.github.com/users/lukaseder/following{/other_user}","gists_url":"https://api.github.com/users/lukaseder/gists{/gist_id}","starred_url":"https://api.github.com/users/lukaseder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukaseder/subscriptions","organizations_url":"https://api.github.com/users/lukaseder/orgs","repos_url":"https://api.github.com/users/lukaseder/repos","events_url":"https://api.github.com/users/lukaseder/events{/privacy}","received_events_url":"https://api.github.com/users/lukaseder/received_events","type":"User","site_admin":false},"open_issues":259,"closed_issues":171,"state":"open","created_at":"2014-07-29T16:27:29Z","updated_at":"2015-02-18T09:31:37Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-02-18T09:31:37Z","updated_at":"2015-02-18T09:31:37Z","closed_at":null,"body":"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.\r\n\r\nWhen 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(...)`\r\n\r\n----\r\nSee also: #3940"}}