From: | wsheldah(at)lexmark(dot)com |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: undeleteable records |
Date: | 2001-07-17 21:15:39 |
Message-ID: | 200107172115.RAA18279@interlock2.lexmark.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
What I noticed was that the select came up with one row, with an apparently
blank gift_certificate_id. That field was declared as INT NOT NULL, yet it
shows up blank. Wouldn't that indicate that something got in there that wasn't
supposed to?
Tom Lane <tgl%sss(dot)pgh(dot)pa(dot)us(at)interlock(dot)lexmark(dot)com> on 07/17/2001 04:49:45 PM
To: Tara Cooper <carat%pantz(dot)com(at)interlock(dot)lexmark(dot)com>
cc: pgsql-general%postgresql(dot)org(at)interlock(dot)lexmark(dot)com (bcc: Wesley
Sheldahl/Lex/Lexmark)
Subject: Re: [GENERAL] undeleteable records
Tara Cooper <carat(at)pantz(dot)com> writes:
> <html>
> Has anyone encountered a problem where a delete sql statement works (no
> parser errors) but always returns a "DELETE 0" value, even when
> I'm sure the record I'm selecting for delete is in the table? I
> have also tried deleting the same record by specifying a different field
> value, with the same results, as well as trying all of this with multiple
> records in the same table. None of the records will delete.
Please don't send HTML mail to the lists...
I wonder whether you haven't got a foreign key relationship that forbids
the delete. Or a miswritten user-defined ON DELETE trigger.
regards, tom lane
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
From | Date | Subject | |
---|---|---|---|
Next Message | will trillich | 2001-07-17 21:16:46 | Re: editor with syntax-highlighting for PL/PGSQL |
Previous Message | Gregory Wood | 2001-07-17 20:54:29 | Re: psql -l |