Re: Version 1 Calling convention
От | Jasbinder Bali |
---|---|
Тема | Re: Version 1 Calling convention |
Дата | |
Msg-id | a47902760608292201t5d246549i84db6c03b0b305dd@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Version 1 Calling convention ("Jasbinder Bali" <jsbali@gmail.com>) |
Ответы |
Re: Version 1 Calling convention
|
Список | pgsql-general |
Do i need to download spi.h from somewhere or what? I can't see it anywhere
On 8/30/06, Jasbinder Bali <jsbali@gmail.com > wrote:
OK. I've removed the ECPG code and error has gone away.
Thanks
jasOn 8/30/06, Alvaro Herrera < alvherre@commandprompt.com > wrote:Jasbinder Bali wrote:
> I have a .pgc file and i have the following code snippet in it:
>
> PG_FUNCTION_INFO_V1 (test);
>
> Datum
> test (PG_FUNCTION_ARGS)
> {
> EXEC SQL BEGIN DECLARE SECTION;
You can't use ecpg in server-side functions. You need to use the SPI
interface.
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
В списке pgsql-general по дате отправления: