Search Postgresql Archives

Returning NEW in an on-delete trigger

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Recently I discovered a coding error of mine in a trigger that is called only for deletes.

I was returning NEW instead of OLD. 

Since NEW is undefined when deleting a row, it was failing and the row wasn't being deleted.

However, it was failing silently.  Shouldn't this have recorded an error or warning somewhere?
--
Mike Nolan

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux