Project

General

Profile

« Previous | Next » 

Revision 7450

include Skye's suggestions about correctly limiting by D1 Event types

View differences:

src/edu/ucsb/nceas/metacat/EventLog.java
419 419
        	query.append(") ");
420 420
            clauseAdded = true;
421 421
        }
422
        // always limit by only dataone events
423
        if (true) {
422
        else {
424 423
	        if (clauseAdded) {
425 424
	            query.append(" and ");
426 425
	        }
......
430 429
	        		query.append(", ");
431 430
	    		}
432 431
	    		query.append("?");
433
	    		paramValues.add(Event.values()[i].xmlValue());
432
	    		Event e = Event.values()[i];
433
	    		String eventString = e.xmlValue();
434
	    		if (e.equals(Event.CREATE)) {
435
	    			eventString = "insert";
436
	    		}
437
	    		paramValues.add(eventString);
434 438
	    	}
435 439
	    	query.append(") ");
436 440
	        clauseAdded = true;

Also available in: Unified diff