pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Frank Cazabon <frank.cazabon@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Calling function from VFP changes character field to Memo
Date: Tue, 15 Nov 2022 10:48:32 -0800
Message-ID: <e1c01985-7080-d404-b269-8ce8507e6c6e@aklaver.com> (raw)
In-Reply-To: <95255a88-2b7b-9072-0cb0-1045dfc4310d@gmail.com>
References: <fe531f0e-ff0f-9227-c879-b875dc1201d8@gmail.com>
	<144d91c5-e0e6-4669-6c88-700ddaeee52b@aklaver.com>
	<95255a88-2b7b-9072-0cb0-1045dfc4310d@gmail.com>

On 11/15/22 10:43 AM, Frank Cazabon wrote:

Please reply to list als.
Ccing list

>>> SELECT * FROM public.testFunction();
>>
>> SELECT firstname from FROM public.testFunction();
> This has the same result.

How about?:

SELECT firstname::varchar(30) from FROM public.testFunction();

>>
>>>
>>> Then FirstName returns as a Memo field (similar to a Text field).
>>>
>>> Any idea what I need to do to get it to return the character(30) type?
>>>
>>
>>


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (11+ messages)  latest in thread

Message-ID: <e1c01985-7080-d404-b269-8ce8507e6c6e@aklaver.com>
Permalink:  ../e1c01985-7080-d404-b269-8ce8507e6c6e@aklaver.com/
Also on:    postgresql.org/message-id/e1c01985-7080-d404-b269-8ce8507e6c6e@aklaver.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, frank.cazabon@gmail.com
  Subject: Re: Calling function from VFP changes character field to Memo
  In-Reply-To: <e1c01985-7080-d404-b269-8ce8507e6c6e@aklaver.com>
  References: <fe531f0e-ff0f-9227-c879-b875dc1201d8@gmail.com> <144d91c5-e0e6-4669-6c88-700ddaeee52b@aklaver.com> <95255a88-2b7b-9072-0cb0-1045dfc4310d@gmail.com> <e1c01985-7080-d404-b269-8ce8507e6c6e@aklaver.com>

* 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