Re: PQexecPrepared() question

Laurenz Albe <laurenz.albe@cybertec.at>

From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Igor Korot <ikorot01@gmail.com>, pgsql-general@lists.postgresql.org
Date: 2025-12-25T09:32:08Z
Lists: pgsql-general
On Wed, 2025-12-24 at 17:28 -0800, Igor Korot wrote:
> My current code is below:
> 
>    [...]
>    res8 = PQexecPrepared( m_db, "set_table_prop", 3, params, paramLength, paramFormat, 0 );
>    [...]
> 
> This code crashes on the PQexecParam.

Your code does not contain PQexecParam.
It is also incomplete and doesn't contain where the statement is prepared,
nor does it contain the definition of the variables you are using.

I recommend using a debugger.

Yours,
Laurenz Albe