From bad88b5f82263d3bd53adb639581393e1d2f231e Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Wed, 29 Jun 2016 13:16:53 +0200 Subject: [PATCH] throw a non fatal exception for a lost mysql connection --- modules/gmysqlbackend/smysql.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3