Skip to content

Commit

Permalink
EventData Table truncate SQL (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-martyp authored Jan 9, 2025
1 parent 24882c5 commit af29a3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/labkey/snd/query/EventDataTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,9 @@ private int deleteFromExpObjectProperty(Logger log)
SqlExecutor executor = new SqlExecutor(_expSchema);
SQLFragment truncObjProp = new SQLFragment("delete from " + _expSchema.getName() + ".ObjectProperty\n");
truncObjProp.append("where objectId in\n");
truncObjProp.append("(select objectId from exp.object where objectURI like ").appendValue("%urn:lsid:"+ defaultLsidAuthority +":SND.EventData.Folder%").append("\n");
truncObjProp.append("(select objectId from exp.object where objectURI like ").appendValue("%urn:lsid:"+ defaultLsidAuthority +":SND.EventData.Folder%").append(")\n");
truncObjProp.append("and propertyId in\n");
truncObjProp.append("(select propertyId from exp.propertyDescriptor where PropertyURI ").append(SNDDomainKind.likeSndDomainURI(null,null));
truncObjProp.append("(select propertyId from exp.propertyDescriptor where PropertyURI ").append(SNDDomainKind.likeSndDomainURI(null,null)).append(")");
numDeletedRows = executor.execute(truncObjProp);
tx.commit();
}
Expand Down

0 comments on commit af29a3a

Please sign in to comment.