[Dbix-class] [PATCH] in_storage return value

Przemyslaw Kuznicki przemyslaw.kuznicki at eu.clara.net
Thu Oct 22 12:23:35 GMT 2009


Hi all,

According to the documentation for the in_storage method in DBIx::Class::Row 
http://search.cpan.org/~ribasushi/DBIx-Class/lib/DBIx/Class/Row.pm#in_storage

in_storage method should "Returns: 1|0"

In reality when row is not stored yet (e.g. returned by find_or_new method) or has been deleted the value returned by in_storage is undef.

Patch for DBIx/Class/Row.pm and tests attached.

Best Regards
Przemyslaw Kuznicki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: in_storage.patch
Type: text/x-patch
Size: 2993 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20091022/52168600/in_storage.bin


More information about the DBIx-Class mailing list