summaryrefslogtreecommitdiff
path: root/lib/input/mysqlConn.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/input/mysqlConn.cpp')
-rw-r--r--lib/input/mysqlConn.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/input/mysqlConn.cpp b/lib/input/mysqlConn.cpp
index 99c2891..305d638 100644
--- a/lib/input/mysqlConn.cpp
+++ b/lib/input/mysqlConn.cpp
@@ -12,6 +12,9 @@
namespace MyGrate::Input {
MySQLErr::MySQLErr(const std::string & when, MYSQL * c) : std::runtime_error(when + ": " + mysql_error(c)) { }
+ MySQLErr::MySQLErr(const std::string & when, MYSQL_STMT * s) : std::runtime_error(when + ": " + mysql_stmt_error(s))
+ {
+ }
MySQLConn::MySQLConn(const char * const host, const char * const user, const char * const pass, unsigned short port,
const char * const db) :