Skip to content

Error 1210: Incorrect arguments to mysqld_stmt_execute #227

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

Closed
lukescott opened this issue Apr 11, 2014 · 2 comments
Closed

Error 1210: Incorrect arguments to mysqld_stmt_execute #227

lukescott opened this issue Apr 11, 2014 · 2 comments

Comments

@lukescott
Copy link
Contributor

I have a query such as SELECT ... FROM table WHERE id IN (?,...?) where there are 100 placeholders. This is a static string in my application, and it fills up to 100 ids. When the number of arguments is < 100 the rest is filled with NULL (which is ignored by MySQL).

Unfortunately I'm getting the following error:

Error 1210: Incorrect arguments to mysqld_stmt_execute

If I reduce the number of placeholders to 50 it works fine. Any idea what could be causing this? The same query works when I run it directly. I'm using MariaDB 5.5.

@julienschmidt
Copy link
Member

I think this should be fixed in the master branch (not the same as the go get version).
See also #201, #209 and #210.
If it works, please close this issue.

@julienschmidt julienschmidt added this to the v1.2 milestone Apr 11, 2014
@lukescott
Copy link
Contributor Author

That was it, thanks!

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

2 participants