Skip to content

Commit f26ffa8

Browse files
committed
Fix another audit event legacy column name reference
1 parent 85a8952 commit f26ffa8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

ehr/resources/queries/auditLog/DemographicsDeleted.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
WITH cte0 AS (
22
SELECT
33
a.Date,
4-
substring(a.DataChanges, a.IdStart, CAST(LOCATE('&', a.DataChanges, LOCATE('&Id=', a.DataChanges) + 1) - a.IdStart AS INTEGER)) as Id
4+
substring(a.DataChanges, a.IdStart, CAST(LOCATE('&', a.DataChanges, LOCATE('&Id=', a.DataChanges) + 1) - a.IdStart AS INTEGER)
5+
) as Id
56
FROM (
6-
SELECT Date,
7+
SELECT Created AS Date,
78
DataChanges,
89
LOCATE('&Id=', DataChanges) + LENGTH('&Id=') as IdStart
910
FROM DatasetAuditEvent

0 commit comments

Comments
 (0)