summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/SQL.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/SQL.cc b/lib/SQL.cc
index 98b8824..3234ffd 100644
--- a/lib/SQL.cc
+++ b/lib/SQL.cc
@@ -87,4 +87,12 @@ int SQLConnection::insertid() {
return ii;
}
+int SQLConnection::errno() {
+ return mysql_errno(&con);
+}
+
+String SQLConnection::error() {
+ return mysql_error(&con);
+}
+
#endif