Access to an element of array NEW in TCL - Mailing list pgsql-general

From Josué Maldonado
Subject Access to an element of array NEW in TCL
Date
Msg-id bj53ta$pae$1@news.hub.org
Whole thread Raw
Responses Re: Access to an element of array NEW in TCL
List 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


pgsql-general by date:

Previous
From: Greg Stark
Date:
Subject: Re: Using oids
Next
From: Bo Lorentsen
Date:
Subject: Re: Using oids