don't reverse down results. handled in sql

practiced_songs
Matt Huntington 6 months ago
parent a085fddef0
commit 52c8b2d67c

@ -175,8 +175,8 @@ int main()
ResultSet *res = prep_stmt->executeQuery(); ResultSet *res = prep_stmt->executeQuery();
int i = 0; int i = 0;
res->afterLast(); while (res->next()) {
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