Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WFoLN-00035d-O4 for pgsql-odbc@arkaria.postgresql.org; Tue, 18 Feb 2014 17:20:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WFoLN-0008Ri-3h for pgsql-odbc@arkaria.postgresql.org; Tue, 18 Feb 2014 17:20:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WFoKE-0008Md-G7 for pgsql-odbc@postgresql.org; Tue, 18 Feb 2014 17:19:18 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WFoKB-0006AD-G0 for pgsql-odbc@postgresql.org; Tue, 18 Feb 2014 17:19:18 +0000 Received: from sc9-mailhost2.vmware.com (sc9-mailhost2.vmware.com [10.113.161.72]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 51C9928A4E; Tue, 18 Feb 2014 09:19:14 -0800 (PST) Received: from zcs-prod-ext-mta-2.vmware.com (zcs-prod-ext-mta-2.vmware.com [10.113.62.224]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id 4F3DFB02CD; Tue, 18 Feb 2014 09:19:14 -0800 (PST) Received: from zcs-prod-ext-mta-2.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTP id CB4B8C0063; Tue, 18 Feb 2014 09:19:13 -0800 (PST) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTPSA; Tue, 18 Feb 2014 09:19:12 -0800 (PST) Message-ID: <5303960F.3050706@vmware.com> Date: Tue, 18 Feb 2014 19:19:11 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 MIME-Version: 1.0 To: =?UTF-8?B?TmlscyBHw7ZzY2hl?= CC: pgsql-odbc@postgresql.org Subject: Re: Null Characters in Strings, Version 9.3.1 References: <006a01cf28e4$7c425450$74c6fcf0$@de> <003201cf2ccb$c5d6ddd0$51849970$@de> In-Reply-To: <003201cf2ccb$c5d6ddd0$51849970$@de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -7.5 (-------) 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 On 02/18/2014 07:06 PM, Nils Gösche wrote: > I wrote: > >> If I retrieve the value in a C# program using the ODBC driver, I get a >> string that has a null character at position 459, but a total length of >> 487! The string up to position 458 is correct, but has now been >> extended with a null character and a few junk characters. > > Am I the only one thinking this is a serious bug? Maybe.. I don't have a C# environment to test this with; if you can write a small stand-alone C program to reproduce this and post it, I'll take a look. - Heikki -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc