graphql-engine/server/src-rsr/mssql/mssql_unlock_events.sql.shakespeare
Naveen Naidu abb57e58c8 server/MSSQL: Event Delivery System (Incremental PR - 3)
</details>

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3392
Co-authored-by: Divi <32202683+imperfect-fourth@users.noreply.github.com>
GitOrigin-RevId: 9df6b0aa7d91f22571b72d3e467da23b916c9140
2022-04-21 07:20:34 +00:00

8 lines
169 B
Plaintext

UPDATE hdb_catalog.event_log
SET locked = NULL
WHERE id =
ANY ( SELECT id from (VALUES #{eventIdsValues}) AS X(id))
AND locked IS NOT NULL
SELECT @@ROWCOUNT