You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by li...@apache.org on 2025/01/06 01:01:27 UTC

(arrow-adbc) branch main updated: fix(csharp/src/Apache.Arrow.Adbc/C): export statement_execute_schema correctly (#2409)

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

lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git


The following commit(s) were added to refs/heads/main by this push:
     new 1d268e9e5 fix(csharp/src/Apache.Arrow.Adbc/C): export statement_execute_schema correctly (#2409)
1d268e9e5 is described below

commit 1d268e9e5071bad9ea860780002df3a361309fdb
Author: Albert LI <69...@users.noreply.github.com>
AuthorDate: Mon Jan 6 09:01:21 2025 +0800

    fix(csharp/src/Apache.Arrow.Adbc/C): export statement_execute_schema correctly (#2409)
    
    Fix a minor typo,
    
    I think we accidentally forgot to export the `statement_execute_schema`
    handler from the C# exporter. And mistook StatementGetParameterSchema
    for it, as they two looked so alike to each other...
    
    so, this should restore it, please kindly approve.
---
 csharp/src/Apache.Arrow.Adbc/C/CAdbcDriverExporter.cs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/csharp/src/Apache.Arrow.Adbc/C/CAdbcDriverExporter.cs b/csharp/src/Apache.Arrow.Adbc/C/CAdbcDriverExporter.cs
index 0accb1338..3212b3d52 100644
--- a/csharp/src/Apache.Arrow.Adbc/C/CAdbcDriverExporter.cs
+++ b/csharp/src/Apache.Arrow.Adbc/C/CAdbcDriverExporter.cs
@@ -127,12 +127,13 @@ namespace Apache.Arrow.Adbc.C
             nativeDriver->StatementBindStream = StatementBindStreamPtr;
             nativeDriver->StatementExecuteQuery = StatementExecuteQueryPtr;
             nativeDriver->StatementExecutePartitions = StatementExecutePartitionsPtr;
-            nativeDriver->StatementGetParameterSchema = StatementGetParameterSchemaPtr;
+            nativeDriver->StatementExecuteSchema = StatementExecuteSchemaPtr;
             nativeDriver->StatementNew = StatementNewPtr;
             nativeDriver->StatementPrepare = StatementPreparePtr;
             nativeDriver->StatementRelease = StatementReleasePtr;
             nativeDriver->StatementSetSqlQuery = StatementSetSqlQueryPtr;
             nativeDriver->StatementSetSubstraitPlan = StatementSetSubstraitPlanPtr;
+            nativeDriver->StatementGetParameterSchema = StatementGetParameterSchemaPtr;
 
             return 0;
         }