Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 7CE8D632B12 for ; Thu, 5 Mar 2009 05:56:36 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 55174-06 for ; Thu, 5 Mar 2009 05:56:30 -0400 (AST) X-Greylist: delayed 00:58:33.94622 by SQLgrey-1.7.6 Received: from eos.openintegra.com (eos.openintegra.com [193.68.3.118]) by mail.postgresql.org (Postfix) with ESMTP id 87372633753 for ; Thu, 5 Mar 2009 05:56:29 -0400 (AST) Received: from [10.142.89.107] (78-83-48-61.spectrumnet.bg [78.83.48.61]) (authenticated bits=0) by eos.openintegra.com (8.13.1/8.13.1) with ESMTP id n258vkuO009889 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 5 Mar 2009 10:57:47 +0200 Subject: Documentation for working with PG interval types via JDBC From: =?UTF-8?Q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=8A=D1=80_?= =?UTF-8?Q?=D0=A8=D0=BE=D0=BF=D0=BE=D0=B2?= To: pgsql-jdbc@postgresql.org Content-Type: text/plain Date: Thu, 05 Mar 2009 10:57:45 +0200 Message-Id: <1236243465.1149.9.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 (2.24.5-1.fc10) Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200903/18 X-Sequence-Number: 19348 Hi everyone, PG has an interval data type. Via google searches and the mail archive[1] I learned that PG jdbc driver has org.postgresql.util.PGInterval type which however is not listed in the public API[2]. Is there some documentation on the way it is supposed to be used, how it is mapped to Java types (it is a PG extension after all), or is my best shot the source code? Kind regards: al_shopov [1] http://groups.google.com/group/pgsql.interfaces.jdbc/browse_thread/thread/c3aab813c0c78c11/3a17a0ed5bff5b33?lnk=gst&q=interval#3a17a0ed5bff5b33 [2] http://jdbc.postgresql.org/documentation/publicapi/index.html