[Bast-commits] r9033 -
DBIx-Class/0.08/branches/prefetch/lib/DBIx/Class/InflateColumn
ribasushi at dev.catalyst.perl.org
ribasushi at dev.catalyst.perl.org
Sun Mar 21 06:52:01 GMT 2010
Author: ribasushi
Date: 2010-03-21 06:52:01 +0000 (Sun, 21 Mar 2010)
New Revision: 9033
Modified:
DBIx-Class/0.08/branches/prefetch/lib/DBIx/Class/InflateColumn/DateTime.pm
Log:
Stop autovivifying
Modified: DBIx-Class/0.08/branches/prefetch/lib/DBIx/Class/InflateColumn/DateTime.pm
===================================================================
--- DBIx-Class/0.08/branches/prefetch/lib/DBIx/Class/InflateColumn/DateTime.pm 2010-03-20 08:41:30 UTC (rev 9032)
+++ DBIx-Class/0.08/branches/prefetch/lib/DBIx/Class/InflateColumn/DateTime.pm 2010-03-21 06:52:01 UTC (rev 9033)
@@ -136,16 +136,18 @@
}
}
- if ( defined $info->{extra}{timezone} ) {
- carp "Putting timezone into extra => { timezone => '...' } has been deprecated, ".
- "please put it directly into the '$column' column definition.";
- $info->{timezone} = $info->{extra}{timezone} unless defined $info->{timezone};
- }
+ if ($info->{extra}) {
+ if ( defined $info->{extra}{timezone} ) {
+ carp "Putting timezone into extra => { timezone => '...' } has been deprecated, ".
+ "please put it directly into the '$column' column definition.";
+ $info->{timezone} = $info->{extra}{timezone} unless defined $info->{timezone};
+ }
- if ( defined $info->{extra}{locale} ) {
- carp "Putting locale into extra => { locale => '...' } has been deprecated, ".
- "please put it directly into the '$column' column definition.";
- $info->{locale} = $info->{extra}{locale} unless defined $info->{locale};
+ if ( defined $info->{extra}{locale} ) {
+ carp "Putting locale into extra => { locale => '...' } has been deprecated, ".
+ "please put it directly into the '$column' column definition.";
+ $info->{locale} = $info->{extra}{locale} unless defined $info->{locale};
+ }
}
my $undef_if_invalid = $info->{datetime_undef_if_invalid};
More information about the Bast-commits
mailing list