pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Eric Faulhaber <ecf@goldencode.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Batch INSERT failing with error 22P02
Date: Mon, 24 Sep 2007 08:38:09 -0400 (EDT)
Message-ID: <Pine.BSO.4.64.0709240835350.10797@leary.csoft.net> (raw)
In-Reply-To: <Pine.BSO.4.64.0709210227150.1423@leary.csoft.net>
References: <46EEE4EF.80608@goldencode.com>
	<Pine.BSO.4.64.0709171802240.11213@leary.csoft.net>
	<46EFF277.1090309@goldencode.com>
	<Pine.BSO.4.64.0709181916350.449@leary.csoft.net>
	<46F29BBC.20400@goldencode.com>
	<Pine.BSO.4.64.0709201251280.22675@leary.csoft.net>
	<Pine.BSO.4.64.0709210227150.1423@leary.csoft.net>



On Fri, 21 Sep 2007, Kris Jurka wrote:

> So the fix is probably to check that we aren't setting type information from 
> stale results, but this is a pretty complicated area, so I'd like to study it 
> a little more.
>

OK, I've committed a fix for 8.1, 8.2, and 8.3-dev to the CVS repository. 
It simply checks that the describe results match the currently parsed 
query before applying them.  There is still an optimization to be made 
here, in that we don't need to describe at all if the Query has all the 
needed type informtion already, but I'll leave that for later.

Kris Jurka



view thread (16+ messages)  latest in thread

Message-ID: <Pine.BSO.4.64.0709240835350.10797@leary.csoft.net>
Permalink:  ../Pine.BSO.4.64.0709240835350.10797@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.64.0709240835350.10797@leary.csoft.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: books@ejurka.com, ecf@goldencode.com
  Subject: Re: Batch INSERT failing with error 22P02
  In-Reply-To: <Pine.BSO.4.64.0709240835350.10797@leary.csoft.net>
  References: <46EEE4EF.80608@goldencode.com> <Pine.BSO.4.64.0709171802240.11213@leary.csoft.net> <46EFF277.1090309@goldencode.com> <Pine.BSO.4.64.0709181916350.449@leary.csoft.net> <46F29BBC.20400@goldencode.com> <Pine.BSO.4.64.0709201251280.22675@leary.csoft.net> <Pine.BSO.4.64.0709210227150.1423@leary.csoft.net> <Pine.BSO.4.64.0709240835350.10797@leary.csoft.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox