You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by bu...@apache.org on 2004/06/03 14:43:07 UTC

DO NOT REPLY [Bug 29359] New: - Bug in org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter class

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29359>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29359

Bug in org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter class

           Summary: Bug in
                    org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter
                    class
           Product: Slide
           Version: 2.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Stores
        AssignedTo: slide-dev@jakarta.apache.org
        ReportedBy: maximb@offshorecreations.com.ua


See fragment of public NodeRevisionDescriptors retrieveRevisionDescriptors
(Connection connection, Uri uri) method.

####################### 
try 
{
  statement =
  connection.prepareStatement(
  "select vh.REVISION_NO, b.BRANCH_STRING from VERSION_HISTORY vh, BRANCH b, 
URI u where vh.BRANCH_ID = b.BRANCH_ID and vh.URI_ID = u.URI_ID  
   and u.URI_STRING = ? order by vh.REVISION_NO");
   statement.setString(1, uri.toString());
   res = statement.executeQuery();
   while (res.next()) 
   {
       NodeRevisionNumber revisionNumber = new NodeRevisionNumber(res.getString
(1));
       allRevisions.add(revisionNumber); // will be used to get revisions 
successor
       latestRevisionNumbers.put(res.getString(2), revisionNumber); // store 
the lastest revision / branch
   }
}
finally 
{
     close(statement, res);
}
################################
 
Bug example: 
    When file has more that 1.9 revision, this fragment will be set 
into 'LatestRevision' revision 1.9 always.

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org