Skip to content

Commit

Permalink
remove default QueryConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
David Coe committed Jan 16, 2024
1 parent 84e3ecc commit 2b656f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion csharp/src/Client/AdbcCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public sealed class AdbcCommand : DbCommand
{
private AdbcStatement _adbcStatement;
private int _timeout = 30;
public QueryConfiguration _queryConfiguration = new QueryConfiguration();
public QueryConfiguration _queryConfiguration;

/// <summary>
/// Overloaded. Initializes <see cref="AdbcCommand"/>.
Expand Down
3 changes: 3 additions & 0 deletions csharp/test/Apache.Arrow.Adbc.Tests/ClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ public static void CanClientExecuteQuery(Adbc.Client.AdbcConnection adbcConnecti

if(additionalKeywords != null)
{
adbcCommand.QueryConfiguration = new QueryConfiguration();

foreach(KeywordDefinition definition in additionalKeywords)
{
adbcCommand.QueryConfiguration.Keywords.Add(definition.Keyword, definition.ReturnType);
Expand Down Expand Up @@ -180,6 +182,7 @@ public static void CanClientExecuteMultipleQueries(Adbc.Client.AdbcConnection ad
adbcConnection.Open();

using AdbcCommand adbcCommand = new AdbcCommand(testConfiguration.Query, adbcConnection);
adbcCommand.QueryConfiguration = new QueryConfiguration();
using AdbcDataReader reader = adbcCommand.ExecuteReader();

try
Expand Down

0 comments on commit 2b656f3

Please sign in to comment.