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 C3E3FD719D for ; Thu, 17 Nov 2005 03:26:10 -0400 (AST) 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 90565-08 for ; Thu, 17 Nov 2005 07:26:09 +0000 (GMT) X-Greylist: delayed 09:44:36.327368 by SQLgrey- Received: from www.schrievkrom.de (port-212-202-240-110.static.qsc.de [212.202.240.110]) by svr1.postgresql.org (Postfix) with SMTP id 92404D6FF4 for ; Thu, 17 Nov 2005 03:26:06 -0400 (AST) Received: from pD9FB3C7A.dip.t-dialin.net ([217.251.60.122]) by www.schrievkrom.de id 68 ; Thu, 17 Nov 2005 08:25:58 +0100 Message-ID: <68.08.25.58.17.11.2005@www.schrievkrom.de> Date: Thu, 17 Nov 2005 08:25:53 +0100 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: Marten Feldtmann CC: pgsql-odbc@postgresql.org Subject: Re: Windows, ODBC drivers and strange points ... References: <4348F935.8030506@t-online.de> <67.22.41.28.16.11.2005@www.schrievkrom.de> In-Reply-To: <67.22.41.28.16.11.2005@www.schrievkrom.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, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200511/176 X-Sequence-Number: 6412 Here a partial answer. The reason was the special ODBC driver libpq I used. I installed the 08.01.0101 driver and now the base routines work again. Strange, that I get a difference ration of 3:1 between columnLength and columnPresicion with string based columns. a char(1) returns the columnPrecision of 1, but a column length of 3 which I do not understand. Marten Marten Feldtmann schrieb: > Perhaps you might remember my tests with > PostgreSQL and IBm VisualAge Smalltalk. > > I mentioned my problems with column lengths > and stuff like this. > > I still testing (from time to time) with > the 8.0.3 database and use the newest > 8.01.00.03 libpq ODBC drivers and now > the situation is getting worse :-(((( > > IBM Smalltalk is now not able to get the > correct column size for strings any more. > > I always get either 254 bytes or 508 bytes > as column size. > > We have a table like: > > create table "TPERSON" ("ALLCSTVIEW" CHAR(1) > .... > > Now IBM Smalltalk calls OdbcSQLDescribeCol > and gets 254 for this column as size in the > return parameter cbPrecision. > > And the alternate call via OdbcSQLColAttribute > with parameter Sql_Column_Lengthreturns 508. > > Actually this is true for ALL string columns > > The PostgreSQL drivers seem strange for me ... > I've done work with other database systems > via this ODBC library, but PostgreSQL does > not give me any real success .... > > If anyone has any help .... > > Marten > > > -- Marten Feldtmann - Germany - Software Development Information regarding VA Smalltalk and DMS-system "MSK - Mien Schrievkrom" at: www.schrievkrom.de