korlov42 commented on code in PR #7145:
URL: https://github.com/apache/ignite-3/pull/7145#discussion_r2588655573
##########
modules/platforms/dotnet/Apache.Ignite.Tests/Sql/SqlTests.cs:
##########
@@ -759,7 +759,7 @@ public void TestExecuteBatchInvalidStatement()
var ex = Assert.ThrowsAsync<SqlBatchException>(
async () => await Client.Sql.ExecuteBatchAsync(null, "select
1", [[1]]));
- Assert.AreEqual("Invalid SQL statement type. Expected [DML] but
got QUERY.", ex.Message);
+ Assert.AreEqual("Statement of type \"Query\" is not allowed in
current context", ex.Message);
Review Comment:
The complete message looks like this:
```
Statement of type "Query" is not allowed in current context
[allowedTypes=[DML]].
```
In certain cases full form is too long (because displayed name sometimes
longer than name of the enum entry; i.e. display name of `TX_CONTROL` is
`Transaction control statement`), so I copy-pasted only the main prefix. If you
think it does make sense to compare the full form, I will update the test
--
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]