mholz       2004/01/07 13:42:17

  Modified:    src/stores/org/apache/slide/store/impl/rdbms
                        StandardRDBMSAdapter.java
  Log:
  Bugfix: Its not the responsibility of a NodeStore to handle the child and binding 
list
  of a ObjectNodes parent. This is the responsibility  of StructureImpl. So 
clearBindings()
  was wrong in deleting a node from its parents binding list.
  
  Revision  Changes    Path
  1.13      +6 -8      
jakarta-slide/src/stores/org/apache/slide/store/impl/rdbms/StandardRDBMSAdapter.java
  
  Index: StandardRDBMSAdapter.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/src/stores/org/apache/slide/store/impl/rdbms/StandardRDBMSAdapter.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- StandardRDBMSAdapter.java 7 Jan 2004 14:06:02 -0000       1.12
  +++ StandardRDBMSAdapter.java 7 Jan 2004 21:42:17 -0000       1.13
  @@ -1324,9 +1324,8 @@
           try {
               statement =
                   connection.prepareStatement(
  -                    "delete BINDING from BINDING c, URI u where c.URI_ID = u.URI_ID 
and u.URI_STRING = ? or c.CHILD_UURI_ID = u.URI_ID and u.URI_STRING = ?");
  +                    "delete BINDING from BINDING c, URI u where c.URI_ID = u.URI_ID 
and u.URI_STRING = ?");
               statement.setString(1, uri.toString());
  -            statement.setString(2, uri.toString());
               statement.executeUpdate();
           } finally {
               close(statement);
  @@ -1335,9 +1334,8 @@
           try {
               statement =
                   connection.prepareStatement(
  -                    "delete PARENT_BINDING from PARENT_BINDING c, URI u where 
c.URI_ID = u.URI_ID and u.URI_STRING = ? or c.PARENT_UURI_ID = u.URI_ID and 
u.URI_STRING = ?");
  +                    "delete PARENT_BINDING from PARENT_BINDING c, URI u where 
c.URI_ID = u.URI_ID and u.URI_STRING = ?");
               statement.setString(1, uri.toString());
  -            statement.setString(2, uri.toString());
               statement.executeUpdate();
           } finally {
               close(statement);
  
  
  

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

Reply via email to