agora inbox for pljava-dev@postgresql.org
help / color / mirror / Atom feedSubject: [Pljava-dev] VarLenTuple example code
Date: Thu, 28 Sep 2006 15:40:01 +0200
Message-ID: <451BD0B1.8000408@logix-tt.com> (raw)
Hi, Thomas,
Here's a small example I implemented for variable length data types.
It's not useful for anything but an example.
I included the source, as well as the diff for the examples.ddr file, so
regard it as contribution.
It all seems to work fine, apart from one small problem:
> [local]:pljavatest=# copy foo to '/tmp/foo' binary;
> COPY
> [local]:pljavatest=# copy foo from '/tmp/foo' binary;
> ERROR: Unable to find static method
> org.postgresql.pljava.example.VarLenTuple.receive
> with signature
> (Ljava/lang/String;)Lorg/postgresql/pljava/example/VarLenTuple;
> CONTEXT: COPY foo, line 1, column t
From our discussion, I had the impression that the receive method
will get an VarLenTuple instance (as I created a type mapping)
and not a String instance.
Thanks,
Markus
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS
Fight against software patents in Europe! www.ffii.org
www.nosoftwarepatents.org
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: varlentuple.diff
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20060928/db64ac7a/attachment.ksh;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: VarLenTuple.java
Type: text/x-java
Size: 6542 bytes
Desc: not available
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20060928/db64ac7a/attachment.bin;
view thread (18+ messages) latest in thread
Message-ID: <451BD0B1.8000408@logix-tt.com>
Permalink: ../451BD0B1.8000408@logix-tt.com/
Also on: postgresql.org/message-id/451BD0B1.8000408@logix-tt.com
reply
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: pljava-dev@postgresql.org
Subject: Re: [Pljava-dev] VarLenTuple example code
In-Reply-To: <451BD0B1.8000408@logix-tt.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox