X-Original-To: pgsql-odbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 8A8B49FB30F for ; Fri, 4 Aug 2006 20:51:41 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 55235-06 for ; Fri, 4 Aug 2006 20:51:33 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from pgfoundry.org (pgfoundry.org [200.46.204.130]) by postgresql.org (Postfix) with ESMTP id E4ADD9FB2DD for ; Fri, 4 Aug 2006 20:51:33 -0300 (ADT) Received: from localhost (mx1.hub.org [200.46.208.251]) by pgfoundry.org (Postfix) with ESMTP id D3FC186C59F; Fri, 4 Aug 2006 23:51:33 +0000 (UTC) Received: from pgfoundry.org ([200.46.204.130]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 38381-07; Fri, 4 Aug 2006 20:51:30 -0300 (ADT) Received: by pgfoundry.org (Postfix, from userid 80) id 0325E86C625; Fri, 4 Aug 2006 23:51:31 +0000 (UTC) To: noreply@pgfoundry.org From: Subject: [ psqlodbc-Bugs-1000699 ] Problem creating TableAdapter with WHERE parameter Content-type: text/plain; charset=UTF-8 Message-Id: <20060804235131.0325E86C625@pgfoundry.org> Date: Fri, 4 Aug 2006 23:51:31 +0000 (UTC) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.073 tagged_above=0 required=5 tests=AWL, NO_REAL_NAME X-Spam-Level: * X-Archive-Number: 200608/22 X-Sequence-Number: 7986 Bugs item #1000699, was opened at 2006-08-04 20:51 You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000699&group_id=1000125 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Adriano Bonat (adrianob) Assigned to: Nobody (None) Summary: Problem creating TableAdapter with WHERE parameter Initial Comment: I'm having problem when creating a TableAdapter (via TableAdapter Wizard), I build a query using Query Builder like this: SELECT id, name FROM "public".cc_projects WHERE (id = ?) executing the query runs fine, asking me the value of '?' and returning the selected data. I continue the process leaving 'Fill' and 'return DataTable' marked, when the wizard start to generate the code, it throws this error: The wizard detected the following problems when configuring the TableAdapter: "Fill": Details: Generated SELECT statement. ERROR [42601] ERROR: syntax error at or near ")"; Error while executing the query If I put a fixed value in the query, like 'id=1' it works fine. Follow attached a zipped file with 2 log files that could help you, any other information that you need, just ask me. Thanks. ---------------------------------------------------------------------- You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000699&group_id=1000125