On Sat, Aug 25, 2001 at 08:04:37PM -0400, Gowey, Geoffrey wrote:
> What would the correct syntax be in order to do what I want to?  I need to
> enter in a variable length email address as the parameter to my planned
> function.  The param will then become part of a select statement to get
> records (which I currently plan to accomplish by using strcat to join the
> beginning of the select plus the param plus the closing '.  Also where is
> some good documentation on V1 command usage and examples?
> 
> Geoff
> 
> -----Original Message-----
> From: Tom Lane [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, August 25, 2001 7:29 PM
> To: Gowey, Geoffrey
> Cc: '[EMAIL PROTECTED]'
> Subject: Re: [GENERAL] version 1 C-Language Functions 
> 
> 
> "Gowey, Geoffrey" <[EMAIL PROTECTED]> writes:
> > Unfortunately, this function fails.  What am i doing wrong?
> 
> "text *" is not "char *".  The equivalent V0 code would fail just the
> same way.
> 
>                       regards, tom lane
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
> 
> http://www.postgresql.org/search.mpl
> 
> end of the original message

Read the "Programmer's Guide", part II "Server Programming", section 13.4.3
"Version-1 Calling Conventions for C-Language Functions". Look at the example
functions copytext and concat_text.

        Francesco Casadei

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/users-lounge/docs/faq.html

Reply via email to