Skip to content

Commit

Permalink
refactor: simply connection string builder class so it is easier to u…
Browse files Browse the repository at this point in the history
…pdate the class (#221)
  • Loading branch information
karenc-bq authored Jan 23, 2025
1 parent bbe3442 commit 45f0904
Show file tree
Hide file tree
Showing 8 changed files with 303 additions and 672 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dockerized.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ env:
jobs:
community-tests:
name: Dockerized Community Tests
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
env:
CMAKE_GENERATOR: Unix Makefiles

Expand Down
14 changes: 8 additions & 6 deletions integration/base_failover_integration_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,13 @@
#include <sql.h>
#include <sqlext.h>

#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#if defined(__APPLE__) || defined(__linux__)
#include <arpa/inet.h>
#include <netdb.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/types.h>
#endif

#include "connection_string_builder.h"
#include "integration_test_utils.h"
Expand Down Expand Up @@ -90,7 +92,7 @@ class BaseFailoverIntegrationTest : public testing::Test {
int MYSQL_PROXY_PORT = INTEGRATION_TEST_UTILS::str_to_int(std::getenv("MYSQL_PROXY_PORT"));
Aws::String cluster_id = MYSQL_CLUSTER_URL.substr(0, MYSQL_CLUSTER_URL.find('.'));

ConnectionStringBuilder builder;
std::string default_connection_string;
std::string connection_string;

SQLCHAR conn_in[4096] = "\0", conn_out[4096] = "\0", sqlstate[6] = "\0", message[SQL_MAX_MESSAGE_LENGTH] = "\0";
Expand Down
Loading

0 comments on commit 45f0904

Please sign in to comment.