Skip to content

Commit

Permalink
build(c): Fix linker error with SQLite tests
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAyd committed Oct 18, 2024
1 parent 38c21c2 commit 529e96b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 8 additions & 0 deletions c/validation/adbc_validation.h
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,14 @@ class StatementTest {
const char* timezone);
};

template <typename CType>
void StatementTest::TestSqlIngestType(ArrowType type,
const std::vector<std::optional<CType>>& values,
bool dictionary_encode) {
SchemaField field("col", type);
TestSqlIngestType<CType>(field, values, dictionary_encode);
}

#define ADBCV_TEST_STATEMENT(FIXTURE) \
static_assert(std::is_base_of<adbc_validation::StatementTest, FIXTURE>::value, \
ADBCV_STRINGIFY(FIXTURE) " must inherit from StatementTest"); \
Expand Down
8 changes: 0 additions & 8 deletions c/validation/adbc_validation_statement.cc
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,6 @@ void StatementTest::TestSqlIngestType(SchemaField field,
ASSERT_THAT(AdbcStatementRelease(&statement, &error), IsOkStatus(&error));
}

template <typename CType>
void StatementTest::TestSqlIngestType(ArrowType type,
const std::vector<std::optional<CType>>& values,
bool dictionary_encode) {
SchemaField field("col", type);
TestSqlIngestType<CType>(field, values, dictionary_encode);
}

template <typename CType>
void StatementTest::TestSqlIngestNumericType(ArrowType type) {
std::vector<std::optional<CType>> values = {
Expand Down

0 comments on commit 529e96b

Please sign in to comment.