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

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: patch: fix a couple of server-prepared-statement bugs
Date: 2003-08-16 05:33:16
Message-ID: 20030816053315.GA14656@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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 Content-Type Size
pgsql-sps-bytea-and-toggle.txt text/plain 2.9 KB

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Nick Fankhauser 2003-08-16 13:19:36 Re: resultset.first() untrappable error
Previous Message Oliver Jowett 2003-08-16 00:34:39 Re: CVS JDBC driver will try to use server-side-prepare on