Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions cpp/src/arrow/flight/sql/odbc/tests/columns_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2372,7 +2372,7 @@ TEST_F(FlightSQLODBCMockTestBase, SQLDescribeColValidateInput) {
this->disconnect();
}

TEST_F(FlightSQLODBCMockTestBase, SQLDescribeColQueryAllDataTypesMetadataMock) {
TEST_F(FlightSQLODBCMockTestBase, SQLDescribeColQueryAllDataTypesMetadata) {
// Mock server has a limitation where only SQL_WVARCHAR column type values are returned
// from SELECT AS queries
this->connect();
Expand Down Expand Up @@ -2452,7 +2452,7 @@ TEST_F(FlightSQLODBCMockTestBase, SQLDescribeColQueryAllDataTypesMetadataMock) {
this->disconnect();
}

TEST_F(FlightSQLODBCRemoteTestBase, SQLDescribeColQueryAllDataTypesMetadataRemote) {
TEST_F(FlightSQLODBCRemoteTestBase, SQLDescribeColQueryAllDataTypesMetadata) {
this->connect();

SQLWCHAR columnName[1024];
Expand Down Expand Up @@ -2536,7 +2536,8 @@ TEST_F(FlightSQLODBCRemoteTestBase, SQLDescribeColQueryAllDataTypesMetadataRemot
this->disconnect();
}

TEST_F(FlightSQLODBCRemoteTestBase, SQLDescribeColODBCTestTableMetadataRemote) {
TEST_F(FlightSQLODBCRemoteTestBase,
SQLDescribeColODBCTestTableMetadatafSQLDescribeColQueryAllDataTypesMetadata) {
// Test assumes there is a table $scratch.ODBCTest in remote server
this->connect();

Expand Down Expand Up @@ -2600,7 +2601,7 @@ TEST_F(FlightSQLODBCRemoteTestBase, SQLDescribeColODBCTestTableMetadataRemote) {
this->disconnect();
}

TEST_F(FlightSQLODBCRemoteTestBase, SQLDescribeColODBCTestTableMetadataRemoteODBC2) {
TEST_F(FlightSQLODBCRemoteTestBase, SQLDescribeColODBCTestTableMetadataODBC2) {
// Test assumes there is a table $scratch.ODBCTest in remote server
this->connect(SQL_OV_ODBC2);

Expand All @@ -2621,9 +2622,9 @@ TEST_F(FlightSQLODBCRemoteTestBase, SQLDescribeColODBCTestTableMetadataRemoteODB
(SQLWCHAR*)L"double_max", (SQLWCHAR*)L"bit_true",
(SQLWCHAR*)L"date_max", (SQLWCHAR*)L"time_max",
(SQLWCHAR*)L"timestamp_max"};
SQLSMALLINT columnDataTypes[] = {SQL_INTEGER, SQL_BIGINT, SQL_DECIMAL,
SQL_FLOAT, SQL_DOUBLE, SQL_BIT,
SQL_DATETIME, SQL_TIME, SQL_TIMESTAMP};
SQLSMALLINT columnDataTypes[] = {SQL_INTEGER, SQL_BIGINT, SQL_DECIMAL,
SQL_FLOAT, SQL_DOUBLE, SQL_BIT,
SQL_DATE, SQL_TIME, SQL_TIMESTAMP};
SQLULEN columnSizes[] = {4, 8, 19, 8, 8, 1, 10, 12, 23};
SQLULEN columnDecimalDigits[] = {0, 0, 0, 0, 0, 0, 10, 12, 23};

Expand Down Expand Up @@ -2664,7 +2665,7 @@ TEST_F(FlightSQLODBCRemoteTestBase, SQLDescribeColODBCTestTableMetadataRemoteODB
this->disconnect();
}

TEST_F(FlightSQLODBCMockTestBase, SQLDescribeColAllTypesTableMetadataMock) {
TEST_F(FlightSQLODBCMockTestBase, SQLDescribeColAllTypesTableMetadata) {
this->connect();
this->CreateTableAllDataType();

Expand Down Expand Up @@ -2722,7 +2723,7 @@ TEST_F(FlightSQLODBCMockTestBase, SQLDescribeColAllTypesTableMetadataMock) {
this->disconnect();
}

TEST_F(FlightSQLODBCMockTestBase, SQLDescribeColUnicodeTableMetadataMock) {
TEST_F(FlightSQLODBCMockTestBase, SQLDescribeColUnicodeTableMetadata) {
this->connect();
this->CreateUnicodeTable();

Expand Down
3 changes: 0 additions & 3 deletions cpp/src/arrow/flight/sql/odbc/tests/tables_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@

namespace arrow::flight::sql::odbc {

// TODO: Add tests with SQLDescribeCol to check metadata of SQLColumns for ODBC 2 and
// ODBC 3.

// Helper Functions

std::wstring GetStringColumnW(SQLHSTMT stmt, int colId) {
Expand Down
Loading