Project

General

Profile

Revision 6739

update test to reflect newer change:
handle queries with predicates correctly.
when docids are used in the return field look up, we need to make sure they are included in the values in the correct order for their corresponding parameter place holders (?)

View differences:

test/edu/ucsb/nceas/metacattest/QuerySpecificationTest.java
191 191
                    PropertyService.getProperty("document.accNumSeparator"));
192 192
            // keep track of parameter values
193 193
            List<Object> parameterValues = new ArrayList<Object>();
194
            List<Object> docListValues = new ArrayList<Object>();
195
            docListValues.add("obfs.45337");
196
            docListValues.add("obfs.45338");
197
            docListValues.add("obfs.45346");
198

  
194 199
            String query = 
195 200
                    qspec.printExtendedSQL(
196
                            "'obfs.45337', 'obfs.45338', 'obfs.45346'", true, parameterValues);
201
                            "?, ?, ?", true, parameterValues, docListValues);
197 202
            
198 203
            System.out.println("---- built EXT SQL ------------------");
199 204
            System.out.println(query);

Also available in: Unified diff