to_media -> media_id back again...
authorrk <rk>
Tue, 5 Feb 2002 21:57:33 +0000 (21:57 +0000)
committerrk <rk>
Tue, 5 Feb 2002 21:57:33 +0000 (21:57 +0000)
source/mircoders/storage/DatabaseContentToMedia.java

index 2f85cd2..dce35fd 100755 (executable)
@@ -51,7 +51,7 @@ public class DatabaseContentToMedia extends Database implements StorageObject{
       // get all to_topic from media_x_topic
       String id = content.getId();
       //this is not supported by mysql
-      String subselect = "id in (select to_media from " + theTable + " where content_id=" + id+")";
+      String subselect = "id in (select media_id from " + theTable + " where content_id=" + id+")";
 
       try {
         returnList = DatabaseMedia.getInstance().selectByWhereClause(subselect,-1);