<div dir="ltr">I'm upgrading DBIC on a project and it's helping to find bugs in our code.<div><br></div><div>Running tests I found an error ("No such column 'last_saved') and then found this code:<br><br><br><div> my $last_saved_column_data = {</div><div> data_type => 'timestamp with time zone',</div><div> default_value => 'now()',</div><div> is_nullable => 1,</div><div> size => 8,</div><div> };</div><div><br></div><div><div> foreach ( $users_rs->all ) {</div><div><br></div><div> $_->add_column( 'last_saved' => $last_saved_column_data );</div><div> $_->set_column( 'last_saved' => $column_value );<br></div></div><div> }</div><div><br></div><div>I assume what the programmer wanted to do there was just add an attribute "last_saved" to the Users result class. Or maybe only to those specific rows returned in that resultset (e.g. as a <a href="http://search.cpan.org/dist/MooseX-SingletonMethod/lib/MooseX/SingletonMethod.pm">singleton method</a>).</div><div><br></div><div>Apparently that was working in the past. Was that ever a supported behavior?</div><div><br></div><div><br></div>-- <br>Bill Moseley<br><a href="mailto:moseley@hank.org" target="_blank">moseley@hank.org</a>
</div></div>