Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WkbkR-0007PN-Rc for pgsql-odbc@arkaria.postgresql.org; Wed, 14 May 2014 16:09:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WkbkQ-0007Mo-Pj for pgsql-odbc@arkaria.postgresql.org; Wed, 14 May 2014 16:09:38 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WkbkQ-0007Mg-5c for pgsql-odbc@postgresql.org; Wed, 14 May 2014 16:09:38 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WkbkM-0002NT-Rp for pgsql-odbc@postgresql.org; Wed, 14 May 2014 16:09:37 +0000 Received: from compute1.internal (compute1.nyi.mail.srv.osa [10.202.2.41]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 81DE021024; Wed, 14 May 2014 12:09:34 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Wed, 14 May 2014 12:09:34 -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=Z0D4iZHBsyOsdwXqMEsOw9doGY4=; b=S5qSQy3A8LB/8vqSebyQUhj7td+T +lnZCqAIfV3NMddiUZ8UL+4xUzr4WROIahrakwkl1ywoGyv663Gko0g1gifC0WxG nLtT9hqUbeDUPkWeHu4DWIIsSNWuDbN9bI7XLG5A/ARQnayPH9Q1s7mBDI5uRWKz eiGuzBrkOfGtFIw= 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=Z0D4iZHBsyOsdwXqMEsOw9 doGY4=; b=kQHeedj+vWvXuBRu9VkCP/ND/MSSyOveLUEB43Ie8Vcn8IrTDGynTo wKsSo+3/SbJ+xJtHBpwn0x9KfIjbDsTon32i+WEvNGmXlwUCSXbbMvv+eFKt9Zka YWjtv6Y9FBQCtsS7FI4Es43sfKbYcjVYKvVyn0l7gYFSGAkfqfpQA= X-Sasl-enc: DWeZPM4tdK550N2fwTolTcW0fYwr6nfZJNt1SZZZk/I3 1400083774 Received: from killi.site (unknown [173.160.167.74]) by mail.messagingengine.com (Postfix) with ESMTPA id 2DCD26800B9; Wed, 14 May 2014 12:09:32 -0400 (EDT) Message-ID: <5373953C.5060403@aklaver.com> Date: Wed, 14 May 2014 09:09:32 -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> <53738DEB.3030008@aklaver.com> <998a842379cc416bbc5b2c83783492d9@BY2PR08MB281.namprd08.prod.outlook.com> In-Reply-To: <998a842379cc416bbc5b2c83783492d9@BY2PR08MB281.namprd08.prod.outlook.com> 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:03 AM, Barry Bell wrote: > It has to be the Driver/Postgres because VFP does not determin the datatype > (The driver does). That does not preclude the possibility that it changes a data type to meet its view of the world given that data type handling varies greatly from on data system to another. > > With the B0=254(Max Varchar) in the connection string of the ODBC driver is suppose convert > The "text" in postgres to varchar is the length is less then 254. > The issue here is the length is 0 or null, this setting is ignored and returns "text". > > Can you provider anymore information on driver setting B0 (Max Varchar) From here: http://psqlodbc.projects.pgfoundry.org/docs/config.html Max Varchar The maximum precision of the Varchar and BPChar(char[x]) types. The default is 254 which actually means 255 because of the null terminator. Note, if you set this value higher than 254, Access will not let you index on varchar columns! From here: Varchar can be used the same way Character can: you can index on it (the index keys are padded with spaces to the length of the field, because index keys must be a fixed length), it accepts null values, and Varchar fields have a limit of 254 characters in a table or cursor. If it where me I would set B0 = 253 to see what happens. > > > 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