At work we had to freeze our DBIC at 0.08196 until the prefetch/namespace
bug was fixed ... which it was recently.

Internally we've built the new perl+cpandeps RPM including DBIx::Class
0.08206. Things are looking great for the prefetch/namespace fix but
something has come to light this week that we think is a bug in DBIC (or
maybe SQLA).

The co-worker has managed to distill it into the attached stand-alone test
case, and the output from the test is below.

Is this a bug, or are we doing 'bad things' that have come to light with
newer code in DBIC?

I'm not the resident expert on this problem in-house, but can proxy
questions through the right channels here if necessary.

Thanks in advance,

Chisel

---- test output ----
➔ perl -v |grep version
This is perl 5, version 14, subversion 2 (v5.14.2) built for x86_64-linux
➔ perlversion DBIx::Class SQL::Abstract
[DBIx::Class] 0.08196
[SQL::Abstract] 1.72
➔ prove ./failing_test.t
./failing_test.t .. ok
All tests successful.
Files=1, Tests=4,  0 wallclock secs ( 0.02 usr  0.01 sys +  0.19 cusr  0.09
csys =  0.31 CPU)
Result: PASS
➔ echo "Upgrading DBIx::Class and SQL::Abstract *only* in another
terminal..."
Upgrading DBIx::Class and SQL::Abstract *only* in another terminal...
➔ perlversion DBIx::Class SQL::Abstract
[DBIx::Class] 0.08206
[SQL::Abstract] 1.73
➔ prove ./failing_test.t
./failing_test.t .. 1/?
#   Failed test 'Expected CD with ID 2'
#   at ./failing_test.t line 58.
#          got: '1'
#     expected: '2'
# Looks like you failed 1 test of 4.
./failing_test.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/4 subtests

Test Summary Report
-------------------
./failing_test.t (Wstat: 256 Tests: 4 Failed: 1)
  Failed test:  4
  Non-zero exit status: 1
Files=1, Tests=4,  0 wallclock secs ( 0.02 usr  0.01 sys +  0.25 cusr  0.06
csys =  0.34 CPU)
Result: FAIL
➔
---- test output ----

-- 
Chisel
e: chi...@chizography.net
w: http://chizography.net

Attachment: failing_test.t
Description: Troff document

_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk

Reply via email to