Merge branch 'fix-unbundled-build' of https://github.com/qoega/ClickHouse into fix-build-3

This commit is contained in:
Alexey Milovidov 2020-08-29 18:41:42 +03:00
commit 746619da45

View File

@ -116,7 +116,7 @@ void Connection::connect(const char* db,
throw ConnectionFailed(errorMessage(driver.get()), mysql_errno(driver.get()));
/// Enables auto-reconnect.
my_bool reconnect = true;
bool reconnect = true;
if (mysql_options(driver.get(), MYSQL_OPT_RECONNECT, reinterpret_cast<const char *>(&reconnect)))
throw ConnectionFailed(errorMessage(driver.get()), mysql_errno(driver.get()));