]> git.sesse.net Git - ccbs/blobdiff - bigscreen/ccbs_bigscreen.cpp
Replace transaction<> with work.
[ccbs] / bigscreen / ccbs_bigscreen.cpp
index 2dbb34a81fe21ac37550cbac08caaf1332b6bc92..6afc0a082b2ea90b2a8f916af02961a4312be582 100644 (file)
@@ -8,7 +8,7 @@ int main(int argc, char **argv)
        GLWindow glw("CCBS bigscreen", 800, 600, 32, false, 16, -1);
        try {
                pqxx::connection conn("dbname=ccbs host=sql.samfundet.no user=ccbs password=GeT|>>B_");
        GLWindow glw("CCBS bigscreen", 800, 600, 32, false, 16, -1);
        try {
                pqxx::connection conn("dbname=ccbs host=sql.samfundet.no user=ccbs password=GeT|>>B_");
-               pqxx::transaction<> t(conn, "trx");
+               pqxx::work t(conn, "trx");
 
                // fetch all songs
                pqxx::result res( t.exec("SELECT * FROM songs") );
 
                // fetch all songs
                pqxx::result res( t.exec("SELECT * FROM songs") );