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 F28C2D9A62 for ; Mon, 10 Oct 2005 04:12:59 -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 52708-04 for ; Mon, 10 Oct 2005 07:12:55 +0000 (GMT) Received: from vserver0202.onit4u.de (ns.redaex.de [213.133.112.5]) by svr1.postgresql.org (Postfix) with ESMTP id 85898D9A06 for ; Mon, 10 Oct 2005 04:12:52 -0300 (ADT) Received: from JOOPS2.JOOPS.INTERN (dialin-212-144-016-046.pools.arcor-ip.net [212.144.16.46]) by vserver0202.onit4u.de (8.11.6/8.11.6/SuSE Linux 0.5) with ESMTP id j9A7CnP25172 for ; Mon, 10 Oct 2005 09:12:49 +0200 Received: from joops.com (Workstation-44 [192.168.10.44]) by JOOPS2.JOOPS.INTERN (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id JAA00954 for ; Mon, 10 Oct 2005 09:11:58 +0200 Message-ID: <434A1401.6060606@joops.com> Date: Mon, 10 Oct 2005 09:10:57 +0200 From: Josef Springer Organization: JOOPS Informationstechnik GmbH User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1 X-Accept-Language: en-us, de-de MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Re: Windows, ODBC drivers and strange points ... References: <4348F935.8030506@t-online.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.265 required=5 tests=[AWL=0.215, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200510/31 X-Sequence-Number: 6133 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 Marten Feldtmann wrote: > Hello, > > I'm trying to use PostgreSQL via ODBC under Windows > and IBM VisualAge Smalltalk. Normally ODBC works > pretty well, but I've found two problems with the > ODBC driver of PostgreSQL, which makes the whole > thing not working: > > > a) All column names are returned from the database > in lowercase and not in the form the client send > then when doing the "create table ..." statement. > > Which leads to the problem, that other frameworks > on top of it do not find their columns do make the > oo-rdbms mapping stuff. > > b) All strings returned by the ODBC driver are defined > in a buffer, which is offered to the ODBC subsystem > as a string doubled in size - though I told the > databaase NOT to create a UNICODE db. > > An example: a column has the result type char(15). The > ODBC drivers put the result of this column into a > memory with a size of 30 characters. > > The ODBC subsystem now thinks: fine - I've a character > column with size 30 and creates a string 30 characters > long and one gets 15 corrects characters and 15 "0" (null) > bytes. > > I've never seen this behaviour with other ODBC drivers > I've used so far, therefore I think, this is pretty > strange behaviour. > > I'm using the 8.0.3 database and the 8.0.1.2 drivers. > > Any ideas ??? > > > Marten Feldtmann > > ---------------------------(end of broadcast)--------------------------- > TIP 1: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly