Fix $rs->populate with column name array but no row data
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Fri, 1 Aug 2014 14:17:21 +0000 (15:17 +0100)
committerPeter Rabbitson <ribasushi@cpan.org>
Tue, 5 Aug 2014 11:46:06 +0000 (13:46 +0200)
commit277e30142fc9da75bd323bc6b21267aa32523287
tree1721b57b37743b1d74f38ecf94809bd14636e610
parent2a6dda4b4b591e4da531d6c78ff9dc9e359d5fd9
Fix $rs->populate with column name array but no row data

Two regressions for both context types snuck in during the the big populate()
rewrite d0cefd99

- In scalar context the return value incorrectly went from () to []
- In void context an empty $data was handed to ::Storage::_insert_bulk
lib/DBIx/Class/ResultSet.pm
t/100populate.t
t/101populate_rs.t