bugs.core_5322_test. Cascade deletion in self-referencing table could raise "no current record for fetch operation" error