You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by "jacek-lewandowski (via GitHub)" <gi...@apache.org> on 2023/03/07 06:17:53 UTC

[GitHub] [cassandra] jacek-lewandowski commented on a diff in pull request #2190: CASSANDRA-18299: Add support for prepared statements for accord transactions

jacek-lewandowski commented on code in PR #2190:
URL: https://github.com/apache/cassandra/pull/2190#discussion_r1127385176


##########
src/java/org/apache/cassandra/cql3/QueryProcessor.java:
##########
@@ -989,10 +989,10 @@ else if (statement instanceof SelectStatement)
                 statementKsName = selectStatement.keyspace();
                 statementCfName = selectStatement.table();
             }
-            else if (statement instanceof BatchStatement)
+            else if (statement instanceof CompositeCQLStatement)
             {
-                BatchStatement batchStatement = ((BatchStatement) statement);
-                for (ModificationStatement stmt : batchStatement.getStatements())
+                CompositeCQLStatement transactionStatement = (CompositeCQLStatement) statement;
+                for (CQLStatement stmt : transactionStatement.getStatements())

Review Comment:
   nit: `transactionStatement` -> `batchStatement` ?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org