Re: POprepare fails

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Igor Korot <ikorot01(at)gmail(dot)com>, "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: POprepare fails
Date: 2026-03-12 20:04:24
Message-ID: 1ef446b1b7c8e4e147f65ce0309802a03f8ca5a6.camel@cybertec.at
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Igor Korot 2026-03-12 20:16:07 Re: POprepare fails
Previous Message Igor Korot 2026-03-12 19:53:04 POprepare fails