[Dbix-class] Storable freeze/thaw on a column?
Jess Robinson
castaway at desert-island.demon.co.uk
Tue Nov 28 18:36:31 GMT 2006
On Mon, 27 Nov 2006, Mike Friedman wrote:
> On 11/27/06, Jess Robinson <castaway at desert-island.demon.co.uk> wrote:
>>
>>
>> Except it won't for much longer, as we're making the values to/from
>> inflate/deflate insist on being blessed() objects.
>
>
> Why? That seems a bit draconian.
>
> Though I'm pretty sure one of them did already, so do freeze/thaw return
>> objects, or something?
>
>
> Storable::thaw() returns exactly what you serialized -- in my case unblessed
> hashrefs. But if you serialize a blessed object it will return that.
>
See my previous email, which requested people shout if they were using
non-blessed-references.
Basically, because a) half of it already did insist on blessing, and b)
I'd like it to pass through things like \'DEFAULT' directly to SQL::A and
not attempt to deflate them.
Jess
More information about the Dbix-class
mailing list