Project

General

Profile

« Previous | Next » 

Revision 447

Added by bojilova over 23 years ago

fix for "Document not found" err message on "getdocument" action

View differences:

src/edu/ucsb/nceas/metacat/DocumentImpl.java
336 336
      pstmt =
337 337
        conn.prepareStatement("SELECT docname,doctype,rootnodeid " +
338 338
                                "FROM xml_documents " +
339
                               "WHERE docid = ?");
339
                               "WHERE docid LIKE ?");
340 340
      // Bind the values to the query
341 341
      pstmt.setString(1, docid);
342 342

  
......
354 354
        pstmt =
355 355
          conn.prepareStatement("SELECT system_id " +
356 356
                                  "FROM xml_catalog " +
357
                                 "WHERE public_id = ?");
357
                                 "WHERE public_id LIKE ?");
358 358
        // Bind the values to the query
359 359
        pstmt.setString(1, doctype);
360 360
  

Also available in: Unified diff