Re: difficulty extracting variable-sized field on triggered row - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: difficulty extracting variable-sized field on triggered row
Date
Msg-id 20071204155123.GC4727@alvh.no-ip.org
Whole thread Raw
In response to Re: difficulty extracting variable-sized field on triggered row  ("Glen W. Mabey" <Glen.Mabey@swri.org>)
List pgsql-general
Glen W. Mabey escribió:

>     TriggerData *trigdata;
>     Datum relative_filename_datum;
>     text *relative_filename_t;
>     int file_name_colnumber, ret;
>     bool *isnull;

This is wrong.  Try

    bool isnull;

and later:

        SPI_getbinval( trigdata->tg_trigtuple, trigdata->tg_relation->rd_att, file_name_colnumber, &isnull );

--
Alvaro Herrera                  http://www.amazon.com/gp/registry/5ZYLFMCVHXC
"No hay ausente sin culpa ni presente sin disculpa" (Prov. francés)

pgsql-general by date:

Previous
From: "Glen W. Mabey"
Date:
Subject: Re: difficulty extracting variable-sized field on triggered row
Next
From: Tom Lane
Date:
Subject: Re: difficulty extracting variable-sized field on triggered row