Fix for changing parameter types with server prepared statements (was Re: setObject on PGInterval throws "Unknown Type null") - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Fix for changing parameter types with server prepared statements (was Re: setObject on PGInterval throws "Unknown Type null")
Date
Msg-id 41F97168.9050006@opencloud.com
Whole thread Raw
In response to Re: setObject on PGInterval throws "Unknown Type null"  (Oliver Jowett <oliver@opencloud.com>)
Responses Re: Fix for changing parameter types with server prepared statements  (Kris Jurka <books@ejurka.com>)
List pgsql-jdbc
Oliver Jowett wrote:

> We currently break in the case where parameter types change between
> executions, but that's more easily fixable since we have all the
> necessary information already available.

I just fixed this in CVS, it wasn't as painful to do as I originally
thought. It should also work for the NULL-as-oid-0 case if we go back to
doing that -- any change in parameter type oids causes a reprepare.

-O

pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: Enforcing CONCUR_*
Next
From: Antony Paul
Date:
Subject: New JDBC site