Re: Calling function from VFP changes character field to Memo

From: Frank Cazabon <frank(dot)cazabon(at)gmail(dot)com>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Calling function from VFP changes character field to Memo
Date: 2022-11-15 18:53:03
Message-ID: 5d995cf0-1692-412a-8a9b-3a946819f0d5@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On 15/11/2022 2:48 pm, Adrian Klaver wrote:
> On 11/15/22 10:43 AM, Frank Cazabon wrote:
>
> Please reply to list als.
> Ccing list
Sorry about that, first time using this list and just assumed I was
replying to the list and the list would then notify you
>
>>>> 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();

That does work, thanks, but it may cause me some logic problems in the
rest of the code. I'll try the type suggestion from Tom and see if that
works and then decide which is my best approach.

Thanks

>
>>>
>>>>
>>>> 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?
>>>>
>>>
>>>
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Frank Cazabon 2022-11-15 18:54:15 Re: Calling function from VFP changes character field to Memo
Previous Message Adrian Klaver 2022-11-15 18:52:49 Re: Calling function from VFP changes character field to Memo