X-Original-To: pgsql-odbc@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id C9E3A475CEE for ; Wed, 9 Apr 2003 23:21:28 -0400 (EDT) Received: from mail.bacchus.com.au (unknown [203.22.71.65]) by postgresql.org (Postfix) with ESMTP id 76D06475C15 for ; Wed, 9 Apr 2003 23:21:26 -0400 (EDT) Received: from joe ([203.185.231.74]) by mail.bacchus.com.au (8.12.8/8.12.8) with SMTP id h3A3LTdv021841 for ; Thu, 10 Apr 2003 13:21:29 +1000 Message-Id: <200304100321.h3A3LTdv021841@mail.bacchus.com.au> Date: Thu, 10 Apr 2003 13:19:40 +1000 Cc: From: "Wayne Armstrong" Reply-To: "Wayne Armstrong" In-Reply-To: <03AF4E498C591348A42FC93DEA9661B8259F40@mail.vale-housing.co.uk> References: <03AF4E498C591348A42FC93DEA9661B8259F40@mail.vale-housing.co.uk> Subject: SQLColumns, SQLTables where fails depending on row cache size MIME-Version: 1.0 X-Mailer: The Polarbar Mailer; version=1.25a; build=1965 X-Spam-Status: No, hits=-16.3 required=5.0 tests=BAYES_01,IN_REP_TO,REFERENCES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/25 X-Sequence-Number: 2827 Hi, an SQLColumns or SQLTables request to the odbc driver will fail if the number of columns(or tables) returned is a multiple of the row cache size and use_declare_fetch is true. The error returned is :-='Unrecognized return value from copy_and_convert_field.' This is returned because the driver has read 1 row past the end of the result, and is trying to convert nulls. I am using the 7.02.00.05 drivers. I have read the source some, but can't actually see what needs changing (I am not really a c programmer :). I have debug logs for this if anyone's interested. Regards, Wayne