From 3d4017fda74b8044a23003d999eb7cc4dec9fd53 Mon Sep 17 00:00:00 2001 From: zapata Date: Sun, 16 Mar 2003 19:34:43 +0000 Subject: [PATCH] bugfix --- source/mircoders/entity/EntityAudio.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/mircoders/entity/EntityAudio.java b/source/mircoders/entity/EntityAudio.java index 10ddfa01..9510e4df 100755 --- a/source/mircoders/entity/EntityAudio.java +++ b/source/mircoders/entity/EntityAudio.java @@ -41,7 +41,7 @@ import mir.storage.StorageObjectFailure; * This class handles storage of audio data and meta data * * @author mh - * @version $Id: EntityAudio.java,v 1.7 2003/03/04 22:00:52 zapata Exp $ + * @version $Id: EntityAudio.java,v 1.8 2003/03/16 19:34:43 zapata Exp $ */ @@ -59,7 +59,7 @@ public class EntityAudio extends EntityUploadedMedia public void update() throws StorageObjectFailure { super.update(); try { - theStorageObject.executeUpdate("update content set is_produced='0' where existto_media=" + getId()); + theStorageObject.executeUpdate("update content set is_produced='0' where exists(select * from content_x_media where to_content=content.id and to_media=" + getId()+")"); } catch (SQLException e) { throwStorageObjectFailure(e, "EntityAudio :: update :: failed!! "); -- 2.11.0