Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ov0zC-0006xr-47 for pgsql-general@arkaria.postgresql.org; Tue, 15 Nov 2022 18:48:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ov0zB-0006fA-0n for pgsql-general@arkaria.postgresql.org; Tue, 15 Nov 2022 18:48:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ov0zA-0006f1-MI for pgsql-general@lists.postgresql.org; Tue, 15 Nov 2022 18:48:40 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ov0z5-00020v-8a for pgsql-general@postgresql.org; Tue, 15 Nov 2022 18:48:39 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 569C25C0281; Tue, 15 Nov 2022 13:48:34 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 15 Nov 2022 13:48:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1668538114; x= 1668624514; bh=q96l8tRulQ/jcoaYVizqpIeiceVqz89ynODPrCoZmr0=; b=V BPk76K/ubXQ4GBRg42xkSRIChZYk8XZ3MYzeRyQUtwW8jkhjv3pjeJzlHifXO3Xw Gbs7ttDwNVb8Eu5/YVwowjTvLSBsC8q4xw0FAqp804LMAjGROxHK3/a2aZRRru4y aoT9uk0mgog44suqqk2edpNvTxdaXF4uQ9bQPqk56iRa1Y8bLiN94BN9N0W3ehh1 gOG0CQGivFU+o3a2sLejnpCUkbbdrwludw8koWZIECWBqY5gZchTpb/IeDVf7a46 JKz9l4FqXGg6ydQPkvPP7GmtJ69/Oq5N7y/H3A1ohBQn8GfxFgWOpZOzYNCBI1iS fdYFMlGxgE8wFMlHAw1gw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1668538114; x= 1668624514; bh=q96l8tRulQ/jcoaYVizqpIeiceVqz89ynODPrCoZmr0=; b=o R1h9rcj79BKh+m2dQ5bA8knBjS2mz35IZlH+JiNxCKE9UEOridfTvshnjacYU1sW 4ubm84YCxPhGp5CIFQ01bMSFu2xxsOBQmtk1D4303l+Fh8N0NvmSfOMlrQVV8qP0 8QVNphhmwtyrFI7IgrsVqQqcYAnin7l4jpm1ckjV3kSepa/xOII4rnsS/wzuEaqe l3eV6kIrZFeS0RMiRMnlSlkUP2bEGa2OJ2gKUiRzspDXVbdJfYGDvmhfC2U8rMa1 xQgY83Elc00dYiJCpjCWZyBVgXqDuNFu78+Mut+xGbLN4YK90b2V10jXJJEeEPaQ tCZKQyJ1ZRUnNSkKXBFtg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrgeeggdduudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhevhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnhepuddvtdeuffelkeekgfejhfetveeukeetteeijeev vdehiefhgeehfffgfeffueevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 15 Nov 2022 13:48:33 -0500 (EST) Subject: Re: Calling function from VFP changes character field to Memo To: Frank Cazabon References: <144d91c5-e0e6-4669-6c88-700ddaeee52b@aklaver.com> <95255a88-2b7b-9072-0cb0-1045dfc4310d@gmail.com> Cc: pgsql-general From: Adrian Klaver Message-ID: Date: Tue, 15 Nov 2022 10:48:32 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <95255a88-2b7b-9072-0cb0-1045dfc4310d@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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