From: | thomas at tada(dot)se (Thomas Hallgren) |
---|---|
To: | |
Subject: | [Pljava-dev] Re: Meta data in pljava |
Date: | 2005-11-28 13:47:23 |
Message-ID: | 438B0A6B.9030806@tada.se |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | PostgreSQL : PostgreSQL 메일 링리스트 : 2005-11-28 이후 토토 사이트 추천Dev 13:47 |
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.
>
From | Date | Subject | |
---|---|---|---|
Next Message | brice rouanet | 2005-11-28 14:14:50 | [Pljava-dev] Re: Meta data in pljava |
Previous Message | Thomas Hallgren | 2005-11-25 08:10:07 | [Pljava-dev] Re: ERROR: java.lang.ClassNotFoundException: testPLjava |