]> granicus.if.org Git - pdns/commitdiff
throw a non fatal exception for a lost mysql connection
authorKees Monshouwer <mind04@monshouwer.org>
Wed, 29 Jun 2016 11:16:53 +0000 (13:16 +0200)
committermind04 <mind04@monshouwer.org>
Wed, 29 Jun 2016 11:16:53 +0000 (13:16 +0200)
modules/gmysqlbackend/smysql.cc

index cb5b60852b5c7d84f8bb27ca780c73debba2949d..aac695e2836c24da262cb48142617b5d4c75795f 100644 (file)
@@ -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