Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wkbx5-0007wR-NZ for pgsql-odbc@arkaria.postgresql.org; Wed, 14 May 2014 16:22:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wkbx4-0003es-UY for pgsql-odbc@arkaria.postgresql.org; Wed, 14 May 2014 16:22:42 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wkbx2-0003ap-Kr for pgsql-odbc@postgresql.org; Wed, 14 May 2014 16:22:40 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wkbx0-0002eW-GU for pgsql-odbc@postgresql.org; Wed, 14 May 2014 16:22:39 +0000 Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 19B362137C; Wed, 14 May 2014 12:22:38 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Wed, 14 May 2014 12:22:38 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; s=mesmtp; bh=O48NuouagpUk8XwCn8N+DbmXvWk=; b=ac+cHleNaJL2HEqCdpVEeAPxkYNX bDAc9sH4jPrC0OCktxH0KGZl10K1tUSu3LRlKZ9PVl7f8Cx+EewmXP8+qqMBtx9s Hss3bwwN2drf1l2aNOzchN3tXPua4tM089ObmkGAb+mwwwzWkH/F1+l5FkIS7n5d pOFew3rEOAae7a8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=O48NuouagpUk8XwCn8N+Db mXvWk=; b=rjteV+dnFJHHeniaMp5MQ5LAOherbH5XD4+1vqwkv6m79FIk5b1Cdo XC1Ecqb3sIsxRjEm9lK9ljqKHlphkPcRQ9q47PlOZx0B0ObvY6hUn8+fzqx18YvQ 87vQHsgo2k8TBkR7qn7RzY5XfBA+3/qpUiW5gABKDvCT1nOGXCywc= X-Sasl-enc: N6v43hxYaVAEe2NDSAVdWNxVhnDCMugdov3vdEhz7LJ3 1400084557 Received: from killi.site (unknown [173.160.167.74]) by mail.messagingengine.com (Postfix) with ESMTPA id A2CE5680134; Wed, 14 May 2014 12:22:36 -0400 (EDT) Message-ID: <5373984B.1010906@aklaver.com> Date: Wed, 14 May 2014 09:22:35 -0700 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Barry Bell , Hiroshi Saito , Michael Paquier , Hiroshi Inoue CC: Heikki Linnakangas , Anna Gershnik , "pgsql-odbc@postgresql.org" Subject: Re: psqlODBC text length with no records References: <152de38c9c2544b9b61f9a2f77e9aa3d@BY2PR08MB281.namprd08.prod.outlook.com> <5372B875.3010407@aklaver.com> <3fca930240554b80bc4174911fb49400@BY2PR08MB281.namprd08.prod.outlook.com> <53736874.2090905@aklaver.com> <53736E22.4090506@aklaver.com> <53737480.6070808@aklaver.com> <14cee66c2d5d444a8ec0c4c773f20d5b@BY2PR08MB281.namprd08.prod.outlook.com> <53737AAC.9060201@aklaver.com> <53738B4D.1030507@aklaver.com> <537392FE.70407@aklaver.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org On 05/14/2014 09:08 AM, Barry Bell wrote: > None of the below information helps because we are taking the output cursor > From the postgrest sql, putting it into a VFP grid and displaying to the user. > > With theB0(Max varchar)=254 setting, Postgres for lengths 1-254 returns a "char" > In vfp, when displayed to the user in a grid, the value of field is shown > > With theB0(Max varchar)=254 setting, Postgres for lengths=0 or null returns a "Memo" > In vfp, when displayed to the user in a grid, "Memo" is shown in the field instead of the value > > With theB0(Max varchar)=254 setting, Postgres for length over 256 returns a "Memo" > In vfp, when displayed to the user in a grid, "Memo" is shown in the field instead of the value > We only have some code after the sql that sorts the cursor and VFP is unable to sort on the MEMO fields. > > Our issue is when Postgres is returning a fireld with 0 or null length, > The driver is not using the B0(Max varchar) setting. Meant to add, it might be helpful to turn on logging in the ODBC manager to see what the driver is actually doing. > > Barry Bell -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc