patch: fix a couple of server-prepared-statement bugs - Mailing list pgsql-jdbc

From Oliver Jowett
Subject patch: fix a couple of server-prepared-statement bugs
Date
Msg-id 20030816053315.GA14656@opencloud.com
Whole thread Raw
Responses Re: patch: fix a couple of server-prepared-statement bugs
List 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

pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: CVS JDBC driver will try to use server-side-prepare on
Next
From: kevin@mtel.co.uk (kevin)
Date:
Subject: resultset.first() untrappable error