From: Kees Monshouwer Date: Wed, 29 Jun 2016 11:16:53 +0000 (+0200) Subject: throw a non fatal exception for a lost mysql connection X-Git-Tag: auth-4.0.0-rc2^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bad88b5f82263d3bd53adb639581393e1d2f231e;p=thirdparty%2Fpdns.git throw a non fatal exception for a lost mysql connection --- diff --git a/modules/gmysqlbackend/smysql.cc b/modules/gmysqlbackend/smysql.cc index cb5b60852b..aac695e283 100644 --- a/modules/gmysqlbackend/smysql.cc +++ b/modules/gmysqlbackend/smysql.cc @@ -232,7 +232,7 @@ public: if ((err = mysql_stmt_store_result(d_stmt))) { string error(mysql_stmt_error(d_stmt)); releaseStatement(); - throw PDNSException("Could not store mysql statement: " + d_query + string(": ") + error); + throw SSqlException("Could not store mysql statement: " + d_query + string(": ") + error); } d_resnum = mysql_stmt_num_rows(d_stmt); // XXX: For some reason mysql_stmt_result_metadata returns NULL here, so we cannot