pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Haller <ch@rodos.fzk.de>
To: alla@sergey.com
Cc: pgsql-sql@postgresql.org
Subject: Re: rowtype and ecpg
Date: Mon, 24 Jun 2002 10:51:31 METDST
Message-ID: <200206240851.KAA28147@rodos> (raw)
In-Reply-To: <9275d56e.0206200915.988c67d@posting.google.com>

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






view thread (3+ messages)  latest in thread

Message-ID: <200206240851.KAA28147@rodos>
Permalink:  ../200206240851.KAA28147@rodos/
Also on:    postgresql.org/message-id/200206240851.KAA28147@rodos

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: ch@rodos.fzk.de, alla@sergey.com
  Subject: Re: rowtype and ecpg
  In-Reply-To: <200206240851.KAA28147@rodos>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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