X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id CF3EE3A589B for ; Tue, 25 Jan 2005 23:08:15 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 34048-09 for ; Tue, 25 Jan 2005 23:08:08 +0000 (GMT) Received: from www.postgresql.com (unknown [200.46.204.209]) by svr1.postgresql.org (Postfix) with ESMTP id D72283A5508 for ; Tue, 25 Jan 2005 23:08:10 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by www.postgresql.com (Postfix) with SMTP id 808817386A3 for ; Tue, 25 Jan 2005 23:08:06 +0000 (GMT) Received: (qmail 9084 invoked by uid 1112); 25 Jan 2005 23:10:51 -0000 Date: Tue, 25 Jan 2005 18:10:51 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Jean-Pierre Pelletier Cc: Oliver Jowett , pgsql-jdbc@postgresql.org Subject: Re: setObject on PGInterval throws "Unknown Type null" In-Reply-To: Message-ID: References: <41F557C8.6030805@opencloud.com> <41F6B5CE.3040107@opencloud.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.009 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/257 X-Sequence-Number: 12137 On Tue, 25 Jan 2005, Jean-Pierre Pelletier wrote: > "func(?)" will be rejected by the server at runtime if there is ambiguity, Not always, sometimes it will resolve the ambiguity itself in a less than expected manner: http://archives.postgresql.org/pgsql-jdbc/2004-10/msg00114.php > In the case of "? IS NULL", I don't understand how the type of the null > would affect the evaluation of this boolean expression. > http://archives.postgresql.org/pgsql-jdbc/2004-10/msg00118.php Oliver also mentions problems with anyelement/anyarray functions: http://archives.postgresql.org/pgsql-jdbc/2004-10/msg00116.php I am OK with all of these failings because they are easily solvable using casts or strong typing, while the Types.OTHER case is not easily solvable. Kris Jurka