logo       

patch: fix a couple of server-prepared-statement bugs: msg#00177

db.postgresql.jdbc

Subject: patch: fix a couple of server-prepared-statement bugs

This patch fixes two bugs related to setUseServerPrepare() (and adds
unit tests for them):

1. Turning server-prepare from on to off before a query is executed results
in an invalid "DEALLOCATE null" query being sent to the backend.

2. setBytes() uses a type of 'text' not 'bytea' when generating a PREPARE,
resulting in typecasting problems.

-O

Attachment: pgsql-sps-bytea-and-toggle.txt
Description: Text document


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise