<div dir="ltr">I&#39;m upgrading DBIC on a project and it&#39;s helping to find bugs in our code.<div><br></div><div>Running tests I found an error (&quot;No such column &#39;last_saved&#39;) and then found this code:<br><br><br><div>    my $last_saved_column_data = {</div><div>        data_type     =&gt; &#39;timestamp with time zone&#39;,</div><div>        default_value =&gt; &#39;now()&#39;,</div><div>        is_nullable   =&gt; 1,</div><div>        size          =&gt; 8,</div><div>    };</div><div><br></div><div><div>    foreach ( $users_rs-&gt;all ) {</div><div><br></div><div>        $_-&gt;add_column( &#39;last_saved&#39; =&gt; $last_saved_column_data );</div><div>        $_-&gt;set_column( &#39;last_saved&#39; =&gt; $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 &quot;last_saved&quot; 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>