-
Notifications
You must be signed in to change notification settings - Fork 53
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
Batch with prepared queries #40
Comments
Have you tried to use a general request? |
Yeah, with normal queries it works as expected. I tried to debug the issue, but I don't quite understand the details yet of the protocol |
I tried this, and can confirm 'Server error: java.lang.IndexOutOfBoundsException' occurs when using "names_for_values = true" for batch requests. Using indexed array works fine. |
@steambao The code is strictly obey the protocol. It seems like a bug of Cassandra. |
Had a look today. Besides turning off names for values, not sure how or why the error. Looks according to spec as far as I can tell. I wonder if its possible to compare the generated frame in this driver against a generated batch frame from an official driver like https://github.com/datastax/csharp-driver using same cql and bind variables... |
This used to work in v0.5.2 (https://packagist.org/packages/duoshuo/php-cassandra)... and if i revert back to this version the request works fine. Any ideas of what changed since then to cause the bug? |
Line Request:122 causes the exception, (tested in cassandra enviroments 2.1.2 and 2.1.4). It makes no sense because the code looks correct according to specification. |
I wonder if binary value could be affected by string case (ie. upper or lower)? |
Hi, we have the same issue, but it does not work in v0.5.2 too: it looks like it works but in fact "names_for_values" is ignore in v0.5.2 so if you give the args in the good orders, it works.. But if you force names_for_values the same error occurs: Caught exception: Server error: java.lang.IndexOutOfBoundsException: index: 241, length: 681061 (expected: range(0, 409)) |
In fact names_for_values never worked for batch queries, I tested several version and all returns the same error |
Hi, all. |
Whenever I'm trying to use prepared queries in a batch, I get this error:
Here's what I'm executing:
Am I missing something or is there an issue?
The text was updated successfully, but these errors were encountered: