[Pljava-dev] VarLenTuple example code

From: schabi at logix-tt(dot)com (Markus Schaber)
To:
Subject: [Pljava-dev] VarLenTuple example code
Date: 2006-09-28 13:40:01
Message-ID: 451BD0B1.8000408@logix-tt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

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>

Responses

Browse pljava-dev by date

  From Date Subject
Next Message Thomas Hallgren 2006-09-28 13:49:40 [Pljava-dev] VarLenTuple example code
Previous Message Thomas Hallgren 2006-09-28 13:16:26 [Pljava-dev] Strange classpath problem