X-Original-To: pgsql-odbc@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 4A8084753A1 for ; Mon, 10 Feb 2003 10:49:36 -0500 (EST) Received: from mailhost.humph.com (mailhost.humph.com [193.112.138.73]) by postgresql.org (Postfix) with ESMTP id B7208474E53 for ; Mon, 10 Feb 2003 10:49:35 -0500 (EST) Received: from pc3-cmbg2-5-cust150.cmbg.cable.ntl.com ([80.4.125.150] helo=[10.0.1.17]) by mailhost.humph.com with asmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.12) id HA3NYR-0000NQ-00; Mon, 10 Feb 2003 15:49:39 +0000 Mime-Version: 1.0 Message-Id: In-Reply-To: References: Date: Mon, 10 Feb 2003 15:49:51 +0000 To: "Hiroshi Inoue" From: Giuliano Gavazzi Subject: Re: psqlodbc and SQLFetch after SQLTables gives Cc: Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/50 X-Sequence-Number: 2668 At 0:24 +0900 2003/02/11, Hiroshi Inoue wrote: > > -----Original Message----- > > From: Giuliano Gavazzi [...] > > > > Now I have enabled tracing and found where the failure is. Apparently >> >> MSQ uses SQLFetch just after SQLTables to get the table list, this >> > > SQLFetch fails by returning SQL_NO_DATA_FOUND. Here I have two >> >> snippets from the traces of MSQ retrieving tables first using >> >> OpenLink Postgres Lite driver (that succeeds) and then using psqlodbc >> >> (that fails): >> >> >> >> 1) openlink driver: >> >> >> >> iODBC[Microsoft Query] ThID:A0000DEC ENTER SQLTables >> >> >> >> iODBC[Microsoft Query] ThID:A0000DEC EXIT SQLTables with return >> >> code 0 (SQL_SUCCESS) >> >> >> >> Microsoft Query ThID:A0000DEC EXIT SQLTables with return code 0 >> >> (SQL_SUCCESS) >> >> HSTMT 0x01619a00 >> >> CHAR* 00000000 "..." >> >> SMALLINT -3536 >> >> CHAR* 00000000 "..." >> >> SMALLINT -18992 >> >> CHAR* 00000000 "..." >> >> SMALLINT 15056 >> >> CHAR* 0x001c3fd8 "Table" >> > >> >Hmm, if it is "TABLE", it seems to work. >> >OK I would change the driver to be insenitive about > > >it. [...] >I've just committed a change to cvs(info.c). >Please try it. > >regards, >Hiroshi Inoue tested... Thanks Hiroshi, you are a star! You can add a note in the CVS that this change fixes the interaction with MSQuery on MacOSX. Giuliano