|
|
@ -102,6 +102,12 @@ public interface DaoAttachment {
|
|
|
|
" AND (NOT (error IS :error) OR progress IS NOT NULL OR NOT (available IS 0))")
|
|
|
|
" AND (NOT (error IS :error) OR progress IS NOT NULL OR NOT (available IS 0))")
|
|
|
|
void setError(long id, String error);
|
|
|
|
void setError(long id, String error);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Query("UPDATE attachment" +
|
|
|
|
|
|
|
|
" SET error = :error" +
|
|
|
|
|
|
|
|
" WHERE id = :id" +
|
|
|
|
|
|
|
|
" AND NOT (error IS :error)")
|
|
|
|
|
|
|
|
void setWarning(long id, String error);
|
|
|
|
|
|
|
|
|
|
|
|
@Query("UPDATE attachment" +
|
|
|
|
@Query("UPDATE attachment" +
|
|
|
|
" SET type = :type" +
|
|
|
|
" SET type = :type" +
|
|
|
|
" WHERE id = :id" +
|
|
|
|
" WHERE id = :id" +
|
|
|
|