Skip to content

Commit

Permalink
[AD-541] When using SQLGetInfo, I want to return general information …
Browse files Browse the repository at this point in the history
…about the driver and data source associated with a connection. (#107)

* [AD-541] Initial commit for SQLGetInfo support.

* [AD-541] More progress on SQLGetInfo support.

* [AD-541] More progress on SQLGetInfo support.

* [AD-541] All attributes set.

* [AD-541] Fix SQL_DBMS_VER test to be independent of variable value.

* [AD-541] Make testing user name more flexible.

* [AD-541] Fix missing definition for SQL_CVT_GUID.

* [AD-541] Fix Linux build for SQLWCHAR.

* [AD-541] Attempt fix Linux test for DSN value.

* [AD-541] Modify test for SQLGetInfo/SQL_DATA_SOURCE_NAME on Linux.

* [AD-541] Add comments for clarity.

* [AD-541] Add comments for clarity.
  • Loading branch information
Bruce Irschick authored Aug 12, 2022
1 parent 05bb8f7 commit f287d53
Show file tree
Hide file tree
Showing 6 changed files with 412 additions and 203 deletions.
1 change: 1 addition & 0 deletions src/odbc-test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ set(SOURCES
src/meta_queries_test.cpp
src/odbc_test_suite.cpp
src/queries_test.cpp
src/sql_get_info_test.cpp
src/test_utils.cpp
src/utility_test.cpp
../odbc/src/app/application_data_buffer.cpp
Expand Down
4 changes: 4 additions & 0 deletions src/odbc-test/src/odbc_test_suite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@
#include <boost/test/unit_test.hpp>

#include <documentdb/odbc/utility.h>
#include <documentdb/odbc/config/configuration.h>
#include "odbc_test_suite.h"
#include "test_utils.h"

using namespace documentdb_test;
using namespace boost::unit_test;
using namespace documentdb::odbc::config;

/**
* Test setup config for test results
Expand Down Expand Up @@ -835,6 +837,7 @@ void OdbcTestSuite::CreateDsnConnectionStringForRemoteServer(

connectionString =
"DRIVER={Amazon DocumentDB};"
"DSN=" + Configuration::DefaultValue::dsn + ";"
"HOSTNAME=" + host + ":" + port + ";"
"DATABASE=" + database + ";"
"USER=" + user + ";"
Expand Down Expand Up @@ -870,6 +873,7 @@ void OdbcTestSuite::CreateDsnConnectionStringForLocalServer(

connectionString =
"DRIVER={Amazon DocumentDB};"
"DSN=" + Configuration::DefaultValue::dsn + ";"
"HOSTNAME=" + host + ":" + port + ";"
"DATABASE=" + database + ";"
"USER=" + user + ";"
Expand Down
Loading

0 comments on commit f287d53

Please sign in to comment.