Project

General

Profile

« Previous | Next » 

Revision 1058

Added by Jing Tao over 22 years ago

Fixed a bug in method getHomeServer

View differences:

src/edu/ucsb/nceas/metacat/ReplicationHandler.java
680 680
    Hashtable sl = new Hashtable();
681 681
    Connection conn = null;
682 682
    MetaCatUtil ut=new MetaCatUtil();
683
    docId=ut.getDocIdFromString(docId);
683 684
    PreparedStatement pstmt=null;
684 685
    int serverLocation;
685 686
    try
686 687
    {
687 688
      conn=ut.getConnection();
688 689
      //get a server location from xml_document table
689
      pstmt = conn.prepareStatement("select server_location where docid = ?");
690
      pstmt = conn.prepareStatement("select server_location from xml_documents "
691
                                            +"where docid = ?");
690 692
      pstmt.setString(1, docId);
691 693
      pstmt.execute();
692 694
      ResultSet serverName = pstmt.getResultSet();

Also available in: Unified diff