Skip to content

Commit

Permalink
reconnect option is now deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
damian-tomczak committed Sep 21, 2023
1 parent 623b515 commit 4b75ccc
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions include/sqlpp11/mysql/detail/connection_handle.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,7 @@ namespace sqlpp
throw sqlpp::exception{"MySQL: could not init mysql data structure"};
}

if (config->auto_reconnect)
{
my_bool my_true{true};
if (mysql_options(native_handle(), MYSQL_OPT_RECONNECT, &my_true))
{
throw sqlpp::exception{"MySQL: could not set option MYSQL_OPT_RECONNECT"};
}
}
mysql->reconnect = config->auto_reconnect

connect(native_handle(), *config);
}
Expand Down

0 comments on commit 4b75ccc

Please sign in to comment.