X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id C56DD9DCD1F for ; Fri, 10 Feb 2006 10:17:46 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 90801-01 for ; Fri, 10 Feb 2006 10:17:50 -0400 (AST) Received: from pgfoundry.org (pgfoundry.org [200.46.204.130]) by postgresql.org (Postfix) with ESMTP id 559119DCD23 for ; Fri, 10 Feb 2006 10:17:44 -0400 (AST) Received: from localhost (av.hub.org [200.46.204.144]) by pgfoundry.org (Postfix) with ESMTP id 03CDE1033814; Fri, 10 Feb 2006 14:17:47 +0000 (GMT) Received: from pgfoundry.org ([200.46.204.130]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 90796-01; Fri, 10 Feb 2006 10:17:45 -0400 (AST) Received: by pgfoundry.org (Postfix, from userid 80) id 950B21033818; Fri, 10 Feb 2006 14:17:45 +0000 (GMT) To: noreply@pgfoundry.org From: Subject: [ psqlodbc-Bugs-1000518 ] " Requested conversion is not supported" when trying to query information_schema.tables on SQL Content-type: text/plain; charset=UTF-8 Message-Id: <20060210141745.950B21033818@pgfoundry.org> Date: Fri, 10 Feb 2006 14:17:45 +0000 (GMT) X-Virus-Scanned: by amavisd-new at hub.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=-0.722 required=5 tests=[ALL_TRUSTED=-1.44, AWL=0.168, NO_REAL_NAME=0.55] X-Spam-Score: -0.722 X-Spam-Level: X-Archive-Number: 200602/63 X-Sequence-Number: 7192 Bugs item #1000518, was opened at 2006-01-04 23:36 You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000518&group_id=1000125 Category: None Group: None >Status: Deleted Resolution: None Priority: 3 Submitted By: saikit lam (taz_devilzz) Assigned to: Nobody (None) Summary: "Requested conversion is not supported" when trying to query information_schema.tables on SQL Initial Comment: I got this error: Could not get the current row value of column '[MSDASQL].table_catalog' from the OLE DB provider 'MSDASQL'. [OLE/DB provider returned message: Requested conversion is not supported.] OLE DB error trace [OLE/DB Provider 'MSDASQL' IRowset::GetData returned 0x80040e1d]. when I am trying to execute the following queries on SQL Query Analyzer: a) SELECT * FROM OPENQUERY(my_linked_server,'SELECT * FROM information_schema.tables') b) SELECT * FROM OPENQUERY(ufa_selfserve_PGSQL80,'SELECT * FROM pg_catalog.pg_constraint') my_linked_server is defined as a SQL linked server using Microsoft OLE DB Provider (MSADSQL). However, the following error result no error: SELECT * FROM OPENQUERY(ufa_selfserve_PGSQL80,'SELECT * FROM pg_catalog.pg_depend') I have tried both psqlodbc-08_01_0102 and psqlodbc-8_01_0106 but they behave the same. Any help is appreciated. Thanks. ---------------------------------------------------------------------- >Comment By: Ludek Finstrle (luf) Date: 2006-02-10 15:17 Message: User doesn't cooperate. ---------------------------------------------------------------------- Comment By: Ludek Finstrle (luf) Date: 2006-01-05 20:31 Message: Please attach mylog output as it's is more useful for bug hunting (it's much larger so feel free to compress it). ---------------------------------------------------------------------- Comment By: saikit lam (taz_devilzz) Date: 2006-01-05 00:00 Message: Here is what I got from the psqlodbc_xxx.log file about the error: Global Options: Version='08.01.0102', fetch=100, socket=0, unknown_sizes=254, max_varchar_size=8190, max_longvarchar_size=0 disable_optimizer=1, ksqo=1, unique_index=1, use_declarefetch=0 text_as_longvarchar=1, unknowns_as_longvarchar=0, bools_as_char=1 NAMEDATALEN=64 extra_systable_prefixes='dd_;', conn_settings='' conn_encoding='OTHER' conn=81423936, query='select version()' [ PostgreSQL version string = 'PostgreSQL 7.4.7 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-47)' ] [ PostgreSQL version number = '7.4' ] conn=81423936, query='set DateStyle to 'ISO'' conn=81423936, query='set geqo to 'OFF'' conn=81423936, query='set extra_float_digits to 2' conn=81423936, query='select oid from pg_type where typname='lo'' conn=81423936, query='select pg_client_encoding()' conn=81423936, query='set client_encoding to 'latin9'' conn=81423936, PGAPI_DriverConnect(out)='DSN=my_dsn;DATABASE=my_db;SERVER=my_server;PORT=5432;SSLMODE=prefer;UID=me;PWD=pwd;ReadOnly=0;Protocol=6.4;FakeOidIndex=0;ShowOidColumn=0;RowVersioning=0;ShowSystemTables=0;ConnSettings=;Fetch=100;Socket=8192;UnknownSizes=0;MaxVarcharSize=254;MaxLongVarcharSize=8190;Debug=0;CommLog=1;Optimizer=1;Ksqo=1;UseDeclareFetch=0;TextAsLongVarchar=1;UnknownsAsLongVarchar=0;BoolsAsChar=1;Parse=0;CancelAsFreeStmt=0;ExtraSysTablePrefixes=dd_;;LFConversion=1;UpdatableCursors=0;DisallowPremature=0;TrueIsMinus1=0;BI=0;ByteaAsLongVarBinary=0;UseServerSidePrepare=0;LowerCaseIdentifier=0' DESCRIPTOR ERROR: func=PGAPI_SetDescField, desc='', errnum=11, errmsg='bad parameter number' conn=81423936, query='SELECT * FROM information_schema.tables' conn=81423936, PGAPI_Disconnect Global Options: Version='08.01.0102', fetch=100, socket=0, unknown_sizes=254, max_varchar_size=8190, max_longvarchar_size=0 disable_optimizer=1, ksqo=1, unique_index=1, use_declarefetch=0 text_as_longvarchar=1, unknowns_as_longvarchar=0, bools_as_char=1 NAMEDATALEN=64 extra_systable_prefixes='dd_;', conn_settings='' conn_encoding='OTHER' conn=81423936, query='select version()' [ PostgreSQL version string = 'PostgreSQL 7.4.7 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-47)' ] [ PostgreSQL version number = '7.4' ] conn=81423936, query='set DateStyle to 'ISO'' conn=81423936, query='set geqo to 'OFF'' conn=81423936, query='set extra_float_digits to 2' conn=81423936, query='select oid from pg_type where typname='lo'' conn=81423936, query='select pg_client_encoding()' conn=81423936, query='set client_encoding to 'latin9'' conn=81423936, PGAPI_DriverConnect(out)='DSN=my_dsn;DATABASE=my_db;SERVER=my_server;PORT=5432;SSLMODE=prefer;UID=me;PWD=pwd;ReadOnly=0;Protocol=6.4;FakeOidIndex=0;ShowOidColumn=0;RowVersioning=0;ShowSystemTables=0;ConnSettings=;Fetch=100;Socket=8192;UnknownSizes=0;MaxVarcharSize=254;MaxLongVarcharSize=8190;Debug=0;CommLog=1;Optimizer=1;Ksqo=1;UseDeclareFetch=0;TextAsLongVarchar=1;UnknownsAsLongVarchar=0;BoolsAsChar=1;Parse=0;CancelAsFreeStmt=0;ExtraSysTablePrefixes=dd_;;LFConversion=1;UpdatableCursors=0;DisallowPremature=0;TrueIsMinus1=0;BI=0;ByteaAsLongVarBinary=0;UseServerSidePrepare=0;LowerCaseIdentifier=0' DESCRIPTOR ERROR: func=PGAPI_SetDescField, desc='', errnum=11, errmsg='bad parameter number' conn=81423936, query='SELECT * FROM pg_catalog.pg_constraint' ---------------------------------------------------------------------- You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000518&group_id=1000125