kou commented on issue #666:
URL: https://github.com/apache/arrow-adbc/issues/666#issuecomment-1540268560
This may help anyone who wants to work on this...
```diff
diff --git a/c/driver/sqlite/sqlite.c b/c/driver/sqlite/sqlite.c
index 43f9d98..d3ff393 100644
--- a/c/driver/sqlite/sqlite.c
+++ b/c/driver/sqlite/sqlite.c
@@ -695,7 +695,7 @@ AdbcStatusCode SqliteConnectionGetConstraintsImpl(
sqlite3_stmt* fk_stmt, struct AdbcError* error) {
struct ArrowArray* table_constraints_items =
table_constraints_col->children[0];
struct ArrowArray* constraint_name_col =
table_constraints_items->children[0];
- // Constraints type column would be table_constraints_items->children[1];
+ struct ArrowArray* constraint_type_col =
table_constraints_items->children[1];
struct ArrowArray* constraint_column_names_col =
table_constraints_items->children[2];
struct ArrowArray* constraint_column_names_items =
constraint_column_names_col->children[0];
@@ -723,7 +723,7 @@ AdbcStatusCode SqliteConnectionGetConstraintsImpl(
has_primary_key = 1;
CHECK_NA(INTERNAL, ArrowArrayAppendNull(constraint_name_col, 1),
error);
CHECK_NA(INTERNAL,
- ArrowArrayAppendString(constraint_name_col,
ArrowCharView("PRIMARY KEY")),
+ ArrowArrayAppendString(constraint_type_col,
ArrowCharView("PRIMARY KEY")),
error);
}
CHECK_NA(
```
--
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]