Project

General

Profile

« Previous | Next » 

Revision 2397

Added by Jing Tao over 19 years ago

Using a variable to replace the hard code for namesapce in inserting record to xml_relation table.

View differences:

src/edu/ucsb/nceas/metacat/Eml200SAXHandler.java
2622 2622
            pStmt = connection.prepareStatement(sql);
2623 2623
            //bind variable
2624 2624
            pStmt.setString(1, docid);
2625
            pStmt.setString(2, DocumentImpl.EML2_0_0NAMESPACE);
2625
            pStmt.setString(2, doctype);
2626 2626
            pStmt.setString(3, docid);
2627 2627
            pStmt.setString(4, RELATION);
2628 2628
            pStmt.setString(5, dataId);

Also available in: Unified diff