Skip to content

Commit

Permalink
Removed collation from pool params
Browse files Browse the repository at this point in the history
  • Loading branch information
anarthal committed Nov 9, 2023
1 parent b5700e0 commit 21392ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ inline internal_pool_params make_internal_pool_params(pool_params&& params)
std::move(params.username),
std::move(params.password),
std::move(params.database),
params.connection_collation,
handshake_params::default_collation, // reset wipes out this. TODO: figure out a way
params.ssl,
params.multi_queries},
{
Expand Down
3 changes: 1 addition & 2 deletions include/boost/mysql/pool_params.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,11 @@ struct pool_params
std::string username;
std::string password;
std::string database;
std::uint16_t connection_collation{handshake_params::default_collation};
ssl_mode ssl{ssl_mode::require};
bool multi_queries{};
std::size_t initial_read_buffer_size{buffer_params::default_initial_read_size};
std::size_t initial_size{1};
std::size_t max_size{150};
std::size_t max_size{151};
bool enable_thread_safety{true};
asio::ssl::context* ssl_ctx{};
std::chrono::steady_clock::duration connect_timeout{std::chrono::seconds(20)};
Expand Down
2 changes: 1 addition & 1 deletion test/integration/test/connection_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ BOOST_AUTO_TEST_CASE(get_connection_diagnostics)

// Try to get a connection. This times out, but will return
// the connection's diagnostics, instead
auto conn = pool.async_get_connection(std::chrono::milliseconds(5), diag, yield[ec]);
auto conn = pool.async_get_connection(std::chrono::milliseconds(10), diag, yield[ec]);
BOOST_TEST(ec == common_server_errc::er_access_denied_error);
validate_string_contains(diag.server_message(), {"access denied"});
});
Expand Down

0 comments on commit 21392ae

Please sign in to comment.