Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UI6PE-0008Rc-RZ for pgsql-odbc@arkaria.postgresql.org; Tue, 19 Mar 2013 23:57:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UI6PE-0006wa-3o for pgsql-odbc@arkaria.postgresql.org; Tue, 19 Mar 2013 23:57:24 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UI6PD-0006wU-AK for pgsql-odbc@postgresql.org; Tue, 19 Mar 2013 23:57:23 +0000 Received: from sd.tpf.co.jp ([210.161.239.34]) by makus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UI6P6-00016h-JL for pgsql-odbc@postgresql.org; Tue, 19 Mar 2013 23:57:22 +0000 Received: (qmail 31462 invoked by uid 512); 19 Mar 2013 23:57:13 -0000 Received: from unknown (HELO ?127.0.0.1?) (100.126.1.62) by sd2.tpf-fw-c.co.jp with SMTP; 19 Mar 2013 23:57:13 -0000 Message-ID: <5148FB57.204@tpf.co.jp> Date: Wed, 20 Mar 2013 08:57:11 +0900 From: "Inoue, Hiroshi" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 MIME-Version: 1.0 To: Ben Morgan CC: pgsql-odbc@postgresql.org Subject: Re: Bug: attributes dynamically filled (e.g. xml) truncated References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -4.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, (2013/03/18 17:12), Ben Morgan wrote: > Hi, > > I have found what I think might be a bug. I am using the ODBC driver > in conjunction with AnySQL. After submitting this bug report to them, > they said they think that it is a problem with the driver, because “it > just displays values returned by the driver.” So here we go! :-) > > The text type in PostgreSQL is of unlimited length. When accessing a > view in PostgreSQL, some of the attributes contain data generated > dynamically that is longer than 255 characters, but it would seem that > the driver truncates this to 255 characters. Please try to turn on the *Text as LongVarChar* option. regards, Hiroshi Inoue > Steps to reproduce: > > drop view if exists "public"."too_short_view"; > > drop table if exists "public"."too_short"; > > create table "public"."too_short" (id serial primary key, name text not null); > > insert into "public"."too_short" (name) values (' > Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc > tempor risus sit amet nibh venenatis sit amet vehicula augue > suscipit. Vivamus augue magna, lacinia vel dapibus nec, > tincidunt quis eros. Duis vehicula hendrerit dui, ut cursus ligula volutpat. > This is now at least 255 characters long, but this part will be truncated.'); > > create view "public"."too_short_view" as select id, xmlelement(name > xml, name) from "public"."too_short"; > > select * from "public"."too_short_view"; > > Thanks for your time! > Ben -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc