pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedRe: rowtype and ecpg
3+ messages / 2 participants
[nested] [flat]
* rowtype and ecpg
@ 2002-06-20 17:15 Alla <alla@sergey.com>
1970-01-01 00:00 ` Re: rowtype and ecpg Christoph Haller <ch@rodos.fzk.de>
0 siblings, 1 reply; 3+ messages in thread
From: alla@sergey.com @ 2002-06-20 17:15 UTC (permalink / raw)
To: pgsql-sql
I have a function that takes as a parameter ROWTYPE:
create or replace function test_func(test_table)
returns varchar as '
declare
lv_return varchar;
begin
......
return lv_return;
end;
' LANGUAGE 'plpgsql';
How do I call this function from the C program (ecpg)? How my
declaration should look like?
I trued structure and got error: Too many arguments
Thanks for your help
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: rowtype and ecpg
2002-06-20 17:15 rowtype and ecpg Alla <alla@sergey.com>
@ 1970-01-01 00:00 ` Christoph Haller <ch@rodos.fzk.de>
2002-06-24 19:49 ` Re: rowtype and ecpg Alla <alla@sergey.com>
0 siblings, 1 reply; 3+ messages in thread
From: Christoph Haller @ 1970-01-01 00:00 UTC (permalink / raw)
To: alla@sergey.com; +Cc: pgsql-sql
What exactly is your problem?
Calling a plpgsql function from within a C program
or retrieving varchar data within a C program?
Regards, Christoph
>
> I have a function that takes as a parameter ROWTYPE:
>
> create or replace function test_func(test_table)
> returns varchar as '
> declare
> lv_return varchar;
> begin
> ......
> return lv_return;
> end;
> ' LANGUAGE 'plpgsql';
>
> How do I call this function from the C program (ecpg)? How my
> declaration should look like?
>
> I trued structure and got error: Too many arguments
>
> Thanks for your help
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: rowtype and ecpg
2002-06-20 17:15 rowtype and ecpg Alla <alla@sergey.com>
1970-01-01 00:00 ` Re: rowtype and ecpg Christoph Haller <ch@rodos.fzk.de>
@ 2002-06-24 19:49 ` Alla <alla@sergey.com>
0 siblings, 0 replies; 3+ messages in thread
From: alla@sergey.com @ 2002-06-24 19:49 UTC (permalink / raw)
To: pgsql-sql
My problem is a "rowtype" variable.
I don't know how to declare a structure or anything else to pass
information to the function, which input parameter has a type of
"rowtype" (I have no problem retrieving any output - varchar or
refcursor)
Thanks
Alla
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2002-06-24 19:49 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-06-20 17:15 rowtype and ecpg Alla <alla@sergey.com>
1970-01-01 00:00 ` Christoph Haller <ch@rodos.fzk.de>
2002-06-24 19:49 ` Alla <alla@sergey.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox