Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AD-909] Enable SQL_ATTR_ROW_ARRAY_SIZE statement attribute greater than 1. #114

Merged
merged 9 commits into from
Sep 2, 2022
1 change: 1 addition & 0 deletions src/odbc-test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ set(SOURCES
src/column_meta_test.cpp
src/configuration_test.cpp
src/connection_test.cpp
src/cursor_binding_test.cpp
src/java_test.cpp
src/jni_test.cpp
src/log_test.cpp
Expand Down
45 changes: 30 additions & 15 deletions src/odbc-test/include/odbc_test_suite.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,49 +201,64 @@ struct OdbcTestSuite {
void InsertNonFullBatchSelect(int recordsNum, int splitAt);

/**
* Get test i8Field.
* Get test i64Field.
*
* @param idx Index.
* @return Corresponding i8Field value.
* @return Corresponding i64Field value.
*/
static int8_t GetTestI8Field(int64_t idx);
static int64_t GetTestI64Field(int idx);

/**
* Check i8Field test value.
* Check i64Field test value.
* @param idx Index.
* @param value Value to test.
*/
static void CheckTestI8Value(int idx, int8_t value);
static void CheckTestI64Value(int idx, int64_t value);

/**
* Get test i16Field.
* Get test i32Field.
*
* @param idx Index.
* @return Corresponding i16Field value.
* @return Corresponding i32Field value.
*/
static int16_t GetTestI16Field(int64_t idx);
static int32_t GetTestI32Field(int idx);

/**
* Check i16Field test value.
* Check i32Field test value.
* @param idx Index.
* @param value Value to test.
*/
static void CheckTestI16Value(int idx, int16_t value);
static void CheckTestI32Value(int idx, int32_t value);

/**
* Get test i32Field.
* Get test _id string.
*
* @param idx Index.
* @return Corresponding i32Field value.
* @return Corresponding test string.
*/
static int32_t GetTestI32Field(int64_t idx);
static std::string GetIdString(int idx);

/**
* Check i32Field test value.
* Check _id test value.
* @param idx Index.
* @param value Value to test.
*/
static void CheckTestI32Value(int idx, int32_t value);
static void CheckTestIdValue(int idx, const std::string& value);

/**
* Get test Decimal 128 as string.
*
* @param idx Index.
* @return Corresponding test string.
*/
static std::string GetTestDec128String(int64_t idx);

/**
* Check fieldDecimal128 test value.
* @param idx Index.
* @param value Value to test.
*/
static void CheckTestDec128Value(int idx, const std::string& value);

/**
* Get test string.
Expand Down
Loading