Re: Question on libpq parameters

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Owen Hartnett <owen(at)clipboardinc(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Question on libpq parameters
Date: 2008-11-30 04:45:08
Message-ID: 9558.1228020308@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Owen Hartnett <owen(at)clipboardinc(dot)com> writes:
> The following libpq code chokes on me with invalid input to an
> integer parameter (state == PGRES_FATAL_ERR aPtr == "Error: Invalid
> Input syntax for integer """ . It fails on the call to
> PQexecPrepared. I suspect I'm not doing the parameters right. Can
> anyone spot anything wrong?

You can't just point to integers as if they were strings. Didn't
your compiler complain about that?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Owen Hartnett 2008-11-30 04:53:59 Re: Question on libpq parameters
Previous Message Owen Hartnett 2008-11-30 04:40:44 Question on libpq parameters