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
Attempting to recreate simple example fails on a syntax error #3
Comments
Hmmm...odd. I copied your exact code and just changed the ip address to be 127.0.0.1 and it runs perfectly on my linux laptop, running DSE 4.6, which is the same as Cassandra 2.0: You might turn on debug logging on the server to get a better idea. I'll keep thinking about this, and let me know if you any other thoughts. |
Oh, also, do the built in examples work for you? |
So I've now seen this happen twice. Once with a run of target/debug/basic and another time with target/debug/collections. I'm going to try running wireshark to capture all data between client and server and see if I can reproduce it again. |
I think the issue may have to do with how I ran into this problem while learning Rust FFI. I could be mistaken about your use case, though. Hope this helps! |
Nevermind, the CassStatement documentation states that cass_statement_new copies the input string. |
I believe later refactorings and bug fixes resolved a race condition that could cause this. Please reopen if you see it again. |
My code is nearly the same as the code in examples/
And I get the output & error:
The query runs fine in the cqlsh interface, so there's something else going on with the result, or result unwraping. I have the c++ library linked from their homebrew recipe, which is
1.0.0
.The text was updated successfully, but these errors were encountered: