X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 45206D9C15 for ; Mon, 10 Oct 2005 07:46:29 -0300 (ADT) 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 09210-06 for ; Mon, 10 Oct 2005 10:46:22 +0000 (GMT) Received: from mailout06.sul.t-online.com (mailout06.sul.t-online.com [194.25.134.19]) by svr1.postgresql.org (Postfix) with ESMTP id 5F0ADD9C0B for ; Mon, 10 Oct 2005 07:46:24 -0300 (ADT) Received: from fwd27.aul.t-online.de by mailout06.sul.t-online.com with smtp id 1EOvAn-00062s-04; Mon, 10 Oct 2005 12:46:25 +0200 Received: from [192.168.70.3] (Xj83SiZGYe5MCOVar5xSf7mlFuY-EgITD1XjUSkC0BRBOaRaOezArf@[217.251.60.142]) by fwd27.sul.t-online.de with esmtp id 1EOvAY-2KpH1M0; Mon, 10 Oct 2005 12:46:10 +0200 Message-ID: <434A465C.6090701@t-online.de> Date: Mon, 10 Oct 2005 12:45:48 +0200 From: Marten Feldtmann Organization: Privat User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: Josef Springer Cc: pgsql-odbc@postgresql.org Subject: Re: Windows, ODBC drivers and strange points ... References: <4348F935.8030506@t-online.de> <434A1401.6060606@joops.com> In-Reply-To: <434A1401.6060606@joops.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-ID: Xj83SiZGYe5MCOVar5xSf7mlFuY-EgITD1XjUSkC0BRBOaRaOezArf X-TOI-MSGID: 653d0960-0e63-4428-ae52-93e2aeb855d7 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 required=5 tests=[none] X-Spam-Level: X-Archive-Number: 200510/33 X-Sequence-Number: 6135 Actually this is still a point I have to investigate. To made all stuff working in a correct way I need another information about how much bytes actually used ... or I need an information that I have to deal with UNICODE stuff. Within the ODBC driver interface I deal with cbLength and cbPrecision (information delivered by the ODBC drivers). The first one tells the interface, how much bytes are reserved for this column and cbPrecision tells me, what was the length when executing the create statement. Therefore under PostgreSQL it's: For CHAR(15), cbLength is ALWAYS 30 and cbPrecision is always 15. Both information are not enough - I need to know, how much of cbLength of this buffer I must use to create the string (and of course how to interpret the byte stream: single byte character or doubule byte character) - or cbLength changes it's value depending on the Perhaps it would be better to have CHAR(15) -> cbLength = 15, cbPrecision = 15 (if single-byte database) CHAR(15) -> cbLength = 30, cbPrecision = 15 (if unicode database) but there also seem to be other parameters within the ODBC specs to get this information - I just have not found the overall picture. Marten Josef Springer schrieb: > Hi Marten, > > i am using PostgreSQL 8.0.3 an ODBC 8.0.1.2 with VisualWorks 7. I am > using a UNICODE database (with the same client connect datatype) and > all works fine because of the result data aspect. It seems, that other > than UNICODE make problems in any case. > > Josef Springer > >