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 747E3D8D2D for ; Sun, 9 Oct 2005 08:04:49 -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 73312-01 for ; Sun, 9 Oct 2005 11:04:43 +0000 (GMT) Received: from mailout04.sul.t-online.com (mailout04.sul.t-online.com [194.25.134.18]) by svr1.postgresql.org (Postfix) with ESMTP id 6E681D6FC8 for ; Sun, 9 Oct 2005 08:04:45 -0300 (ADT) Received: from fwd32.aul.t-online.de by mailout04.sul.t-online.com with smtp id 1EOYz1-0000kt-06; Sun, 09 Oct 2005 13:04:47 +0200 Received: from [192.168.70.3] (VsIdwMZpQerD1u8Tadby3IFp6N5-ra9Ipj+xzfiJL0OERdYXQN96oX@[217.251.62.42]) by fwd32.sul.t-online.de with esmtp id 1EOYys-0QBDhQ0; Sun, 9 Oct 2005 13:04:38 +0200 Message-ID: <4348F935.8030506@t-online.de> Date: Sun, 09 Oct 2005 13:04:21 +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: pgsql-odbc@postgresql.org Subject: Windows, ODBC drivers and strange points ... Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-ID: VsIdwMZpQerD1u8Tadby3IFp6N5-ra9Ipj+xzfiJL0OERdYXQN96oX X-TOI-MSGID: 48288277-4c7e-4c79-b5b5-fc046a50ae4b 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/30 X-Sequence-Number: 6132 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