Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id CEA509F99CA for ; Mon, 24 Sep 2007 09:38:14 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 42410-04 for ; Mon, 24 Sep 2007 09:38:11 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mail63.csoft.net (leary.csoft.net [205.205.214.5]) by postgresql.org (Postfix) with SMTP id B131D9F99D9 for ; Mon, 24 Sep 2007 09:38:11 -0300 (ADT) Received: (qmail 694 invoked by uid 1112); 24 Sep 2007 12:38:09 -0000 Date: Mon, 24 Sep 2007 08:38:09 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Eric Faulhaber cc: pgsql-jdbc@postgresql.org Subject: Re: Batch INSERT failing with error 22P02 In-Reply-To: Message-ID: References: <46EEE4EF.80608@goldencode.com> <46EFF277.1090309@goldencode.com> <46F29BBC.20400@goldencode.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/110 X-Sequence-Number: 17532 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