public inbox for [email protected]
help / color / mirror / Atom feedFrom: Laurenz Albe <[email protected]>
To: Igor Korot <[email protected]>
To: pgsql-generallists.postgresql.org <[email protected]>
Subject: Re: POprepare fails
Date: Thu, 12 Mar 2026 21:04:24 +0100
Message-ID: <[email protected]> (raw)
In-Reply-To: <CA+FnnTyFmj-dTMDO108_WowHMS479-OFBT71oNC=NY98Vg01Nw@mail.gmail.com>
References: <CA+FnnTyFmj-dTMDO108_WowHMS479-OFBT71oNC=NY98Vg01Nw@mail.gmail.com>
On Thu, 2026-03-12 at 20:16 -0500, Igor Korot wrote:
> ERROR: syntax error at or near \"AND\"\n
> LINE 1: ...lnamespace AND idx.indisprimary AND n.nspname = ? AND t.reln...
>
> What is going on?
You used the question mark as a parameter placeholder, but you are using
the C API, not JDBC. The placeholders are $1, $2 and so on.
Yours,
Laurenz Albe
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: POprepare fails
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox