session guard: keep each message one literal, so the SQL says what the test reads
The column message was split across two concatenated pieces of the trigger body. PostgreSQL joined them at run time, so the raised text was right, but the generated SQL never contained the sentence whole and test_the_session_guard_is_one_statement_with_no_quote_escaping failed. This suite had never been run before (CI does not start on the account). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
433e083dae
commit
32aa86682e
@@ -1087,8 +1087,7 @@ BEGIN
|
||||
|| '$dredd_k$revoked_at$dredd_k$]::text[]) IS DISTINCT FROM (to_jsonb(OLD) - '
|
||||
|| 'ARRAY[$dredd_k$last_seen_at$dredd_k$, $dredd_k$expires_at$dredd_k$, '
|
||||
|| '$dredd_k$revoked_at$dredd_k$]::text[]) THEN RAISE EXCEPTION USING '
|
||||
|| 'MESSAGE = $dredd_msg$session update guard: a module writes only last_seen_at, '
|
||||
|| 'expires_at and revoked_at$dredd_msg$, '
|
||||
|| 'MESSAGE = $dredd_msg$session update guard: a module writes only last_seen_at, expires_at and revoked_at$dredd_msg$, '
|
||||
|| 'HINT = $dredd_hint$Accounts and credentials are the hub''s to write.$dredd_hint$; '
|
||||
|| 'END IF; '
|
||||
|| 'IF OLD.revoked_at IS NOT NULL AND NEW.revoked_at IS DISTINCT FROM OLD.revoked_at THEN '
|
||||
|
||||
Reference in New Issue
Block a user