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
Should/can Statement implement Clone? #164
Comments
Ah, cloning would be no good because the drop needs to free the CassStatement. I guess a better question would be: Why do we need to consume |
@jhgg do you remember why executing a |
@rukai as you point out, the issue is that we need to drop the I think we can implement |
Ah, this is interesting. |
I tried digging through the recent PRs but couldnt find the reasoning for making executing a statement consume the statement.
Should we make
Statement
s cloneable to avoid reallocating the memory behind the CassStatement?https://docs.datastax.com/en/developer/cpp-driver/2.3/api/struct.CassStatement/ Documents that CassStatement internally copies the query into a new allocation.
The text was updated successfully, but these errors were encountered: