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 05F8654E9E for ; Fri, 11 Mar 2005 02:18:54 +0000 (GMT) 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 40174-04 for ; Fri, 11 Mar 2005 02:18:34 +0000 (GMT) Received: from imf03aec.mail.bellsouth.net (imf03aec.mail.bellsouth.net [205.152.59.51]) by svr1.postgresql.org (Postfix) with ESMTP id EDEA854F98 for ; Fri, 11 Mar 2005 02:18:33 +0000 (GMT) Received: from erne ([65.2.229.193]) by imf19aec.mail.bellsouth.net (InterMail vM.5.01.06.11 201-253-122-130-111-20040605) with SMTP id <20050311000824.YSCR5764.imf19aec.mail.bellsouth.net@erne> for ; Thu, 10 Mar 2005 19:08:24 -0500 From: "erne_dev @ Bellsouth.net" To: Subject: Queries run twice Date: Thu, 10 Mar 2005 19:08:26 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: by amavisd-new at hub.org X-Archive-Number: 200503/43 X-Sequence-Number: 5061 Running version 8.0 server under WinXP, client is Builder/ADO application connecting through ODBC. Found a reference to exactly the same problem on this msg http://archives.postgresql.org/pgsql-odbc/2005-02/msg00033.php. Is this a PostgreSQL bug? Or is it ODBC driver? My application also works with MySQL and this doesn't happen when connecting to a MySQL server so I don't think is has to do with the ADO components. Like the poster of that message my query gets executed twice, one as I specified the second time without the WHERE clause, so the whole Table is returned causing a lot of network traffic and slowing things down...What is the 'parse statement' mentioned on that message? Is that a PostgreSQL setting? erne_dev -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 266.6.1 - Release Date: 3/4/2005