Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Perl Syntax - What's the difference?

by Corion (Pope)
on Apr 09, 2018 at 11:50 UTC ( #1212574=note: print w/replies, xml ) Need Help??

in reply to Perl Syntax - What's the difference?

Most likely this is because somewhere in your setup/configuration, there is something that tells Moose / DBIC / whatever to map values from a column startdate to DateTime objects. But now the column is named start_date and that list has not been adjusted appropriately.

Alternatively, the column type has changed to something that the hidden magic of Moose / DBIC / whatever cannot determine that you want DateTime objects from what was a date column anymore. Or maybe it's now a timestamp column.

Maybe reducing your zoo of modules to a simple case of one table with two columns, startdate and start_date that still fails to magically inflate one column but magically inflates the other column can help us to give you better advice.

Replies are listed 'Best First'.
Re^2: Perl Syntax - What's the difference?
by Galdor (Sexton) on Apr 09, 2018 at 12:13 UTC
    ok Corion - you da man! - Youre reponse pushed me in the right directions - for more investigations. Wow wasted an hour on that... It appears that the original scripts had this included:
    > __PACKAGE__->load_components( qw/InflateColumn::DateTime /);
    and newly generated ones not - it seems to be the way that the DBIC was generated from the Pg schema - there is a script (that I used) that does not add this "pacakge" and there are some notes in a readme to do:
    dbicdump -o components='["InflateColumn::DateTime"]' \
    so I guess that was it - not even in the source code! Who new?! Thanks once again for the steer..

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1212574]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2020-10-22 05:49 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (225 votes). Check out past polls.