From: Barry Lind <blind@xythos.com>
To: floyds@4peakstech.com
Cc: Pgsql-Sql <pgsql-sql@postgresql.org>
Cc: Pgsql-Jdbc <pgsql-jdbc@postgresql.org>
Cc: Gregory S. Dodson <greg@truckmaster.com>
Cc: Josh Wardle <josh@truckmaster.com>
Subject: Re: contrib/ltree
Date: Tue, 09 Sep 2003 17:27:52 -0700
Message-ID: <3F5E7008.9050904@xythos.com> (raw)
In-Reply-To: <NDBBKEGJICMIMJHJEBCOAEKCGOAA.floyds@4peakstech.com>
References: <NDBBKEGJICMIMJHJEBCOAEKCGOAA.floyds@4peakstech.com>
I would recommend using getString()/setString(). You will need to
marshall the data into the correct format, but you will at least be able
to get and set the values.
--Barry
floyds@4peakstech.com wrote:
> how do i get jdbc to recognize the ltree type that comes with the
> contrib/ltree extension?
>
> This:
>
> Object object = resultSet.getObject(columnNumber);
>
> generates the following exception:
>
> Exception caused by: No class found for ltree
> at
> org.postgresql.jdbc1.AbstractJdbc1Connection.getObject(AbstractJdbc1Connecti
> on.java:693)
> at
> org.postgresql.jdbc2.AbstractJdbc2Connection.getObject(AbstractJdbc2Connecti
> on.java:117)
> at
> org.postgresql.jdbc2.AbstractJdbc2ResultSet.getObject(AbstractJdbc2ResultSet
> .java:147)
> ...
>
>
> Regards,
>
> Floyd Shackelford
> 4 Peaks Technology Group, Inc.
> VOICE: 334.735.9428
> FAX: 702.995.6462
> EMAIL: FloydS@4PeaksTech.com
> ICQ #: 161371538
> PGP Key ID: 0x2E84F2F2
> PGP Fone available on request at private.fwshackelford.com
>
> Shackelford Motto: ACTA NON VERBA - Actions, not words
>
> Alabama State Motto: AUDEMUS JURA NOSTRA DEFENDERE - We Dare Defend Our
> Rights
>
> The Philosophy of Liberty: http://www.isil.org/resources/introduction.swf
>
> "We have allowed our constitutional republic to deteriorate into a virtually
> unchecked direct democracy. Today's political process is nothing more than a
> street fight between various groups seeking to vote themselves other
> people's money. Individual voters tend to support the candidate that
> promises them the most federal loot in whatever form, rather than the
> candidate who will uphold the rule of law." --Rep. Ron Paul
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: blind@xythos.com, floyds@4peakstech.com, pgsql-jdbc@postgresql.org, greg@truckmaster.com, josh@truckmaster.com
Subject: Re: contrib/ltree
In-Reply-To: <3F5E7008.9050904@xythos.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox