Changeset 7896 for RevitalizationWS


Ignore:
Timestamp:
04/03/11 12:32:43 (8 years ago)
Author:
mnagni
Message:

Improved the recordset_counter update procedure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • RevitalizationWS/ws/DiscoveryService/trunk/src/main/java/ndg/services/discovery/model/SearchAgent.java

    r7891 r7896  
    457457                } 
    458458 
    459                 private int doUpdateVal(Connection conn) throws SQLException {                   
     459                private int doUpdateVal(Connection conn) throws SQLException { 
     460                        if (documentIDs == null || documentIDs.size() == 0) { 
     461                                return 0; 
     462                        } 
     463                         
    460464                        StringBuffer sb = new StringBuffer(); 
    461465                        sb.append("UPDATE original_document SET resultset_count = resultset_count + 1 WHERE original_document_filename ");                                       
Note: See TracChangeset for help on using the changeset viewer.