On 3/22/06 9:43 PM, Sean Davis wrote: > No error. I just got truncated insertion (presumably from a \000?).
Ah, yeah, it does seem to truncate on null bytes: my $o1 = Foo->new(b => "\001\000\003"); $o1->save; my $o2 = Foo->new(id => $o1->id); $o2->load; print unpack('H*', $o1->b), "\n"; # 010203 print unpack('H*', $o2->b), "\n"; # 01 ^^^^ Gone! That smells like a DBD::Pg bug to me. (Perl certainly has no problems with strings that have null bytes in them.) -John ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object