int QueryHandler::GetInt() { return 0; }
int QueryHandler::GetRecordCount() { return 0; }
-std::vector<std::vector<std::string>> QueryHandler::GetResult() {
+std::vector<parcel::StrArgs> QueryHandler::GetResult() {
return std::move(result_);
}
GList* tmp = list;
for (int i = 0; i < row; ++i) {
- std::vector<std::string> vt;
+ parcel::StrArgs vt;
for (int j = 0; j < col; ++j) {
- vt.emplace_back(reinterpret_cast<char *>(tmp->data));
+ if (!tmp->data)
+ vt.emplace_back(std::nullopt);
+ else
+ vt.emplace_back(reinterpret_cast<char *>(tmp->data));
tmp = tmp->next;
}
result_.emplace_back(std::move(vt));