Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WkbbD-00074e-5Z for pgsql-odbc@arkaria.postgresql.org; Wed, 14 May 2014 16:00:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WkbbC-0003hp-KP for pgsql-odbc@arkaria.postgresql.org; Wed, 14 May 2014 16:00:06 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WkbbB-0003hh-Qv for pgsql-odbc@postgresql.org; Wed, 14 May 2014 16:00:06 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wkbb7-0002C6-Qs for pgsql-odbc@postgresql.org; Wed, 14 May 2014 16:00:04 +0000 Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 7959F20A26; Wed, 14 May 2014 12:00:00 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Wed, 14 May 2014 12:00:00 -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=0p4JmLFpYQmub4WEAmkLq5DAek0=; b=EK7yJ5WIDaGjNYMN7IKRRuOHXOoN G+0oCmxYA2pYxpxMxwc9bF0bCGzoKR49BwDfBoNnHlfMXxidxlBwy0BUe19qP20O B062oVs75jsKMO0B9mXs6C+UqwU6/BOmfNhlHmRy4F9oQC33+RGcSkzQgv0e6Exw 6uvOwasq/IMXT40= 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=0p4JmLFpYQmub4WEAmkLq5 DAek0=; b=VJ5wo8siDrqvvYc/DmXLZlb1m49c0FLvASfRXDCqf4sa8izIhtLu9O FDO9xlBe0qPt1fLanfSSZ9wrNnFXpDZhTMxlOiiHJ0eJRvJJ1y6kNGsxU6a+htFg L3rsJ4/zEyDYP+kfH76051OE9bzdHV6wD2uoe91k6j3ukwO36xrxM= X-Sasl-enc: tqvKggPXionWTaIFLgSDGWak+xFcucLaNdgqldyNrgmQ 1400083200 Received: from killi.site (unknown [173.160.167.74]) by mail.messagingengine.com (Postfix) with ESMTPA id 69EF468015E; Wed, 14 May 2014 11:59:59 -0400 (EDT) Message-ID: <537392FE.70407@aklaver.com> Date: Wed, 14 May 2014 08:59:58 -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> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit 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 08:29 AM, Barry Bell wrote: > Sending the SQL through the postgres driver to a Postgres ver 9 server, where it runs, > I see the data types in the client software that is calling the ODBC driver > (in this case VFP, foxpro). To follow up, from here: http://foxcentral.net/microsoft/WhatsNewInVFP9_Chapter09.htm "Because the DBF structure hasn’t changed significantly (although the new data types have some impact on the structure; see the “How the new data types affect DBF files” section later in this chapter), Varchar fields are actually stored as fixed length fields. However, when you access a Varchar field, the value appears to be trimmed rather than padded with spaces to the length of the field." but "By default, text boxes pad values with spaces to the maximum width of the field. To suppress that behavior, add “F” to the Format property of the Textbox. You should also set MaxLength to the width of the field to ensure the user can enter the maximum number of characters if necessary. To see an example of this, run TestVarcharInTextbox.SCX, type something like “test” in both text boxes, and click on the Results button. Because the second text box has “F” in its Format property, its content is trimmed while the content of the first one is not." > > > 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