2009/1/29 Carl Franks <[email protected]>: > Is it okay to use $result_source->column_info('name')->{_inflate_info} > to test whether a column is inflatable / deflatable? > It seems a bit too reliant on internals, to me. > > Or should there be a has_inflatable_column('name') method? > > (and is that what it should be called? do we really also need a > 'has_deflatable_column' too?) > > If someone makes a call, I'll write up a patch for it.
Attached is a patch against 0.08/trunk -r6358 set_inflatable_column() already had code to explicitly support calling it on non-inflatable columns. This patch adds tests for that. It also changes get_inflatable_column() to also support being called on non-inflatable columns, plus tests. Carl
get_inflated_column.patch
Description: Binary data
_______________________________________________ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/[email protected]
