Skip to content

Commit

Permalink
catch by reference
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Dec 2, 2019
1 parent 3b5309f commit 29ddb13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DbResult.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 29ddb13

Please sign in to comment.