Skip to content

Commit

Permalink
Add test to show virtual_columns failure on DBIC 0.082899_15
Browse files Browse the repository at this point in the history
This commit of DBIC breaks virtual column functionality:

Perl5/DBIx-Class@786c1cddede6675b9

See in-code comments
  • Loading branch information
vanstyn committed Oct 15, 2017
1 parent caf212c commit c319a41
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions t/04_virtual_columns.t
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,25 @@ ok(
"Create new Album with artistid value"
);


# -----
# This test is known to fail on DBIx::Class 0.082899_15 (dev release)
# bisect shows the first breaking commit:
# https://github.com/dbsrgits/dbix-class/commit/786c1cddede6675b9fc5fc46ae4e1e136ef2c392
ok(
my $NewAlbum = $albRs->create({
title => "Death Metal Banjo Skullcrush",
artistid => $NewArtist
}),
"Create new Album with artist Row object"
);
# The failure/error output on these dbic versions is:
#
# DBIx::Class::ResultSource::resolve_relationship_condition(): The key 'some_cool_virtual_column'
# supplied as part of 'foreign_values' during relationship resolution is not a column on related
# source 'Artist' at t/04_virtual_columns.t line 88
#
# -----

done_testing;

0 comments on commit c319a41

Please sign in to comment.