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 3F66A53902 for ; Thu, 21 Apr 2005 16:43:20 -0300 (ADT) 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 78550-07 for ; Thu, 21 Apr 2005 19:43:18 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id A32A85391D for ; Thu, 21 Apr 2005 16:43:14 -0300 (ADT) Received: (qmail 27333 invoked by uid 1112); 21 Apr 2005 19:43:16 -0000 Date: Thu, 21 Apr 2005 14:43:16 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Oliver Siegmar Cc: pgsql-jdbc@postgresql.org Subject: Re: Interval support for Postgres In-Reply-To: <200504212137.23827.o.siegmar@vitrado.de> Message-ID: References: <200504211107.01028.o.siegmar@vitrado.de> <200504212137.23827.o.siegmar@vitrado.de> 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.012 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/115 X-Sequence-Number: 12722 On Thu, 21 Apr 2005, Oliver Siegmar wrote: > On Thursday 21 April 2005 20:32, Kris Jurka wrote: > > On Thu, 21 Apr 2005, Oliver Siegmar wrote: > > > here's a patch that adds functionality to the PGInterval class. I'd be > > > happy to see this in upstream. > > > > You cannot use regex code in this class because it must compile with 1.2 > > and 1.3 JDKs. > > Can it be placed in the JDBC3 package, then? This requires JDK 1.4 anyway, > right? > It could, but I'd be against it. Having a different PGInterval behavior for JDBC2 and JDBC3 builds would be rather odd. While regex may be convenient here it certainly isn't essential. If you want to get this in I'd recommend rewriting to do the parsing manually. Kris Jurka