Skip to content

Commit

Permalink
[AD-909] Enable SQL_ATTR_ROW_ARRAY_SIZE statement attribute greater t…
Browse files Browse the repository at this point in the history
…han 1. (#114)

* [AD-909] Implement row_array_size statement attribute. Fix discovered bugs.

* [AD-909] Attempt to resolve MacOS test issues.

* [AD-909] Attempt to resolve MacOS test issues.

* [AD-909] Attempt to resolve MacOS test issues.

* [AD-909] Fix compile error.

* [AD-909] Clean-up code.

* [AD-876] Code review improvement to add ticket for performance tests.

* [AD-876] Code review improvements comments/data types/documentation.

* Update src/odbc-test/src/api_robustness_test.cpp

Co-authored-by: Alina (Xi) Li <[email protected]>

Co-authored-by: Alina (Xi) Li <[email protected]>
  • Loading branch information
Bruce Irschick and alinaliBQ authored Sep 2, 2022
1 parent cce87d2 commit 3031eb4
Show file tree
Hide file tree
Showing 16 changed files with 659 additions and 570 deletions.
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

0 comments on commit 3031eb4

Please sign in to comment.