Received: from mail.rdc1.md.home.com (imail@ha2.rdc1.md.home.com [24.2.2.67]) by hub.org (8.9.3/8.9.3) with ESMTP id XAA11864 for ; Wed, 26 Jan 2000 23:23:21 -0500 (EST) (envelope-from byron.nikolaidis@home.com) Received: from home.com ([24.4.141.52]) by mail.rdc1.md.home.com (InterMail v4.01.01.00 201-229-111) with ESMTP id <20000127042319.GIVA152.mail.rdc1.md.home.com@home.com>; Wed, 26 Jan 2000 20:23:19 -0800 Message-ID: <388FC835.F64ACB6F@home.com> Date: Wed, 26 Jan 2000 23:23:17 -0500 From: Byron Nikolaidis Organization: @Home Network X-Mailer: Mozilla 4.5 [en]C-AtHome0405 (Win95; U) X-Accept-Language: en MIME-Version: 1.0 To: Robert Lintner CC: pgsql-interfaces@postgreSQL.org Subject: Re: [INTERFACES] SQLStatistics problem References: <00Jan26.115034cet.115201@fwetm.etm.at> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Robert Lintner wrote: > > Hi, > > i've got a problem with ODBC command SQLStatistics ( and SQLColumns). > > I am using PostgreSQL Driver v06-40-0006 und postgresql 6.5.3 > > I try to retrive some table informations with > > sqlRet = SQLStatistics( > statment_handle, > 0L, 0, // All catalogs > 0L, 0, // All schemas > (SQLTCHAR *) tableName, strlen(tableName), > SQL_INDEX_ALL, > SQL_QUICK ); // table > > and get sqlRet == SQL_ERROR (-1) > > When I try to get errror information with > > ret = SQLGetDiagRec( SQL_HANDLE_STMT > , statment_handle > , 1 > , Sqlstate > ,&NativeError > , MessageText > , 512 > ,&TextLengthPtr ); > > I've got ret == SQL_NO_DATA and no error information :-( > > The same statements work with Oracle and M$-Access ODBC-Driver correctly. > > Is this feature not supported ? > or do I have to use it in a differnt way ? > > Thanks in advance > > Robert > > ************ I'm not sure how this 3.0 call gets translated to 2.5, but I would have thought it would work. Is there any error in the driver's logfile. Also, if you do a odbc trace you might see something. Byron