Re: Extended Query using the Frontend/Backend Protocol 3.0

Поиск
Список
Период
Сортировка
От John DeSoi
Тема Re: Extended Query using the Frontend/Backend Protocol 3.0
Дата
Msg-id 57FE8BF9-5E03-4F5A-9BBA-A06118CC2E3B@pgedit.com
обсуждение исходный текст
Ответ на Extended Query using the Frontend/Backend Protocol 3.0  (Raimon Fernandez <coder@montx.com>)
Ответы Re: Extended Query using the Frontend/Backend Protocol 3.0  (Raimon Fernandez <coder@montx.com>)
Список pgsql-general
On Dec 17, 2009, at 11:13 AM, Raimon Fernandez wrote:

> I'm trying to integrate the extended query protocol with my libraries.
>
> I'm sending a simple SELECT to validate the method, but I'm getting an Invalid Message Format.

I did not add up your byte count, but maybe this will help:


(write-byte p stream)
(write-int32 (+ int32-length (length name) 1 (length sql-string) 1 int16-length (* int32-length param-count)) stream)
(write-cstring name stream)
(write-cstring sql-string stream)
(write-int16 param-count stream)



John DeSoi, Ph.D.





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

Предыдущее
От: Antonio Goméz Soto
Дата:
Сообщение: Re: alter table performance
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: Justifying a PG over MySQL approach to a project