Re: Question on libpq parameters

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Question on libpq parameters
Дата
Msg-id 17101.1228069560@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Question on libpq parameters  (Owen Hartnett <owen@clipboardinc.com>)
Ответы Re: Question on libpq parameters  (Owen Hartnett <owen@clipboardinc.com>)
Список pgsql-general
Owen Hartnett <owen@clipboardinc.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

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Query too slow with "not in" condition
Следующее
От: "Andrus"
Дата:
Сообщение: Re: db backup script in gentoo