Re: PL/Tcl - examples not working

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: siqsuruq(at)gmail(dot)com
Cc: pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: PL/Tcl - examples not working
Date: 2021-04-09 11:33:51
Message-ID: 2026986.1617968031@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

PG Doc comments form <noreply(at)postgresql(dot)org> writes:
> Example on this page is not working
> https://www.postgresql.org/docs/13/pltcl-trigger.html
> Gives ERROR: bind message supplies 1 parameters, but prepared statement ""
> requires 0

Works fine for me, when copied-and-pasted into psql.

The error message you quote looks a bit like whatever client-side
code you're using has decided that the $1 references in the function
body are query parameters. They are not. The function body is a
dollar-quoted string literal and should be sent unmodified.

regards, tom lane

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Maksym Zinchenko 2021-04-09 12:30:39 Re: PL/Tcl - examples not working
Previous Message PG Doc comments form 2021-04-08 23:25:32 PL/Tcl - examples not working