[Koha-bugs] [Bug 10332] UT: CourseReserves.t needs to create its own data

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat May 25 01:16:26 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10332

--- Comment #3 from Chris Cormack <chris at bigballofwax.co.nz> ---
(In reply to comment #2)
> Hi Jonathan 
> 
> I get this
> 
> DBD::mysql::db do failed: Cannot truncate a table referenced in a foreign
> key constraint (`koha_persona`.`course_instructors`, CONSTRAINT
> `course_instructors_ibfk_2` FOREIGN KEY (`course_id`) REFERENCES
> `koha_persona`.`courses` (`course_id`)) at t/db_dependent/CourseReserves.t
> line 22.
> DBD::mysql::st execute failed: Cannot add or update a child row: a foreign
> key constraint fails (`koha_persona`.`items`, CONSTRAINT `items_ibfk_2`
> FOREIGN KEY (`homebranch`) REFERENCES `branches` (`branchcode`) ON UPDATE
> CASCADE) at C4/Items.pm line 2105.
> 
> 
> When trying on my machine

The second error to do with branches was a data one, fixed that, but I am still
getting the can't truncate error.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list