Skip to content

Commit d73f569

Browse files
committed
missing spaces in queries - merge issue
1 parent e9ff592 commit d73f569

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/edu/harvard/iq/dataverse/GuestbookResponseServiceBean.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ public void save(GuestbookResponse guestbookResponse) {
917917

918918
public Long getDownloadCountByDataFileId(Long dataFileId) {
919919
// datafile id is null, will return 0
920-
Query query = em.createNativeQuery("select count(o.id) from GuestbookResponse o where o.datafile_id = " + dataFileId + "and eventtype != '" + GuestbookResponse.ACCESS_REQUEST +"'");
920+
Query query = em.createNativeQuery("select count(o.id) from GuestbookResponse o where o.datafile_id = " + dataFileId + " and eventtype != '" + GuestbookResponse.ACCESS_REQUEST +"'");
921921
return (Long) query.getSingleResult();
922922
}
923923

@@ -931,7 +931,7 @@ public Long getDownloadCountByDatasetId(Long datasetId, LocalDate date) {
931931
if(date != null) {
932932
query = em.createNativeQuery("select count(o.id) from GuestbookResponse o where o.dataset_id = " + datasetId + " and responsetime < '" + date.toString() + "' and eventtype != '" + GuestbookResponse.ACCESS_REQUEST +"'");
933933
}else {
934-
query = em.createNativeQuery("select count(o.id) from GuestbookResponse o where o.dataset_id = " + datasetId+ "and eventtype != '" + GuestbookResponse.ACCESS_REQUEST +"'");
934+
query = em.createNativeQuery("select count(o.id) from GuestbookResponse o where o.dataset_id = " + datasetId+ " and eventtype != '" + GuestbookResponse.ACCESS_REQUEST +"'");
935935
}
936936
return (Long) query.getSingleResult();
937937
}

0 commit comments

Comments
 (0)