From 07164939523882140c24f3a249b93e8efbb65dd9 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Sun, 10 Sep 2023 14:24:08 -0500 Subject: [PATCH] Fix column name in error message --- db/include/macros.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/include/macros.m4 b/db/include/macros.m4 index 10f1c36..4a86cb8 100644 --- a/db/include/macros.m4 +++ b/db/include/macros.m4 @@ -82,7 +82,7 @@ define({cannot_change}, {dnl -- $2 has changed RAISE EXCEPTION data_exception USING MESSAGE = 'Error updating $1' - , DETAIL = '($1) = (' + , DETAIL = '($2) = (' || textualize(OLD.$2) || '): $1.$2 cannot be changed' , HINT = 'It may be necessary to delete the old row and' -- 2.34.1