Re: Extended Query using the Frontend/Backend Protocol 3.0 - Mailing list pgsql-general

From John DeSoi
Subject Re: Extended Query using the Frontend/Backend Protocol 3.0
Date
Msg-id 57FE8BF9-5E03-4F5A-9BBA-A06118CC2E3B@pgedit.com
Whole thread Raw
In response to Extended Query using the Frontend/Backend Protocol 3.0  (Raimon Fernandez <coder@montx.com>)
Responses Re: Extended Query using the Frontend/Backend Protocol 3.0  (Raimon Fernandez <coder@montx.com>)
List 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 by date:

Previous
From: Antonio Goméz Soto
Date:
Subject: Re: alter table performance
Next
From: Scott Marlowe
Date:
Subject: Re: Justifying a PG over MySQL approach to a project