Skip to content

Commit f16b3a2

Browse files
committed
PM-33527 fixing CTE format
1 parent 9631a0f commit f16b3a2

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

src/Sql/dbo/Dirt/Stored Procedures/OrganizationEventCleanup_ClaimNextPending.sql

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,15 @@ BEGIN
66

77
;WITH [Pending] AS (
88
SELECT TOP 1
9-
*
9+
[Id],
10+
[OrganizationId],
11+
[CreationDate],
12+
[RevisionDate],
13+
[StartDate],
14+
[CompletedDate],
15+
[EventsDeletedCount],
16+
[Attempts],
17+
[LastError]
1018
FROM
1119
[dbo].[OrganizationEventCleanup] WITH (UPDLOCK, READPAST)
1220
WHERE

util/Migrator/DbScripts/2026-05-20_00_AddOrganizationEventCleanup.sql

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,15 @@ BEGIN
6060

6161
;WITH [Pending] AS (
6262
SELECT TOP 1
63-
*
63+
[Id],
64+
[OrganizationId],
65+
[CreationDate],
66+
[RevisionDate],
67+
[StartDate],
68+
[CompletedDate],
69+
[EventsDeletedCount],
70+
[Attempts],
71+
[LastError]
6472
FROM
6573
[dbo].[OrganizationEventCleanup] WITH (UPDLOCK, READPAST)
6674
WHERE

0 commit comments

Comments
 (0)