pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Barry Bell <Barry.Bell@hartehanks.com>
To: Hiroshi Saito <hiroshi@winpg.jp>
To: Michael Paquier <michael.paquier@gmail.com>
To: Hiroshi Inoue <inoue@tpf.co.jp>
Cc: Heikki Linnakangas <hlinnakangas@vmware.com>
Cc: Anna Gershnik <agershnik@tableausoftware.com>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: psqlODBC text length with no records
Date: Wed, 14 May 2014 09:09:32 -0700
Message-ID: <5373953C.5060403@aklaver.com> (raw)
In-Reply-To: <998a842379cc416bbc5b2c83783492d9@BY2PR08MB281.namprd08.prod.outlook.com>
References: <152de38c9c2544b9b61f9a2f77e9aa3d@BY2PR08MB281.namprd08.prod.outlook.com>
	<5372B875.3010407@aklaver.com>
	<3fca930240554b80bc4174911fb49400@BY2PR08MB281.namprd08.prod.outlook.com>
	<53736874.2090905@aklaver.com>
	<b3d4a6df087c4f238679fd06bfc7493c@BY2PR08MB281.namprd08.prod.outlook.com>
	<53736E22.4090506@aklaver.com>
	<b69daf8c28f741a3ae1206b160aa4a7d@BY2PR08MB281.namprd08.prod.outlook.com>
	<53737480.6070808@aklaver.com>
	<14cee66c2d5d444a8ec0c4c773f20d5b@BY2PR08MB281.namprd08.prod.outlook.com>
	<53737AAC.9060201@aklaver.com>
	<dbd79918ac9d472da1995a053f1e750e@BY2PR08MB281.namprd08.prod.outlook.com>
	<53738B4D.1030507@aklaver.com>
	<ddb764a5697b48d494729ea582ceb163@BY2PR08MB281.namprd08.prod.outlook.com>
	<53738DEB.3030008@aklaver.com>
	<998a842379cc416bbc5b2c83783492d9@BY2PR08MB281.namprd08.prod.outlook.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

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



view thread (23+ messages)  latest in thread

Message-ID: <5373953C.5060403@aklaver.com>
Permalink:  ../5373953C.5060403@aklaver.com/
Also on:    postgresql.org/message-id/5373953C.5060403@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: adrian.klaver@aklaver.com, Barry.Bell@hartehanks.com, hiroshi@winpg.jp, michael.paquier@gmail.com, inoue@tpf.co.jp, hlinnakangas@vmware.com, agershnik@tableausoftware.com
  Subject: Re: psqlODBC text length with no records
  In-Reply-To: <5373953C.5060403@aklaver.com>
  References: <152de38c9c2544b9b61f9a2f77e9aa3d@BY2PR08MB281.namprd08.prod.outlook.com> <5372B875.3010407@aklaver.com> <3fca930240554b80bc4174911fb49400@BY2PR08MB281.namprd08.prod.outlook.com> <53736874.2090905@aklaver.com> <b3d4a6df087c4f238679fd06bfc7493c@BY2PR08MB281.namprd08.prod.outlook.com> <53736E22.4090506@aklaver.com> <b69daf8c28f741a3ae1206b160aa4a7d@BY2PR08MB281.namprd08.prod.outlook.com> <53737480.6070808@aklaver.com> <14cee66c2d5d444a8ec0c4c773f20d5b@BY2PR08MB281.namprd08.prod.outlook.com> <53737AAC.9060201@aklaver.com> <dbd79918ac9d472da1995a053f1e750e@BY2PR08MB281.namprd08.prod.outlook.com> <53738B4D.1030507@aklaver.com> <ddb764a5697b48d494729ea582ceb163@BY2PR08MB281.namprd08.prod.outlook.com> <53738DEB.3030008@aklaver.com> <998a842379cc416bbc5b2c83783492d9@BY2PR08MB281.namprd08.prod.outlook.com> <5373953C.5060403@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox