Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V4jRI-0007Kk-Va for pgsql-odbc@arkaria.postgresql.org; Thu, 01 Aug 2013 03:20:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V4jRI-0000uP-5L for pgsql-odbc@arkaria.postgresql.org; Thu, 01 Aug 2013 03:20:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V4jRH-0000uI-Aw for pgsql-odbc@postgresql.org; Thu, 01 Aug 2013 03:20:31 +0000 Received: from sd.tpf.co.jp ([210.161.239.34]) by magus.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V4jRD-000614-3j for pgsql-odbc@postgresql.org; Thu, 01 Aug 2013 03:20:31 +0000 Received: (qmail 27592 invoked by uid 512); 1 Aug 2013 03:20:23 -0000 Received: from unknown (HELO ?127.0.0.1?) (100.126.1.62) by sd2.tpf-fw-c.co.jp with SMTP; 1 Aug 2013 03:20:23 -0000 Message-ID: <51F9D3F3.60807@tpf.co.jp> Date: Thu, 01 Aug 2013 12:20:19 +0900 From: "Inoue, Hiroshi" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: Barry Bell CC: "Frank A. U." , psql-odbc Subject: Re: B7 option References: <4D51A19E0157604B94159573456A98FA2E7ACE07@BLUPRD0811MB413.namprd08.prod.outlook.com> In-Reply-To: <4D51A19E0157604B94159573456A98FA2E7ACE07@BLUPRD0811MB413.namprd08.prod.outlook.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -3.4 (---) 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 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