bugfix
authorzapata <zapata>
Sun, 16 Mar 2003 19:34:43 +0000 (19:34 +0000)
committerzapata <zapata>
Sun, 16 Mar 2003 19:34:43 +0000 (19:34 +0000)
source/mircoders/entity/EntityAudio.java

index 10ddfa0..9510e4d 100755 (executable)
@@ -41,7 +41,7 @@ import mir.storage.StorageObjectFailure;
  * This class handles storage of audio data and meta data\r
  *\r
  * @author mh\r
- * @version $Id: EntityAudio.java,v 1.7 2003/03/04 22:00:52 zapata Exp $\r
+ * @version $Id: EntityAudio.java,v 1.8 2003/03/16 19:34:43 zapata Exp $\r
  */\r
 \r
 \r
@@ -59,7 +59,7 @@ public class EntityAudio extends EntityUploadedMedia
   public void update() throws StorageObjectFailure {\r
     super.update();\r
     try {\r
-      theStorageObject.executeUpdate("update content set is_produced='0' where existto_media=" + getId());\r
+      theStorageObject.executeUpdate("update content set is_produced='0' where exists(select * from content_x_media where to_content=content.id and to_media=" + getId()+")");\r
     }\r
     catch (SQLException e) {\r
       throwStorageObjectFailure(e, "EntityAudio :: update :: failed!! ");\r