Re: Access to an element of array NEW in TCL

Поиск
Список
Период
Сортировка
От Josué Maldonado
Тема Re: Access to an element of array NEW in TCL
Дата
Msg-id bj58a4$1dq7$1@news.hub.org
обсуждение исходный текст
Ответ на Re: Access to an element of array NEW in TCL  (darren@crystalballinc.com)
Список pgsql-general
Hi Darren,

You are right, it was something missing in my code the \' to escape the
quote.

Thanks.

darren@crystalballinc.com wrote:
> The way you have it should work i.e. if the NEW array has a field called
> duser in it you will be able to access it using $NEW(duser)
>
> Put in an elog notice and do [array names NEW] in it.
> Run the function and see what variables are available to you then you
> should be able to call them just like shown below
>
> -bash-2.05b$ tclsh
> % set NEW(duser) darren
> darren
> % set NEW(cuser) carl
> carl
> % foreach id [array names NEW] { puts $NEW($id) }
> carl
> darren
> % puts $NEW(duser)
> darren
> % puts $NEW(cuser)
> carl


В списке pgsql-general по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [pgsql-advocacy] Web page for selecting presentations
Следующее
От: Terry Yapt
Дата:
Сообщение: Re: Oracle decode Function in Postgres