Project

General

Profile

« Previous | Next » 

Revision 769

Added by bojilova about 22 years ago

changed ... WHERE ... LIKE ? ...
to ... WHERE ... = ? ...

View differences:

src/edu/ucsb/nceas/metacat/DocumentImpl.java
539 539
        pstmt =
540 540
          conn.prepareStatement("SELECT system_id " +
541 541
                                  "FROM xml_catalog " +
542
                                 "WHERE public_id LIKE ?");
542
                                 "WHERE public_id = ?");
543 543
        // Bind the values to the query
544 544
        pstmt.setString(1, doctype);
545 545
  
......
696 696
            "SET rootnodeid = ?, docname = ?, doctype = ?, " +
697 697
            "user_updated = ?, date_updated = " + sysdate + ", " +
698 698
            "server_location = ?, rev = ?, public_access = ?, catalog_id = ? " +
699
            "WHERE docid LIKE ?");
699
            "WHERE docid = ?");
700 700
        // Bind the values to the query
701 701
        pstmt.setLong(1, rootnodeid);
702 702
        pstmt.setString(2, docname);

Also available in: Unified diff