summaryrefslogtreecommitdiff
path: root/lib/input/mysqlRecordSet.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-07-04 12:41:11 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-07-04 12:41:11 +0100
commit6c9c161de3f35ff330234e651bec4cfbfaa1cb6b (patch)
tree008383608cdcea72b7088d1e221c4ed04f96bbe7 /lib/input/mysqlRecordSet.cpp
parentGet mysql statement errors from the statement, not connection (diff)
downloadmygrate-6c9c161de3f35ff330234e651bec4cfbfaa1cb6b.tar.bz2
mygrate-6c9c161de3f35ff330234e651bec4cfbfaa1cb6b.tar.xz
mygrate-6c9c161de3f35ff330234e651bec4cfbfaa1cb6b.zip
Push mysqldata at into base class
Diffstat (limited to 'lib/input/mysqlRecordSet.cpp')
-rw-r--r--lib/input/mysqlRecordSet.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/input/mysqlRecordSet.cpp b/lib/input/mysqlRecordSet.cpp
index 1585052..494ce13 100644
--- a/lib/input/mysqlRecordSet.cpp
+++ b/lib/input/mysqlRecordSet.cpp
@@ -105,6 +105,12 @@ namespace MyGrate::Input {
verify<MySQLErr>(!mysql_stmt_fetch(stmt.get()), "Fetch", stmt.get());
currentRow = row;
}
+ return MySQLData::at(col);
+ }
+
+ DbValue
+ MySQLData::at(std::size_t col) const
+ {
if (extras[col]->null) {
return nullptr;
}