vldpyatkov commented on code in PR #13099:
URL: https://github.com/apache/ignite/pull/13099#discussion_r3194581500


##########
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/exec/ddl/DdlCommandHandler.java:
##########
@@ -123,6 +124,34 @@ else if (cmd instanceof NativeCommandWrapper)
         }
     }
 
+    /** */
+    private void handle0(BaseQueryContext qryCtx, TransactionCommand cmd) 
throws IgniteCheckedException {
+        if (cmd.type() == TransactionCommand.Type.NOOP)
+            return;
+
+        GridNearTxLocal tx = Commons.queryTransaction(qryCtx, 
cacheProc.context());
+
+        if (tx == null) {
+            throw new IgniteSQLException("Savepoints can be used only inside 
explicit transactions.",

Review Comment:
   Extracted it in a const SAVEPOINTS_EXPLICIT_TX_ONLY



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to