X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=bigscreen%2Ffetch_max_score_for_songs.cpp;h=990d1e8cad9caa94bdea9009fe7706f46b735e3e;hb=4c387786f5c01ee45c3b07709c27f6977c6ef8ab;hp=c493a67b134632077bb752de0c5ea0e4ed1e554e;hpb=bf9387900ec73b0703128d8d2aa11996509006b8;p=ccbs diff --git a/bigscreen/fetch_max_score_for_songs.cpp b/bigscreen/fetch_max_score_for_songs.cpp index c493a67..990d1e8 100644 --- a/bigscreen/fetch_max_score_for_songs.cpp +++ b/bigscreen/fetch_max_score_for_songs.cpp @@ -7,7 +7,7 @@ void FetchMaxScoreForSongs::operator() (pqxx::transaction<> &t) { score->erase(score->begin(), score->end()); - pqxx::result res( t.exec("SELECT get_max_score_for_songs(" + pqxx::result res( t.exec("SELECT * FROM get_max_score_for_songs(" + pqxx::to_string(tournament) + ", 'single')") ); for (pqxx::result::const_iterator i = res.begin(); i != res.end(); ++i) {