X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0A4C13A4D42; Sun, 21 Nov 2004 18:52:54 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 27045-02; Sun, 21 Nov 2004 18:52:45 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 45F683A1D8A; Sun, 21 Nov 2004 18:52:44 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id iALIqZK1009236; Sun, 21 Nov 2004 13:52:37 -0500 (EST) To: Alex Guryanow Cc: pgsq-odbc@postgresql.org, pgsql-general@postgresql.org Subject: Re: Wrong string length from unicode database in Borland's app In-reply-to: <118-60991984.20041121175609@nlr.ru> References: <118-60991984.20041121175609@nlr.ru> Comments: In-reply-to Alex Guryanow message dated "Sun, 21 Nov 2004 17:56:09 +0300" Date: Sun, 21 Nov 2004 13:52:35 -0500 Message-ID: <9235.1101063155@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/1016 X-Sequence-Number: 69096 Alex Guryanow writes: > When pg-server is version 7.1.3 windows app works fine, but when > pg-server is version 7.4.6 or 8.0beta4 under certain conditions the > app receives strings with wrong lengths. Are both servers set up with the same database encoding? (Is the 7.1 server even compiled to support non-ASCII encodings?) > But by executing the query > select volume, trim(number) from issue where mag_id = 25403; > the datagrid component (that displays query's results) contains in > second column values with length of 32769. If you try the same query in plain psql, what do you get? What is in the wrong-length value, exactly? regards, tom lane