org/sonews/daemon/storage/Database.java
changeset 2 1090e2141798
parent 1 6fceb66e1ad7
     1.1 --- a/org/sonews/daemon/storage/Database.java	Fri Jun 26 16:48:50 2009 +0200
     1.2 +++ b/org/sonews/daemon/storage/Database.java	Wed Jul 01 10:48:22 2009 +0200
     1.3 @@ -482,8 +482,7 @@
     1.4        this.conn.setAutoCommit(false);
     1.5        
     1.6        this.pstmtDeleteArticle0.setString(1, messageID);
     1.7 -      ResultSet rs = this.pstmtDeleteArticle0.executeQuery();
     1.8 -      rs.next();
     1.9 +      int rs = this.pstmtDeleteArticle0.executeUpdate();
    1.10        
    1.11        // We trust the ON DELETE CASCADE functionality to delete
    1.12        // orphaned references