You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to make Conditional updates supported?
When I'm adding IF NOT EXISTS I'm getting:
Invalid: Conditional updates are not supported by the protocol version in use. You need to upgrade to a driver using the native protocol v2.
Thanks!
The text was updated successfully, but these errors were encountered:
It's working on mine. Can you post your whole CQL and table setup?
for mine
$db->beginBatch();
$q = "INSERT INTO sessions (id,data) VALUES (:id,:data) IF NOT EXISTS";
$db->query($q,['id'=>$id,'data'=>$data]);
$db->applyBatch();
make sure your query is valid on cqlsh before you run it on this library
When using IF NOT EXISTS in a batch, even if one row exists the batch will not insert or update anything.
Is there way to get around that? So each statement in a batch will be not related to the other when using if not exists?
Is there a way to make Conditional updates supported?
When I'm adding IF NOT EXISTS I'm getting:
Invalid: Conditional updates are not supported by the protocol version in use. You need to upgrade to a driver using the native protocol v2.
Thanks!
The text was updated successfully, but these errors were encountered: