X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 1C498D1B580 for ; Thu, 18 Mar 2004 13:36:27 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 42552-07 for ; Thu, 18 Mar 2004 09:36:23 -0400 (AST) Received: from bella.texidor.webbods.com.au (203-109-170-216.aus.ihugultra.com.au [203.109.170.216]) by svr1.postgresql.org (Postfix) with ESMTP id 3570CD1B4D3 for ; Thu, 18 Mar 2004 09:36:18 -0400 (AST) Received: from nick.texidor.webbods.com.au (nick.texidor.webbods.com.au [192.168.0.205]) by bella.texidor.webbods.com.au (Postfix) with ESMTP id D0A23EB8A1 for ; Fri, 19 Mar 2004 00:36:18 +1100 (EST) From: Nick Texidor Organization: Webbods To: pgsql-odbc@postgresql.org Subject: Data Access Error Date: Fri, 19 Mar 2004 00:36:17 +1100 User-Agent: KMail/1.6.1 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200403190036.17909.nick.texidor@webbods.com.au> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/65 X-Sequence-Number: 3867 Hi, I'm hoping that someone can help me out with a small problem. I have just moved a website over from a MS Access database to a Postgres one. The site is written in ColdFusion. Most of the SQL commands worked fine, with the only changes being the boolean fields, which were bit under Access. Anyway.. my problem is this. I have a function that deletes pages in my content system. This function fires off several ColdFusion queries, to delete records from various tables. There may, or may not, be records in these tables that need to be deleted. The problem is this... if there are records to be deleted, everything runs fine and dandy.. however, of there are no records to be deleted, the browser spits up a "Data Access Error" error page. All it says is "Unknown Data Access Error". I have played around enough to figure that it is when there are no rows deleted that the error appears. This has always worked when the database used was Access. I'm tried pasting the code directly into the SQL window in phpPgAdmin, and the same code qorked, without returning an error, where no records existed to be deleted. So I'm figuring that the error is lieing in the ODBC driver. I have been through all the settings, but couldn't make it work. Am I missing something, or is this a genuine bug? Are there any other odbc drivers I can try? I can code SELECT queries all around the deletes to see if there is anything to delete, but this seems like a bit of overkill for something that should really work. I'm running postgres on a windows NT machine, using the cygwin setup. Everything else seems great, just this problem. Any help would be greatly appreciated. Thanks Nick