[Dbix-class] [PATCH] in_storage return value

Peter Rabbitson rabbit+dbic at rabbit.us
Thu Nov 12 00:40:34 GMT 2009


Przemyslaw Kuznicki wrote:
> 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.
> 

Applied with modifications http://dev.catalyst.perl.org/svnweb/bast/revision?rev=7861

Cheers



More information about the DBIx-Class mailing list