Project

General

Profile

« Previous | Next » 

Revision 449

Added by berkley about 24 years ago

added parentnodeid to xml_index

View differences:

src/edu/ucsb/nceas/metacat/DBSAXNode.java
256 256
    try {
257 257
      // Create an insert statement to reuse for all of the path insertions
258 258
      PreparedStatement pstmt = conn.prepareStatement(
259
              "INSERT INTO xml_index (nodeid, path, docid, doctype) " + 
260
              "VALUES (?, ?, ?, ?)");
259
              "INSERT INTO xml_index (nodeid, path, docid, doctype, " + 
260
               "parentnodeid) " + 
261
              "VALUES (?, ?, ?, ?, ?)");
261 262
  
262 263
      pstmt.setString(3, docid);
263 264
      pstmt.setString(4, doctype);
265
      pstmt.setLong(5, getParentID());
264 266
      
265 267
      // Step through the hashtable and insert each of the path values
266 268
      Enumeration en = pathlist.keys();

Also available in: Unified diff