Re: Supporting $n parameters in new syntax - Mailing list pgsql-hackers

From Paul A Jungwirth
Subject Re: Supporting $n parameters in new syntax
Date
Msg-id CA+renyVBgdJfCtH3V2gXHqMxt_hZYHCE8GFGGD0N0GFKejqabQ@mail.gmail.com
Whole thread Raw
In response to Supporting $n parameters in new syntax  (Paul A Jungwirth <pj@illuminatedcomputing.com>)
List pgsql-hackers
On Tue, May 18, 2021 at 3:00 PM Paul A Jungwirth
<pj@illuminatedcomputing.com> wrote:
>
> I suspect I'm missing something in the
> analyze/rewriting phase, because I get this error:
>
> ERROR:  no value found for parameter 1
> . . .
>
> I was hoping that transformExpr would do everything I need re
> identifying parameters, but maybe there is something else in a later
> phase?

Never mind, I think I figured it out. The problem was that I was
calling ExecEvalExpr with CreateStandaloneExprContext(), and I should
have been using the context from the query.

Thanks!
Paul



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgbench test failing on 14beta1 on Debian/i386
Next
From: Michael Paquier
Date:
Subject: Re: pg_dumpall misses --no-toast-compression