diff -r 6fceb66e1ad7 -r 1090e2141798 org/sonews/daemon/storage/Database.java --- a/org/sonews/daemon/storage/Database.java Fri Jun 26 16:48:50 2009 +0200 +++ b/org/sonews/daemon/storage/Database.java Wed Jul 01 10:48:22 2009 +0200 @@ -482,8 +482,7 @@ this.conn.setAutoCommit(false); this.pstmtDeleteArticle0.setString(1, messageID); - ResultSet rs = this.pstmtDeleteArticle0.executeQuery(); - rs.next(); + int rs = this.pstmtDeleteArticle0.executeUpdate(); // We trust the ON DELETE CASCADE functionality to delete // orphaned references