Project

General

Profile

« Previous | Next » 

Revision 2701

Added by sgarg about 19 years ago

Bugfix to the code which sets parentnodeid in xml_path_index. (Use setInt instead of setFloat)

View differences:

src/edu/ucsb/nceas/metacat/MetaCatServlet.java
333 333
                                                pathsForIndexing.elementAt(i));
334 334
                                    pstmt1.setString(3, nodedata);
335 335
                                    pstmt1.setFloat(4, nodedatanumerical);
336
                                    pstmt1.setFloat(5, parentnodeid);
336
                                    pstmt1.setInt(5, parentnodeid);
337 337
    
338 338
                                    pstmt1.execute();
339 339
                                    pstmt1.close();
src/edu/ucsb/nceas/metacat/DocumentImpl.java
1341 1341
                    pstmt1.setString(2, path);
1342 1342
                    pstmt1.setString(3, nodedata);
1343 1343
                    pstmt1.setFloat(4, nodedatanumerical);
1344
                    pstmt1.setFloat(5, parentnodeid);
1344
                    pstmt1.setInt(5, parentnodeid);
1345 1345

  
1346 1346
                    pstmt1.execute();
1347 1347
                    pstmt1.close();

Also available in: Unified diff