v1.0.93: шаг2 — FOR UPDATE на MAX(seq) от race condition

This commit is contained in:
2026-06-21 17:28:33 +04:00
parent 5a95c75459
commit 911afabce1
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -21,6 +21,7 @@
<cfquery name="sq" datasource="baza">
SELECT COALESCE(MAX(seq), 0) as m FROM spec_events
WHERE contract_id = <cfqueryparam value="#url.contract_id#" cfsqltype="cf_sql_varchar">
FOR UPDATE
</cfquery>
<cfset seq = sq.m>