App-Repository
view release on metacpan or search on metacpan
t/DBI-getset.t view on Meta::CPAN
is($hash->{state}, "GA", "get_hashes()->[0] state");
$hash = $hashes->[$#$hashes];
is($hash->{person_id}, 8, "get_hashes()->[n] person_id");
is($hash->{age}, 37, "get_hashes()->[n] age");
is($hash->{first_name}, "nick", "get_hashes()->[n] first_name");
is($hash->{gender}, "M", "get_hashes()->[n] gender");
is($hash->{state}, undef, "get_hashes()->[n] state");
eval {
$nrows = $rep->set("test_person", undef, "gender", "M");
print "updated $nrows rows. ?!? shouldn't ever get here!\n";
};
ok($@, "set() with undef params");
####################################################################
# Exercise the special implied where conditions
####################################################################
#my $rows2 = $rep->get_rows("test_person", {}, ["person_id","age","first_name","gender","state"]);
#foreach my $row (@$rows2) {
# print "ROW: [", join("|", map { defined $_ ? $_ : "undef" } @$row), "]\n";
#}
( run in 0.255 second using v1.01-cache-2.11-cpan-05444aca049 )