Re: plPerl subroutine

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "FERREIRA William (COFRAMI)" <william(dot)ferreira(at)airbus(dot)com>
Cc: "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: plPerl subroutine
Date: 2005-03-16 15:33:57
Message-ID: 6188.1110987237@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"FERREIRA William (COFRAMI)" <william(dot)ferreira(at)airbus(dot)com> writes:
> but the CREATE_XML_FILE doesn't display 'totototototototototot' but
> HASH(0xf03fa4)....

I think what you get back from spi_exec_query is always going to be
a hash, even if it contains only one field. So you need to pick out
the field value.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Harald Fuchs 2005-03-16 15:37:47 Re: plPerl subroutine
Previous Message Richard Huxton 2005-03-16 15:31:59 Re: 2 questions about types