X-Original-To: pgsql-odbc@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id BBBE647595A for ; Mon, 10 Feb 2003 10:22:12 -0500 (EST) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 6E93F475956 for ; Mon, 10 Feb 2003 10:22:11 -0500 (EST) Received: (qmail 14853 invoked from network); 10 Feb 2003 15:22:14 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 10 Feb 2003 15:22:14 -0000 Received: from unknown (HELO mcadnote1) (219.61.40.15) by sd.tpf.co.jp with SMTP; 10 Feb 2003 15:22:14 -0000 From: "Hiroshi Inoue" To: "Giuliano Gavazzi" Cc: Subject: Re: psqlodbc and SQLFetch after SQLTables gives SQL_NO_DATA_FOUND Date: Tue, 11 Feb 2003 00:24:48 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/49 X-Sequence-Number: 2667 > -----Original Message----- > From: Giuliano Gavazzi [mailto:dev+pgsql@humph.com] > > At 16:02 +0900 2003/02/10, Hiroshi Inoue wrote: > [...] > > > 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. > > > > Hi Hiroshi, sorry but I do not understand. In both cases (the working > one and the not working one) it is "Table". What seems to change is > the way the client application retrieves the data. I have now enable > debug and repeated the test, may I send you the output? > > Where would I change the source anyway? In info.c? I've just committed a change to cvs(info.c). Please try it. regards, Hiroshi Inoue