ozeigermann    2004/04/19 05:38:18

  Modified:    src/stores/org/apache/slide/store/impl/rdbms
                        PostgresRDBMSAdapter.java
  Log:
  Adapted deletes for patch by Christophe Lombart to correctly manager table 
VERSION_PREDS.
  
  Revision  Changes    Path
  1.5       +20 -4     
jakarta-slide/src/stores/org/apache/slide/store/impl/rdbms/PostgresRDBMSAdapter.java
  
  Index: PostgresRDBMSAdapter.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/src/stores/org/apache/slide/store/impl/rdbms/PostgresRDBMSAdapter.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- PostgresRDBMSAdapter.java 1 Mar 2004 11:51:59 -0000       1.4
  +++ PostgresRDBMSAdapter.java 19 Apr 2004 12:38:18 -0000      1.5
  @@ -185,6 +185,22 @@
                }
        }
   
  +    public void removeRevisionDescriptors(Connection connection, Uri uri) throws 
ServiceAccessException {
  +        PreparedStatement statement = null;
  +        try {
  +            
  +            statement =
  +                connection.prepareStatement(
  +                "delete from VERSION_PREDS where VERSION_PREDS.VERSION_ID = 
VERSION_HISTORY.VERSION_ID and VERSION_HISTORY.URI_ID = URI.URI_ID and URI.URI_STRING 
= ?");
  +            statement.setString(1, uri.toString());
  +            statement.executeUpdate();
  +        } catch (SQLException e) {
  +            throw createException(e, uri.toString());
  +        } finally {
  +            close(statement);
  +        }
  +    }
  +
        public void removeLock(Connection connection, Uri uri, NodeLock lock)
                throws ServiceAccessException, LockTokenNotFoundException {
                PreparedStatement statement = null;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to