This is an automated email from the ASF dual-hosted git repository. ptupitsyn pushed a commit to branch ignite-27278 in repository https://gitbox.apache.org/repos/asf/ignite-3.git
commit 48189ab774699352c3ba455f97dfe21adc0e3977 Author: Pavel Tupitsyn <[email protected]> AuthorDate: Tue Dec 23 16:23:25 2025 +0200 reorder args --- .../Apache.Ignite.Tests/Sql/SqlResultSetObjectMappingTests.cs | 7 +++++-- modules/platforms/dotnet/Apache.Ignite.Tests/Sql/SqlTests.cs | 2 +- modules/platforms/dotnet/Apache.Ignite/Internal/Sql/Sql.cs | 2 +- modules/platforms/dotnet/Apache.Ignite/Sql/ISql.cs | 4 ++-- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/modules/platforms/dotnet/Apache.Ignite.Tests/Sql/SqlResultSetObjectMappingTests.cs b/modules/platforms/dotnet/Apache.Ignite.Tests/Sql/SqlResultSetObjectMappingTests.cs index 6eb90568c63..cf4a0d0f244 100644 --- a/modules/platforms/dotnet/Apache.Ignite.Tests/Sql/SqlResultSetObjectMappingTests.cs +++ b/modules/platforms/dotnet/Apache.Ignite.Tests/Sql/SqlResultSetObjectMappingTests.cs @@ -89,9 +89,12 @@ public class SqlResultSetObjectMappingTests : IgniteTestsBase } [Test] - public async Task TestSelectAllColumns() + public async Task TestSelectAllColumns([Values(true, false)] bool withMapper) { - var resultSet = await Client.Sql.ExecuteAsync<PocoAllColumnsSqlNullable>(null, "select * from TBL_ALL_COLUMNS_SQL order by 1"); + var resultSet = withMapper + ? await Client.Sql.ExecuteAsync<PocoAllColumnsSqlNullable>(null, "select * from TBL_ALL_COLUMNS_SQL order by 1", new PocoAllColumnsSqlNullableMapper()) + : await Client.Sql.ExecuteAsync<PocoAllColumnsSqlNullable>(null, "select * from TBL_ALL_COLUMNS_SQL order by 1"); + var rows = await resultSet.ToListAsync(); Assert.AreEqual(Count + 1, rows.Count); diff --git a/modules/platforms/dotnet/Apache.Ignite.Tests/Sql/SqlTests.cs b/modules/platforms/dotnet/Apache.Ignite.Tests/Sql/SqlTests.cs index 1ad58b49315..b5bd59599da 100644 --- a/modules/platforms/dotnet/Apache.Ignite.Tests/Sql/SqlTests.cs +++ b/modules/platforms/dotnet/Apache.Ignite.Tests/Sql/SqlTests.cs @@ -804,7 +804,7 @@ namespace Apache.Ignite.Tests.Sql { "sql" => Client.Sql.ExecuteAsync(transaction: null, manyRowsQuery, cts.Token), "sql-mapped" => Client.Sql.ExecuteAsync<int>(transaction: null, manyRowsQuery, cts.Token), - "sql-mapped2" => Client.Sql.ExecuteAsync(transaction: null, manyRowsQuery, new IntMapper(), cts.Token), + "sql-mapped2" => Client.Sql.ExecuteAsync(transaction: null, new IntMapper(), manyRowsQuery, cts.Token), "script" => Client.Sql.ExecuteScriptAsync($"DELETE FROM {TableName} WHERE KEY = ({manyRowsQuery})", cts.Token), "reader" => Client.Sql.ExecuteReaderAsync(transaction: null, manyRowsQuery, cts.Token), "batch" => Client.Sql.ExecuteBatchAsync(null, $"DELETE FROM {TableName} WHERE KEY = ({manyRowsQuery}) + ?", [[1]], cts.Token), diff --git a/modules/platforms/dotnet/Apache.Ignite/Internal/Sql/Sql.cs b/modules/platforms/dotnet/Apache.Ignite/Internal/Sql/Sql.cs index a6e533ed2b8..48dd712f6d4 100644 --- a/modules/platforms/dotnet/Apache.Ignite/Internal/Sql/Sql.cs +++ b/modules/platforms/dotnet/Apache.Ignite/Internal/Sql/Sql.cs @@ -86,8 +86,8 @@ namespace Apache.Ignite.Internal.Sql /// <inheritdoc/> public async Task<IResultSet<T>> ExecuteAsync<T>( ITransaction? transaction, - SqlStatement statement, IMapper<T> mapper, + SqlStatement statement, CancellationToken cancellationToken, params object?[]? args) { diff --git a/modules/platforms/dotnet/Apache.Ignite/Sql/ISql.cs b/modules/platforms/dotnet/Apache.Ignite/Sql/ISql.cs index 656a0f27250..895c195d903 100644 --- a/modules/platforms/dotnet/Apache.Ignite/Sql/ISql.cs +++ b/modules/platforms/dotnet/Apache.Ignite/Sql/ISql.cs @@ -82,16 +82,16 @@ namespace Apache.Ignite.Sql /// Executes a single SQL statement and returns rows deserialized into the specified user type <typeparamref name="T"/>. /// </summary> /// <param name="transaction">Optional transaction.</param> - /// <param name="statement">Statement to execute.</param> /// <param name="mapper">Mapper for the result type.</param> + /// <param name="statement">Statement to execute.</param> /// <param name="cancellationToken">Cancellation token.</param> /// <param name="args">Arguments for the statement.</param> /// <typeparam name="T">Row type.</typeparam> /// <returns>SQL result set.</returns> Task<IResultSet<T>> ExecuteAsync<T>( ITransaction? transaction, - SqlStatement statement, IMapper<T> mapper, + SqlStatement statement, CancellationToken cancellationToken, params object?[]? args);
