From: Frank Cazabon <frank.cazabon@gmail.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Calling function from VFP changes character field to Memo
Date: Tue, 15 Nov 2022 14:53:03 -0400
Message-ID: <5d995cf0-1692-412a-8a9b-3a946819f0d5@gmail.com> (raw)
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>
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?
>>>>
>>>
>>>
>
>
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: frank.cazabon@gmail.com, adrian.klaver@aklaver.com
Subject: Re: Calling function from VFP changes character field to Memo
In-Reply-To: <5d995cf0-1692-412a-8a9b-3a946819f0d5@gmail.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> <5d995cf0-1692-412a-8a9b-3a946819f0d5@gmail.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