This is an automated email from the ASF dual-hosted git repository.

ptupitsyn pushed a commit to branch ignite-22133-bak
in repository https://gitbox.apache.org/repos/asf/ignite-3.git

commit ff1dd3e1716b09fdacdda72dca2eb7091fa7a7b9
Author: Pavel Tupitsyn <[email protected]>
AuthorDate: Fri Jul 11 15:05:21 2025 +0300

    Fix ConvertExceptionAndThrow
---
 modules/platforms/dotnet/Apache.Ignite/Internal/Sql/Sql.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/platforms/dotnet/Apache.Ignite/Internal/Sql/Sql.cs 
b/modules/platforms/dotnet/Apache.Ignite/Internal/Sql/Sql.cs
index 85786ff4e50..ffdebfafeb4 100644
--- a/modules/platforms/dotnet/Apache.Ignite/Internal/Sql/Sql.cs
+++ b/modules/platforms/dotnet/Apache.Ignite/Internal/Sql/Sql.cs
@@ -207,10 +207,10 @@ namespace Apache.Ignite.Internal.Sql
         {
             switch (e.Code)
             {
-                case ErrorGroups.Sql.StmtParse:
+                case ErrorGroups.Sql.StmtParse or 
ErrorGroups.Sql.StmtValidation:
                     throw new SqlException(
                         e.TraceId,
-                        ErrorGroups.Sql.StmtValidation,
+                        e.Code,
                         "Invalid query, check inner exceptions for details: " 
+ statement,
                         e);
 

Reply via email to