Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f0JCaX003172 for ; Fri, 19 Jan 2001 07:36:33 -0500 (EST) (envelope-from pgsql-interfaces-owner@postgresql.org) Received: from vms1.isc.rit.edu (vms1.isc.rit.edu [129.21.3.8]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f0J74D075327 for ; Fri, 19 Jan 2001 02:04:19 -0500 (EST) (envelope-from mai3116@ritvax.isc.rit.edu) Received: from neovintage ([129.21.134.44]) by ritvax.isc.rit.edu (PMDF V5.2-32 #41784) with SMTP id <01JZ2P4NB31EV59PUT@ritvax.isc.rit.edu> for pgsql-interfaces@postgresql.org; Fri, 19 Jan 2001 02:04:11 EST Date: Fri, 19 Jan 2001 02:01:57 -0500 From: Mindaugas Idzelis Subject: bug in ODBC driver (and fix) To: pgsql-interfaces@postgresql.org Message-id: MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal X-Archive-Number: 200101/214 X-Sequence-Number: 832 I can't show any tables using the ODBC driver. There is something wrong with the query it uses to select the tables. The query it is using is: select relname, usename, relhasrules from pg_class, pg_user where relkind = 'r' and relname !~ '^pg_|^dd_' and relname !~ '^xinv[0-9]+' and int4out(usesysid) = int4out(relowner)order by relname and it should be: select relname, usename, relhasrules from pg_class, pg_user where relkind = 'r' and relname !~ '^pg_|^dd_' and relname !~ '^xinv[0-9]+' and usesysid = relowner order by relname the int4out() function should be removed. I am using version 6.5 of the ODBC driver. Is there a patch that makes this work? Thank you. The 1 line change should be done in the file info.c. (please reply to my email address mai3116@rit.edu as i am not a mailing list subscriber)