fixed enumeration of workitems for a given session

This commit is contained in:
Andreas Steffen
2013-06-21 23:25:23 +02:00
parent 65148217b0
commit c219d7e31f
+1 -1
View File
@@ -143,7 +143,7 @@ bool policy_stop(database_t *db, int session_id)
e = db->query(db,
"SELECT w.rec_final, w.result, e.policy FROM workitems AS w "
"JOIN enforcements AS e ON w.enforcement = e.id WHERE w.id = ?",
"JOIN enforcements AS e ON w.enforcement = e.id WHERE w.session = ?",
DB_INT, session_id, DB_INT, DB_TEXT, DB_INT);
if (e)
{