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 2AC8DD1DC69 for ; Tue, 23 Mar 2004 04:25:04 +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 12230-07 for ; Tue, 23 Mar 2004 00:25:02 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 48622D1DC20 for ; Tue, 23 Mar 2004 00:25:02 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i2N4P21Y091281 for ; Tue, 23 Mar 2004 04:25:02 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i2N4MGo2090638 for pgsql-odbc@postgresql.org; Tue, 23 Mar 2004 04:22:16 GMT From: "Michael Fork" X-Newsgroups: comp.databases.postgresql.interfaces.odbc Subject: Re: Data Access Error Date: Mon, 22 Mar 2004 23:22:17 -0500 Organization: Hub.Org Networking Services Lines: 62 Message-ID: References: <200403190036.17909.nick.texidor@webbods.com.au> X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 To: pgsql-odbc@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/82 X-Sequence-Number: 3884 I am having this same problem -- executing a delete statement through the ODBC driver that affects 0 rows throws an SQLException in Java -- is there a workaround. Thanks. Michael "Nick Texidor" wrote in message news:200403190036.17909.nick.texidor@webbods.com.au... > 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 > > > > ---------------------------(end of broadcast)--------------------------- > TIP 7: don't forget to increase your free space map settings >