Re: POprepare fails - Mailing list pgsql-general

From Laurenz Albe
Subject Re: POprepare fails
Date
Msg-id 1ef446b1b7c8e4e147f65ce0309802a03f8ca5a6.camel@cybertec.at
Whole thread Raw
In response to POprepare fails  (Igor Korot <ikorot01@gmail.com>)
Responses Re: POprepare fails
List pgsql-general
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



pgsql-general by date:

Previous
From: pierre.forstmann@gmail.com
Date:
Subject: Re: LISTAGG à la Oracle in PostgreSQL
Next
From: Igor Korot
Date:
Subject: Re: POprepare fails