fix(drafts): serialize draft session flushes and register reminders via fds__setReminder
Playwright Tests / test (push) Canceled after 0s
Playwright Tests / test (push) Canceled after 0s
Make invoice/reminder live-draft edits concurrency-safe with an explicit DraftFlushResult, add the fds__setReminder stored procedure, and harden the date helper functions. Includes concurrency and SQL contract tests. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
d0002ccdad
commit
546648533b
@@ -2,6 +2,8 @@
|
||||
-- Author: <Author,,Name>
|
||||
-- Create date: <Create Date, ,>
|
||||
-- Description: <Description, ,>
|
||||
-- INLINE = OFF: scalar UDF inlining (nested -> AddBusinessDays) killed the dashboard
|
||||
-- widget queries with error 596 ("session is in the kill state", class 21).
|
||||
-- =============================================
|
||||
CREATE FUNCTION [dbo].[date_addcustom]
|
||||
(
|
||||
@@ -9,6 +11,7 @@ CREATE FUNCTION [dbo].[date_addcustom]
|
||||
,@phrase varchar(10)
|
||||
)
|
||||
RETURNS date
|
||||
WITH INLINE = OFF
|
||||
AS
|
||||
BEGIN
|
||||
DECLARE @returndate date, @numpart integer = TRY_PARSE(left(@phrase, patindex('%[^0-9]%', @phrase + '.') - 1) as integer), @defpart varchar(10) = LOWER(RIGHT(@phrase, LEN(@phrase) - patindex('%[^0-9]%', @phrase + '.') + 1));
|
||||
|
||||
Reference in New Issue
Block a user