Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 566E01337B8C; Wed, 22 Dec 2010 10:11:23 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 19848-06; Wed, 22 Dec 2010 14:11:16 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from progressive.micfo.com (progressive.micfo.com [67.23.244.116]) by mail.postgresql.org (Postfix) with ESMTP id E80971337B8A; Wed, 22 Dec 2010 10:11:15 -0400 (AST) Received: from localhost.localdomain ([127.0.0.1]:53835 helo=softperience.eu) by progressive.micfo.com with esmtpa (Exim 4.69) (envelope-from ) id 1PVPPI-0007SI-Sb; Wed, 22 Dec 2010 09:11:08 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Wed, 22 Dec 2010 09:11:08 -0500 From: =?UTF-8?Q?Rados=C5=82aw_Smogura?= To: Richard Broersma Cc: pgsql-jdbc , pgsql-odbc Subject: Re: Comparing Enumerated Types between JDBC and ODBC drivers In-Reply-To: References: Message-ID: X-Sender: rsmogura@softperience.eu User-Agent: Roundcube Webmail/0.4.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - progressive.micfo.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - softperience.eu X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201012/60 X-Sequence-Number: 21298 Hi, First, You need to distinguish between SQL COMPLEX / COMPOSITE types (sometimes called as UDT) and PSQL internal types. Interval is internal type, such like integer, varchar, etc and it's mapped in JDBC to Java object from PSQL JDBC api. There is no public (JDK, OO, SUN) for Interval, but you have right in your situation you can get this type by calling getString() and you will get it's compatible representation, as well setString() should store those, too. You can find internal types which doesn't have mapping to any Java class, too. If you want SQL COMPOSITE types, only one way to access them (as I think), is similarly, by get/set String. JDBC driver doesn't support custom mapping of UDT to Java classes. It's looks ODBC driver has better support for PSQL. Kind regards, Radosław Smogura On Tue, 21 Dec 2010 10:14:18 -0800, Richard Broersma wrote: > While testing the waters of porting a MS-Access application to > OObase. > I noticed that certain types such as Enumerated types - as well as > other types (i.e. interval), where not representable in OObase using > the JDBC driver. However, when I used the ODBC driver for OOBase > all > such types were once again representable (they were represented as > text). > > Is this an issues with OOBase or an issue with the representation of > complex types using the JDBC driver? > > -- > Regards, > Richard Broersma Jr.