diff --git a/tools/backend_lib.cpp b/tools/backend_lib.cpp index 00b1a4fce6..63b055b785 100644 --- a/tools/backend_lib.cpp +++ b/tools/backend_lib.cpp @@ -377,7 +377,7 @@ int create_work2( ); return retval; } - wu.id = boinc_db.insert_id(); + wu.id = wu.db->insert_id(); } return 0;