| From: | Maurício Linhares <mauricio(dot)linhares(at)gmail(dot)com> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Parse message is not generating a ParseOk response |
| Date: | 2012-03-11 13:22:32 |
| Message-ID: | CAMgRr8VWvdix7pNykRecEi_Dj3u_vKJBvNyh=qVgmvw-Bm7auw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Hello everyone,
I'm writing an async driver for PosgreSQL in Scala (
https://github.com/mauricio/postgresql-netty ) and I'm now working on
getting the prepared statements to work. Following the protocol
documentation for extended queries (
http://www.postgresql.org/docs/9.1/static/protocol-flow.html#PROTOCOL-FLOW-EXT-QUERY
) it says I should first send a Parse message and wait for a
ParseComplete message back, but this isn't working for me.
I send the Parse message and nothing is sent back to me nor the server
says anything.
Thinking it could be something wrong with my parse format, I wrote
tests for the format itself, but it seems like everything is correct
-> https://github.com/mauricio/postgresql-netty/blob/master/src/test/scala/com/github/mauricio/postgresql/encoders/ParseMessageEncoderSpec.scala
Am I missing something here?
BTW, looking at the JDBC driver, it doesn't look like it waits for the
ParseOk message. Is it how I should go by doing it?
-
Maurício Linhares
http://techbot.me/ - http://twitter.com/#!/mauriciojr
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2012-03-11 15:21:35 | Re: Parse message is not generating a ParseOk response |
| Previous Message | Sergey Konoplev | 2012-03-11 13:10:54 | Re: permission denied to create extension "ltree" Must be superuser to create this extension. |