Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WkbtB-0007ld-Pl for pgsql-odbc@arkaria.postgresql.org; Wed, 14 May 2014 16:18:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WkbtB-0000yZ-8x for pgsql-odbc@arkaria.postgresql.org; Wed, 14 May 2014 16:18:41 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WkbtA-0000yR-FZ for pgsql-odbc@postgresql.org; Wed, 14 May 2014 16:18:40 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wkbt7-0002YV-Dw for pgsql-odbc@postgresql.org; Wed, 14 May 2014 16:18: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 ABE9E20AD0; Wed, 14 May 2014 12:18:35 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Wed, 14 May 2014 12:18:35 -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=gNhp2N3I4696vG67oo7Cv6Ol+tU=; b=PP28WtyVwQF/cO6i1B1LZLN5UQ7P rdEdksmDCiKMsXTcv8dHuzX8cZhG6PG9PVYGmFN4/a2//ghzpVozN0EHI0EoA3S6 v0uJ8B4rYqEVug8ZYU2pFbKGxXPBpPDS3FGaQhQLMLA29xjo+/Sprgsk57CpiVjA HinkfFBQsk5uC+Q= 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=gNhp2N3I4696vG67oo7Cv6 Ol+tU=; b=gHroMKInuDxywb8agwhOqoFw6ChybrodqUsvp9Y9zH/9A8dhDOAYBT EfOpJkUAx8IqKE1D2iDhmDPPrbjRqFXtKoc0HOM5DDuKnlJ/7PS2qWT1Xkt/6k7a UKrPPHI4AwMU3Um15VKrux6ZNqu3HXGasbJLZ/UndUUQuc9fB+ADA= X-Sasl-enc: Lrx484dVZfqB+6L39HXSgwKwg2VlXrup2X6kGFxNRM6O 1400084315 Received: from killi.site (unknown [173.160.167.74]) by mail.messagingengine.com (Postfix) with ESMTPA id 58551680140; Wed, 14 May 2014 12:18:34 -0400 (EDT) Message-ID: <53739759.1040303@aklaver.com> Date: Wed, 14 May 2014 09:18:33 -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. Well you could always try Parse Statements: http://psqlodbc.projects.pgfoundry.org/docs/config.html > > Barry Bell > Senior Developer/Analyst -- 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