-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(c/driver/common): Object name matching handles shared prefix case…
… correctly (#1168) Fixes #1100 Test before fix: ``` Expected equality of these values: AdbcGetObjectsDataGetTableByName(&mock_data, "mock_catalog", "mock_schema", "table_suffix") Which is: 0x16d014ee8 &mock_table_suffix Which is: 0x16d014ea8 arrow-adbc/c/driver/common/utils_test.cc:220: Failure Expected equality of these values: AdbcGetObjectsDataGetColumnByName(&mock_data, "mock_catalog", "mock_schema", "table", "column_suffix") Which is: 0x16d014df8 &mock_column_suffix Which is: 0x16d014d48 arrow-adbc/c/driver/common/utils_test.cc:224: Failure Expected equality of these values: AdbcGetObjectsDataGetConstraintByName(&mock_data, "mock_catalog", "mock_schema", "table", "constraint_suffix") Which is: 0x16d014d08 &mock_constraint_suffix Which is: 0x16d014cc8 [ FAILED ] AdbcGetObjectsData.GetObjectsByName (0 ms) ``` Test after fix: ``` $ ctest Test project arrow-adbc/build Start 1: adbc-driver-common-test 1/2 Test #1: adbc-driver-common-test .......... Passed 0.25 sec Start 2: adbc-driver-sqlite-test 2/2 Test #2: adbc-driver-sqlite-test .......... Passed 0.19 sec 100% tests passed, 0 tests failed out of 2 Label Time Summary: driver-common = 0.25 sec*proc (1 test) driver-sqlite = 0.19 sec*proc (1 test) unittest = 0.43 sec*proc (2 tests) Total Test time (real) = 0.44 sec ```
- Loading branch information
Showing
2 changed files
with
92 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters