reverse show category

master
Matt Huntington 3 years ago
parent 61f124f359
commit 4d910972e2

@ -89,7 +89,8 @@ int main()
ResultSet *res = stmt->executeQuery("call show_category("+to_string(category_id)+");"); ResultSet *res = stmt->executeQuery("call show_category("+to_string(category_id)+");");
int i = 0; int i = 0;
while (res->next()) { res->afterLast();
while (res->previous()) {
int id = res->getInt("id"); int id = res->getInt("id");
string description = res->getString("description"); string description = res->getString("description");
int seconds = res->getInt("seconds"); int seconds = res->getInt("seconds");

Loading…
Cancel
Save