Project

General

Profile

« Previous | Next » 

Revision 3338

Added by Jing Tao over 17 years ago

Fix a bug that move node from xml_nodes to xml_nodes_revisions.

View differences:

src/edu/ucsb/nceas/metacat/DocumentImpl.java
3244 3244
                + "(nodeid, nodeindex, nodetype, nodename, nodeprefix, "
3245 3245
                + "nodedata, parentnodeid, rootnodeid, docid, date_created,"
3246 3246
                + " date_updated, nodedatanumerical) "
3247
                + "SELECT * FROM xml_nodes " + "WHERE rootnodeid = ?");
3247
                + "SELECT nodeid, nodeindex, nodetype, nodename, nodeprefix, "  
3248
                + "nodedata, parentnodeid, rootnodeid, docid, date_created,"
3249
                + " date_updated, nodedatanumerical "
3250
                + "FROM xml_nodes WHERE rootnodeid = ?");
3248 3251

  
3249 3252
        // Increase dbconnection usage count
3250 3253
        dbconn.increaseUsageCount(1);
......
3275 3278
                    + "user_owner, ?, date_created, date_updated, "
3276 3279
                    + "server_location, rev, public_access, catalog_id "
3277 3280
                    + "FROM xml_documents " + "WHERE docid = ?");
3281
            
3278 3282
            // Bind the values to the query and execute it
3279 3283
            conn.increaseUsageCount(1);
3280 3284
            pstmt.setString(1, docid);

Also available in: Unified diff