X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 03F9F9DC845 for ; Fri, 24 Mar 2006 05:30:42 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 60056-06 for ; Fri, 24 Mar 2006 05:30:44 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from db.nosyko.no (db.nosyko.no [193.213.210.38]) by postgresql.org (Postfix) with SMTP id A489A9DC82F for ; Fri, 24 Mar 2006 05:30:40 -0400 (AST) Received: from lurker.nosyko.no ([192.168.20.6] helo=[127.0.0.1]) by db.nosyko.no with esmtp (Exim 4.50) id 1FMicB-0004FA-UX; Fri, 24 Mar 2006 10:29:57 +0100 Message-ID: <4423BBE0.1070904@nosyko.no> Date: Fri, 24 Mar 2006 10:29:04 +0100 From: =?windows-1252?Q?=C5smund_Kveim_Lie?= User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Hiroshi Inoue CC: "pgsql-odbc@postgresql.org" References: <4422C6BA.60209@nosyko.no> <4423BA00.5010406@tpf.co.jp> In-Reply-To: <4423BA00.5010406@tpf.co.jp> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 192.168.20.6 X-SA-Exim-Mail-From: akl@nosyko.no Subject: Re: MaxLongVarChar and new lines in text X-SA-Exim-Version: 4.2 (built Thu, 03 Mar 2005 10:44:12 +0100) X-SA-Exim-Scanned: Yes (on db.nosyko.no) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.096 required=5 tests=[AWL=0.096] X-Spam-Score: 0.096 X-Spam-Level: X-Archive-Number: 200603/164 X-Sequence-Number: 7450 Hi, No. In our registry settings we set MaxLongVarcharSize (and TextAsLongVarchar = 1). We don’t even set MaxVarChar specifically, but use default. I also noticed the difference in the log. I can send you all of our settings if that gives you more information. regards, Åsmund K Lie Hiroshi Inoue wrote: > Åsmund Kveim Lie wrote: >> Hi, >> >> I'm having a problem with line breaks and the MaxLongVarChar setting. >> I'm using Postgrsql 8.1.3 and ODBC version 08.01.0200(ansi). When I set >> MaxLongVarChar <= 16383 it gives different results than using >> MaxLongVarChar > 16383 or MaxLongVarChar = -4 (which is no limit). I >> insert a newline in the db like this: INSERT INTO test VALUES ('\n'); >> and then retrieve it from my odbc app and write the result to a file. >> CommLogs and result files are attached. >> >> When using a small MaxLongVarChar value the result is (in hex) 0a0d >> (new line, carriage teturn). For large MaxLongVarChar its 000a (new >> line only). Any Windows app requires both new line and carriage return >> to display new line correct. Any reason why this should differ when >> using bigger values in MaxLongVarChar? We use the LF<->CR/LF >> conversion on. > > Just a confirmation. > Aren't you setting MaxVarChar not MaxLongVarChar ? > > regards, > Hiroshi Inoue > > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend >