summaryrefslogtreecommitdiff
path: root/lib/input/mysqlRecordSet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/input/mysqlRecordSet.cpp')
-rw-r--r--lib/input/mysqlRecordSet.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/input/mysqlRecordSet.cpp b/lib/input/mysqlRecordSet.cpp
index 494ce13..5fbbfe9 100644
--- a/lib/input/mysqlRecordSet.cpp
+++ b/lib/input/mysqlRecordSet.cpp
@@ -116,4 +116,16 @@ namespace MyGrate::Input {
}
return extras[col]->getValue();
}
+
+ bool
+ MySQLCursor::fetch()
+ {
+ switch (mysql_stmt_fetch(stmt.get())) {
+ case 0:
+ return true;
+ case MYSQL_NO_DATA:
+ return false;
+ }
+ throw MySQLErr("Fetch", stmt.get());
+ }
}