X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 36AEB528BC for ; Wed, 25 May 2005 01:26:09 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 81655-07 for ; Wed, 25 May 2005 04:26:00 +0000 (GMT) Received: from serensoft.com (client-sp08-18.speedex.net [198.67.1.18]) by svr1.postgresql.org (Postfix) with ESMTP id ECF3452834 for ; Wed, 25 May 2005 01:25:58 -0300 (ADT) Received: from localhost ([127.0.0.1] helo=mail.serensoft.com) by serensoft.com with esmtp (Exim 4.50) id 1DanSn-0004n3-Jm for pgsql-odbc@postgresql.org; Tue, 24 May 2005 23:25:49 -0500 Received: from 66.72.30.219 (SquirrelMail authenticated user will) by mail.serensoft.com with HTTP; Tue, 24 May 2005 23:25:49 -0500 (CDT) Message-ID: <1961.66.72.30.219.1116995149.squirrel@mail.serensoft.com> Date: Tue, 24 May 2005 23:25:49 -0500 (CDT) Subject: cognos reportnet vs psql odbc 07_03_0200 From: "w trillich" To: pgsql-odbc@postgresql.org User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal References: In-Reply-To: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200505/79 X-Sequence-Number: 5382 hi. we've been developing client reporting solutions using cognos reportnet (1.1mr2) working nicely with informix (jenzabar/cars implementations) via both the informix odbc driver and the native driver (even more stable with the native driver, of course). we thought we'd put together a sample database on postgres for demonstrating to prospects, and we've hit a snag-- we downloaded the odbc (for version psqlodbc-07_03_0200.zip) from http://www.postgresql.org/ftp/odbc/versions/msi just yesterday. $ psql -V psql (PostgreSQL) 7.4.7 with a mere two-table select, the reportnet error is: QE-DEF-0177 An error occurred while performing operation 'sqlPrepareWithOptions' status='-9'. UDA-SQL-0107 A general exception has occurred during the operation "prepare". ERROR: syntax error at or near "." at character 108 once we set "log_min_error_statement = error" in /etc/postgresql/postgresql.conf and restarted the postmaster, we found the syntax snag: STATEMENT: select "Donor_ID_Fields"."fullname", "Donor_Fields"."id" from "public"."id_view" "Donor_ID_Fields""public"."donor_rec" "Donor_Fields" on "Donor_ID_Fields"."id" = "Donor_Fields"."id" order by "Donor_Fields"."id" asc with indentation, that's: select "Donor_ID_Fields"."fullname", "Donor_Fields"."id" from "public"."id_view" "Donor_ID_Fields" "public"."donor_rec" "Donor_Fields" on "Donor_ID_Fields"."id" = "Donor_Fields"."id" order by "Donor_Fields"."id" asc there's no join clause between the tables in the 'from' clause. somewhere between reportnet and postgres (i.e. odbc) there's a clause that goes missing. here's the result with a three-table join: select "Gift_Fields"."desg", "Designation_Lookup"."txt", sum("Gift_Fields"."amt") from "public"."gift_rec" "Gift_Fields" LEFT OUTER JOIN "public"."desg_table" "Designation_Lookup" [missing comma/join clause] "public"."desg_rec" "Designation_Fields" on "Designation_Lookup"."desg" = "Designation_Fields"."desg" on "Gift_Fields"."desg" = "Designation_Fields"."desg" and "Gift_Fields"."camp" = "Designation_Fields"."camp" group by "Gift_Fields"."desg", "Designation_Lookup"."txt" we'll download other versions of the driver tomorrow and see where the chips fall then. thought you'd like to know, in case you didn't already... -- Liberty > Security