regression of inserts into a Postgres / ::Replicated combination
- Missing dependency check in t/60core.t (RT#62635)
- Fix regressions in IC::DT registration logic
+ - Switch all serialization to use Storable::nfreeze for portable
+ architecture independent ice
0.08124 2010-10-28 14:23 (UTC)
* New Features / Changes
These components provide extra functionality beyond
basic functionality that you can't live without.
-L<DBIx::Class::Serialize::Storable> - Hooks for Storable freeze/thaw.
+L<DBIx::Class::Serialize::Storable> - Hooks for Storable nfreeze/thaw.
L<DBIx::Class::CDBICompat> - Class::DBI Compatibility layer.
delete $to_serialize->{schema};
$to_serialize->{_frozen_from_class} = $self->schema->class($self->source_moniker);
- return (Storable::freeze($to_serialize));
+ return (Storable::nfreeze($to_serialize));
}
=head2 STORABLE_thaw
=head2 freeze
-This doesn't actually do anything more than call L<Storable/freeze>, it is just
+This doesn't actually do anything more than call L<Storable/nfreeze>, it is just
provided here for symmetry.
=cut
sub freeze {
- return Storable::freeze($_[1]);
+ return Storable::nfreeze($_[1]);
}
=head2 dclone
# Dynamic values, easy to recalculate
delete $to_serialize->{$_} for qw/related_resultsets _inflated_column/;
- return (Storable::freeze($to_serialize));
+ return (Storable::nfreeze($to_serialize));
}
sub STORABLE_thaw {
=head1 NAME
- DBIx::Class::Serialize::Storable - hooks for Storable freeze/thaw
+ DBIx::Class::Serialize::Storable - hooks for Storable nfreeze/thaw
=head1 SYNOPSIS
use strict;
-use warnings;
+use warnings;
use Test::More;
use Test::Exception;
use lib qw(t/lib);
use DBICTest;
-use Storable qw(dclone freeze thaw);
+use Storable qw(dclone freeze nfreeze thaw);
my $schema = DBICTest->init_schema();
"freeze/thaw_func" => sub {
thaw(freeze($_[0]));
},
+ "nfreeze/thaw_func" => sub {
+ thaw(nfreeze($_[0]));
+ },
);
plan tests => (11 * keys %stores);
my $copy;
my $artist = $schema->resultset('Artist')->find(1);
-
+
# Test that the procedural versions will work if there's a registered
# schema as with CDBICompat objects and that the methods work
# without.