docs: fix incorrect plpgsql error message
authorBruce Momjian <[email protected]>
Sat, 17 Aug 2024 02:50:54 +0000 (22:50 -0400)
committerBruce Momjian <[email protected]>
Sat, 17 Aug 2024 02:50:54 +0000 (22:50 -0400)
Change "$1" to "username".

Reported-by: [email protected]
Discussion: https://postgr.es/m/172112109590.736590.12219129462878821880@wrigleys.postgresql.org

Backpatch-through: 12

doc/src/sgml/plpgsql.sgml

index 4761b03a3456efb2bbaf96bbd2684f23875d8173..3c54ca71d705739052973479cc3367a02bb2eadd 100644 (file)
@@ -1127,7 +1127,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>