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 18:26:00
Message-ID: 17101.1228069560@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:
> Yes, it did. I'm confused. My first parameter is a string, but the
> following two are integers. I thought the paramType parameter
> indicated the type. Do the integers need to be sprintf'd to strings?

Yes.

Alternatively, you could pass the integers as binary, but that's not
notation-free either (you need htonl or some such).

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrus 2008-11-30 20:18:58 Re: db backup script in gentoo
Previous Message Tom Lane 2008-11-30 17:58:10 Re: Query too slow with "not in" condition