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 B3BE13A5925 for ; Tue, 25 Jan 2005 22:28:01 +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 30791-07 for ; Tue, 25 Jan 2005 22:27:53 +0000 (GMT) Received: from www.postgresql.com (unknown [200.46.204.209]) by svr1.postgresql.org (Postfix) with ESMTP id 1F4683A5905 for ; Tue, 25 Jan 2005 22:27:56 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by www.postgresql.com (Postfix) with SMTP id E42E1738732 for ; Tue, 25 Jan 2005 22:27:52 +0000 (GMT) Received: (qmail 25589 invoked by uid 1112); 25 Jan 2005 22:30:30 -0000 Date: Tue, 25 Jan 2005 17:30:30 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Oliver Jowett Cc: Jean-Pierre Pelletier , pgsql-jdbc@postgresql.org Subject: Re: setObject on PGInterval throws "Unknown Type null" In-Reply-To: <41F6B5CE.3040107@opencloud.com> 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/254 X-Sequence-Number: 12134 On Wed, 26 Jan 2005, Oliver Jowett wrote: > [ways to set null values for non-standard types] I'm kind of leaning to removing the restriction that nulls must be strongly typed. Compared to the current workarounds the idea that a (very) few cases won't work isn't that bad. What I recall "? IS NULL" won't work and "func(?)" could be ambiguous, but that doesn't stop you from specifying a type for these cases. For non-null values we need the strong typing to ensure that we don't send data in a different format than the server expects, but this is not an issue with nulls. Kris Jurka