postgres.git / summary / log / commit / refs
commit a95f13cbfb1f11955c11972ee41cd5c065246d4b
Author: Bruce Momjian <bruce@momjian.us>
Date: Sat Aug 17 02:50:54 2024 +0000
First released in: 18.0, 12.21, 13.17, 14.14, 15.9, 16.5, 17.0
docs: fix incorrect plpgsql error message
Change "$1" to "username".
Reported-by: philipp.salvisberg@gmail.com
Discussion: https://postgr.es/m/172112109590.736590.12219129462878821880@wrigleys.postgresql.org
Backpatch-through: 12
doc/src/sgml/plpgsql.sgml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/src/sgml/plpgsql.sgml b/doc/src/sgml/plpgsql.sgml
index 747b8dc3677..8f4db1b114f 100644
--- a/doc/src/sgml/plpgsql.sgml
+++ b/doc/src/sgml/plpgsql.sgml
@@ -1295,7 +1295,7 @@ $$ LANGUAGE plpgsql;
On failure, this function might produce an error message such as
<programlisting>
ERROR: query returned no rows
-DETAIL: parameters: $1 = 'nosuchuser'
+DETAIL: parameters: username = 'nosuchuser'
CONTEXT: PL/pgSQL function get_userid(text) line 6 at SQL statement
</programlisting>
</para>
[parent: 35af4bd9519b]