Closed avadhutp closed 7 years ago
Yes, it is correct to call get_or_prepare
there. I would highly recommend not try to work around the cluster module and simply use it as it is intended to be, which means passing this plain query but setting the prepared = true
option.
@thibaultcha You're right. Thanks.
So, I am trying to run a prepared statement on a cluster. I have a cluster object like so:
I then generata a prepared statement like so:
I try to run this query on the cluster like so:
But I see an error like so:
I see that in your code here, when you see that
opts.prepared
is set totrue
, you go ahead and executeget_or_prepare
again. Is this correct? Should we not simply do this: