Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 06646475EF0 for ; Mon, 7 Oct 2002 20:16:42 -0400 (EDT) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 009DE475E2C for ; Mon, 7 Oct 2002 20:16:40 -0400 (EDT) Received: (qmail 4697 invoked from network); 8 Oct 2002 00:16:42 -0000 Received: from unknown (HELO viscomail.tpf.co.jp) (100.0.0.108) by sd2.tpf-fw-c.co.jp with SMTP; 8 Oct 2002 00:16:42 -0000 Received: from tpf.co.jp (3dgateway1 [126.0.1.60]) by viscomail.tpf.co.jp (8.8.8+Sun/8.8.8) with ESMTP id JAA04947; Tue, 8 Oct 2002 09:16:40 +0900 (JST) Message-ID: <3DA2241A.935CBD84@tpf.co.jp> Date: Tue, 08 Oct 2002 09:17:30 +0900 From: Hiroshi Inoue X-Mailer: Mozilla 4.73 [ja] (Windows NT 5.0; U) X-Accept-Language: ja MIME-Version: 1.0 To: Mike Mascari Cc: pgsql-odbc@postgresql.org Subject: Re: Lotus Domino Server/Enterprise Connection Services References: <3DA0E540.9070901@mascari.com> <3DA1FA19.8020705@mascari.com> Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/44 X-Sequence-Number: 2129 Mike Mascari wrote: > > I wrote: > > Hi all. > > > > Has anyone successfully configured Lotus Domino Server R6 beta to > > correctly connect to PostgreSQL via ODBC and the Enterprise Connection > > Services interface? > > and > > > However, the R6 server returns garbage instead of legitimate > > data. I suspect the server may be anticipating UCS-2 data, although I > > didn't have enough time to play around with his configuration. > > I've compared the SQL trace log of Lotus Domino Server accessing > a Microsoft Access database using DECS/ODBC vs. accessing a > PostgreSQL database using DECS/ODBC. The main difference which > is prohibiting Lotus Domino Server from connecting to a > PostgreSQL database is the data type of the meta data. > > When Domino Server examines data using the Access ODBC driver, > it calls SQLTables() followed by SQLDescribeCol(). > SQLDescribeCol() returns a value of 12 (SQL_VARCHAR) for the > data type of the metadata (like table names or column names), > whereas the PostgreSQL driver is returing a -1 (Who knows?) for -1 is SQL_LONGVARCHAR. Hmm the driver has handled the char columns for the result of most catalog functions as PG_TYPE_TEXT and it seems to be the cause. I changed them to PG_TYPE_VARCHAR and put the binaries on http://w2422.nsk.ne.jp/~inoue/. Could you try the dll ? regards, Hiroshi Inoue http://w2422.nsk.ne.jp/~inoue/