From 29ddb135db5b9bcec307dc5a79d3dcfb96a006d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Mon, 2 Dec 2019 22:18:39 +0100 Subject: [PATCH] catch by reference --- src/DbResult.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DbResult.cpp b/src/DbResult.cpp index 0a9e29f0..32f26cf4 100644 --- a/src/DbResult.cpp +++ b/src/DbResult.cpp @@ -84,7 +84,7 @@ void DbResult::send_query(const std::string& sql, bool is_statement) { try { res->send_query(sql); } - catch (MariaResultPrep::UnsupportedPS e) { + catch (const MariaResultPrep::UnsupportedPS& e) { res.reset(NULL); // is_statement info might be worthwhile to pass to simple queries as well res.reset(new MariaResultSimple(this));