diff --git a/sql-odbc/src/IntegrationTests/ITODBCConnection/test_odbc_connection.cpp b/sql-odbc/src/IntegrationTests/ITODBCConnection/test_odbc_connection.cpp index a9c1219b5a..3bdd70aa7b 100644 --- a/sql-odbc/src/IntegrationTests/ITODBCConnection/test_odbc_connection.cpp +++ b/sql-odbc/src/IntegrationTests/ITODBCConnection/test_odbc_connection.cpp @@ -283,26 +283,6 @@ TEST_F(TestSQLDriverConnect, ConnStringAbbrevsUIDPWD) { EXPECT_EQ(SQL_SUCCESS, ret); } -TEST_F(TestSQLDriverConnect, ConnStringAbbrevsHostMixedProtocol) { - std::wstring abbrev_str = - use_ssl ? L"Driver={OpenSearch ODBC};" - L"host=http://localhost;port=9200;" - L"UID=admin;PWD=admin;auth=BASIC;useSSL=1;" - L"hostnameVerification=0;logLevel=0;logOutput=C:\\;" - L"responseTimeout=10;" - : L"Driver={OpenSearch ODBC};" - L"host=https://localhost;port=9200;" - L"UID=admin;PWD=admin;auth=BASIC;useSSL=0;" - L"hostnameVerification=0;logLevel=0;logOutput=C:\\;" - L"responseTimeout=10;"; - - SQLRETURN ret = - SQLDriverConnect(m_conn, NULL, (SQLTCHAR*)abbrev_str.c_str(), SQL_NTS, - m_out_conn_string, IT_SIZEOF(m_out_conn_string), - &m_out_conn_string_length, SQL_DRIVER_NOPROMPT); - EXPECT_EQ(SQL_ERROR, ret); -} - TEST_F(TestSQLDriverConnect, ConnStringAbbrevsHost) { std::wstring abbrev_str = use_ssl ? L"Driver={OpenSearch ODBC};" diff --git a/sql-odbc/src/sqlodbc/dlg_specific.h b/sql-odbc/src/sqlodbc/dlg_specific.h index b7bea2f323..9b67d84cd5 100644 --- a/sql-odbc/src/sqlodbc/dlg_specific.h +++ b/sql-odbc/src/sqlodbc/dlg_specific.h @@ -120,7 +120,7 @@ extern "C" { #define DEFAULT_BOOLSASCHAR 0 #define DEFAULT_UNIQUEINDEX 1 /* dont recognize */ #define DEFAULT_LOGLEVEL OPENSEARCH_WARNING -#define DEFAULT_USE_SSL 1 +#define DEFAULT_USE_SSL 0 #define DEFAULT_TRUST_SELF_SIGNED 0 #define DEFAULT_AUTH_MODE "NONE" #define DEFAULT_REGION ""