agora inbox for pljava-dev@postgresql.org
help / color / mirror / Atom feedSubject: [Pljava-dev] Re: Meta data in pljava
Date: Mon, 28 Nov 2005 14:47:23 +0100
Message-ID: <438B0A6B.9030806@tada.se> (raw)
In-Reply-To: <438ADF29.70407@insa-toulouse.fr>
References: <438ADF29.70407@insa-toulouse.fr>
Brice,
The current metadata implementation does not implement table and schema
name correctly. Try using the methods TriggerData.getSchemaName() and
TriggerData.getTableName() instead.
Please post further questions to the pljava-dev at gborg.postgresql.org
mailing-list.
Regards,
Thomas Hallgren
brice rouanet wrote:
> Hi,
>
> i install plajav 1.2 and psql 8.1 to try metadata, and i get not
> result :(
>
> Here my java code :
>
> public class Test1 {
> public static void createFile(TriggerData td) {
> try {
> ResultSet _new = td.getNew();
> ResultSetMetaData rsmd=_new.getMetaData();
> System.out.println("Schema ="+rsmd.getSchemaName(1));
> System.out.println("Table = "+rsmd.getTableName(1));
> String[] args = td.getArguments();
> System.out.println("trigger new : "+_new.getString(args[0]));
> }
> catch (Exception e) {
> e.printStackTrace();
> }
> }
>
> }
>
> and here my psql output :
>
> Schema =
> Table =
> trigger new : Test
>
> Trigger is fire on insert and i use javaU language
>
> Thanks,
> Brice.
>
view thread (3+ messages) latest in thread
Message-ID: <438B0A6B.9030806@tada.se>
Permalink: ../438B0A6B.9030806@tada.se/
Also on: postgresql.org/message-id/438B0A6B.9030806@tada.se
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] Re: Meta data in pljava
In-Reply-To: <438B0A6B.9030806@tada.se>
* 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