I'd like to alter Rose::DB to be able to tabe a subref as a default value for a column in the table object classes so that upon insertion of a new row the default value can be dinamically calculated. I looked in Metadata and Metadata::Column but I couldnt really locate myself very well. Is this something I do from Column.pm or should it be done somewhere else??

Basically the promblem is that I want default for a column to be NOW(). unfortunately that is getting insterted as 0000-00-00  so my guess is that it's getting screwed up in the placeholder stage, and I can't just do default => DateTime->now... so i thought of doing default => sub {return DateTime->now; } 


Reply via email to