laziness, impatience, and hubris | |
PerlMonks |
DBIx::Class 'select.... for update' confusionby tomgracey (Scribe) |
on Dec 14, 2017 at 21:17 UTC ( [id://1205549]=perlquestion: print w/replies, xml ) | Need Help?? |
tomgracey has asked for the wisdom of the Perl Monks concerning the following question: Hello all I am confused about the mechanics of 'select.. for update' under DBIx::Class (I'm using MySQL but I suppose that shouldn't matter.) So I have reduced it down to the following test case: The table looks like this initially:
and after execution like this:
The schema was created by DBIx::Class::Schema::Loader and looks like this: (with boilerplate removed). When I run the above code I get the following:
To me this seems like odd behaviour, because after $rs is selected with rows=1 it surely should only contain a single row with a single id...? Any idea what stupid thing have I (not) done this time?
Back to
Seekers of Perl Wisdom
|
|