From: schabi at logix-tt.com (Markus Schaber) Date: Thu, 28 Sep 2006 15:40:01 +0200 Subject: [Pljava-dev] VarLenTuple example code Message-ID: <451BD0B1.8000408@logix-tt.com> 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: VarLenTuple.java Type: text/x-java Size: 6542 bytes Desc: not available URL: