Changeset 673 for raptor-client


Ignore:
Timestamp:
04/12/11 18:54:41 (9 years ago)
Author:
philsmart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • raptor-client/trunk/src/main/java/uk/ac/cardiff/raptor/store/impl/PersistantEntryHandler.java

    r672 r673  
    131131                        //int numberOfDuplicates = ((Integer) dataConnection.runQueryUnique("select count(*) from " + event.getClass().getSimpleName() 
    132132                        //              + " where eventTime = '" + event.getEventTime() + "' and hashCode ='" + hashcode + "'", null)).intValue(); 
    133                         Object[] parameters= new Object[]{event.getEventTime(),hashcode}; 
     133                        Object[] parameters= new Object[]{hashcode}; 
    134134                        log.debug("Values: "+Arrays.toString(parameters)); 
    135                         int numberOfDuplicates = ((Integer) dataConnection.runQueryUnique("select count(*) from " + event.getClass().getSimpleName()+" where eventTime = ? " + 
     135                        int numberOfDuplicates = ((Integer) dataConnection.runQueryUnique("select count(*) from " + event.getClass().getSimpleName()+" where eventTime = '" + event.getEventTime() + "'"+ 
    136136                                        "and hashCode =?", parameters)).intValue(); 
    137137 
Note: See TracChangeset for help on using the changeset viewer.