Access to an element of array NEW in TCL

From: Josué Maldonado <josue(at)lamundial(dot)hn>
To: pgsql-general(at)postgresql(dot)org
Subject: Access to an element of array NEW in TCL
Date: 2003-09-03 16:12:28
Message-ID: bj53ta$pae$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi list,

Is there a way to access an especific element of the array NEW in an TCL
trigger, I have a loop that goes for each field (thanks Ian & Darren)
like this:

foreach id [array names NEW] {

then I can refer to an element with this (inside the loop):
$NEW($id)

I do need to make a reference to an especific column name (duser) in
that array to get its value, I already tried $NEW(duser),
$NEW(\'duser\') but didn't work. I'll appreciate any help from you

Thanks

Josue Maldonado

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adam Kavan 2003-09-03 16:22:51 Re: pg_autovacuum
Previous Message Doug McNaught 2003-09-03 16:09:00 Re: Using oids