| From: | John DeSoi <desoi(at)pgedit(dot)com> |
|---|---|
| To: | Raimon Fernandez <coder(at)montx(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Extended Query using the Frontend/Backend Protocol 3.0 |
| Date: | 2009-12-18 01:26:21 |
| Message-ID: | 57FE8BF9-5E03-4F5A-9BBA-A06118CC2E3B@pgedit.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general pgsql-interfaces |
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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Scott Marlowe | 2009-12-18 02:06:35 | Re: Justifying a PG over MySQL approach to a project |
| Previous Message | Antonio Goméz Soto | 2009-12-17 23:49:08 | Re: alter table performance |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Raimon Fernandez | 2009-12-18 09:16:27 | Re: Extended Query using the Frontend/Backend Protocol 3.0 |
| Previous Message | Raimon Fernandez | 2009-12-17 16:13:20 | Extended Query using the Frontend/Backend Protocol 3.0 |