Bug 1110272 - perl-DBIx-Class-0.08250-5.fc21 FTBFS: 'Cascading delete on Ordered has_many works' t/60core.t test fails
Summary: perl-DBIx-Class-0.08250-5.fc21 FTBFS: 'Cascading delete on Ordered has_many w...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-DBIx-Class
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Pisar
QA Contact: Fedora Extras Quality Assurance
URL: http://koji.fedoraproject.org/koji/ta...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-17 10:48 UTC by Petr Pisar
Modified: 2014-06-18 07:39 UTC (History)
3 users (show)

Fixed In Version: perl-DBIx-Class-0.08250-6.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-18 07:39:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
CPAN 96499 0 None None None Never

Description Petr Pisar 2014-06-17 10:48:04 UTC
perl-DBIx-Class-0.08250-5.fc21 fails to build due to tests:

#   Failed test 'Cascading delete on Ordered has_many works'
#   at t/60core.t line 362.
# died: DBIx::Class::Exception (DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::SQLite::st execute failed: UNIQUE constraint failed: track.cd, track.position [for Statement "UPDATE track SET position = ? WHERE ( trackid = ? )"] at t/60core.t line 362
# )
#   Failed test 'Cascading through has_many top level.'
#   at t/60core.t line 363.
#          got: '3'
#     expected: '0'
#   Failed test 'Cascading through has_many children.'
#   at t/60core.t line 364.
#          got: '3'
#     expected: '0'
# Looks like you failed 3 tests of 123.
t/60core.t .......................................... 
Dubious, test returned 3 (wstat 768, 0x300)
Failed

This is caused by upgrading sqlite from 3.8.4.3 to 3.8.5.

Comment 1 Petr Pisar 2014-06-18 07:20:02 UTC
Upstream fixed it by:

commit 37b9b05b2fd693c01ef01a29765fba97077393d2
Author: Peter Rabbitson <ribasushi>
Date:   Mon Jun 16 16:15:44 2014 +0200

    Fix ::Ordered in combination with delete_all
    
    See pod-changes for description of the solution. I cringe but... oh well


Note You need to log in before you can comment on or make changes to this bug.