pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Inoue, Hiroshi <inoue@tpf.co.jp>
To: Barry Bell <Barry_Bell@harte-hanks.com>
Cc: Frank A. U. <fau@email.com>
Cc: psql-odbc <pgsql-odbc@postgresql.org>
Subject: Re: B7 option
Date: Thu, 01 Aug 2013 12:20:19 +0900
Message-ID: <51F9D3F3.60807@tpf.co.jp> (raw)
In-Reply-To: <4D51A19E0157604B94159573456A98FA2E7ACE07@BLUPRD0811MB413.namprd08.prod.outlook.com>
References: <4D51A19E0157604B94159573456A98FA2E7ACE07@BLUPRD0811MB413.namprd08.prod.outlook.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

Hi Barry,

(2013/07/31 23:29), Barry Bell wrote:
> Hi:
>    I was using the last odbc driver (9.1.200) to get a character field with CR and LF.
> With the following connection string, the last character was getting cut off (When a CR LF was in the fied).
> Driver={PostgreSQL UNICODE};Server= server.servicer.com;Port=5432;Database=dbname;Uid=user;Pwd=pwd;BI=2;TextAsLongVarchar=1;UnknownSizes=2;UseServerSidePrepare=1; B0=254;B7=0;C5=1;

Contradictory options TextAsLongVarchar=1 and B7=0 are specified.
Psqlodbc drivers eat the tokens one by one and overwrite the former
option by the latter one after all.

> Changing the B7 to B7=0 corrects the issue (no cut off at the end)

Changing to B7=1?

> Driver={PostgreSQL UNICODE};Server= server.servicer.com;Port=5432;Database=dbname;Uid=user;Pwd=pwd;BI=2;TextAsLongVarchar=1;UnknownSizes=2;UseServerSidePrepare=1; B0=254;B7=1;C5=1;
>
> Documentation on the B7 is a little scarce but most say the B7 is the same as the TextasLongVarchar, but changing the TextaslongVarchar has no offection on this option.
>
> What happens when the B7 is set 0?   (and textaslongvarhar=1)





-- 
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 (4+ messages)  latest in thread

Message-ID: <51F9D3F3.60807@tpf.co.jp>
Permalink:  ../51F9D3F3.60807@tpf.co.jp/
Also on:    postgresql.org/message-id/51F9D3F3.60807@tpf.co.jp

 · 

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: inoue@tpf.co.jp, Barry_Bell@harte-hanks.com, fau@email.com
  Subject: Re: B7 option
  In-Reply-To: <51F9D3F3.60807@tpf.co.jp>
  References: <4D51A19E0157604B94159573456A98FA2E7ACE07@BLUPRD0811MB413.namprd08.prod.outlook.com> <51F9D3F3.60807@tpf.co.jp>

* 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