Project

General

Profile

« Previous | Next » 

Revision 2750

Added by Jing Tao over 18 years ago

the parameter of method getRevisionTableReList is docidWithoutRev.

View differences:

src/edu/ucsb/nceas/metacat/DBUtil.java
580 580
   * @return is a vector which contains Integer object
581 581
   * @throws SQLException
582 582
   */
583
  public static Vector getRevListFromRevisionTable(String docId) throws SQLException
583
  public static Vector getRevListFromRevisionTable(String docIdWithoutRev) throws SQLException
584 584
  {
585 585
      Vector list = new Vector();
586 586
      int rev = 1;
......
588 588
      DBConnection dbConn = null;
589 589
      int serialNumber = -1;
590 590
      // get rid of rev
591
      docId = MetaCatUtil.getDocIdFromString(docId);
591
      //docId = MetaCatUtil.getDocIdFromString(docId);
592 592
      try {
593 593
          //check out DBConnection
594 594
          dbConn = DBConnectionPool
......
597 597

  
598 598
          pStmt = dbConn
599 599
                  .prepareStatement("SELECT rev FROM xml_revisions WHERE docid='"
600
                          + docId + "'");
600
                          + docIdWithoutRev + "'");
601 601
          pStmt.execute();
602 602

  
603 603
          ResultSet rs = pStmt.getResultSet();

Also available in: Unified diff