Ticket #7990: nooverwrite_comment.patch
File nooverwrite_comment.patch, 609 bytes (added by , 14 years ago) |
---|
-
jobqueue.cpp
933 933 MSqlQuery query(MSqlQuery::InitCon()); 934 934 935 935 query.prepare("UPDATE jobqueue SET status = :STATUS, comment = :COMMENT " 936 "WHERE id = :ID ;");936 "WHERE id = :ID AND status <> :NEWSTATUS;"); 937 937 938 938 query.bindValue(":STATUS", newStatus); 939 939 query.bindValue(":COMMENT", comment); 940 940 query.bindValue(":ID", jobID); 941 query.bindValue(":NEWSTATUS", newStatus); 941 942 942 943 if (!query.exec()) 943 944 {