BUG #4220: delete statement deleted too many rows

From: "Lon Varscsak" <varscsak(at)smarthealth(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #4220: delete statement deleted too many rows
Date: 2008-06-04 18:46:42
Message-ID: 200806041846.m54IkgAl075173@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 4220
Logged by: Lon Varscsak
Email address: varscsak(at)smarthealth(dot)com
PostgreSQL version: 8.3.1
Operating system: Linux (RHEL 5)
Description: delete statement deleted too many rows
Details:

I executed this query:

delete from customer_transactions_detail where transaction_id in (select
transaction_id from test);

The transaction_id column does NOT exist in the temporary table named
'test'). I would think this would just result in an error, instead it
delete all rows in the customer_transactions_detail table.

Yikes!

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message John R Pierce 2008-06-04 18:47:22 Re: BUG #4219: fseeko test failure in configure script
Previous Message Nathan Reed 2008-06-04 18:19:38 BUG #4219: fseeko test failure in configure script