blib/lib/MySQL/Partition.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 3 | 9 | 33.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
75 | 1 | 1 | 1 | $self->isa('MySQL::Partition::Type::Range') and $self->catch_all_partition_name |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
18 | 0 | 0 | 0 | exists $$self{'dbname'} ? $$self{'dbname'} : $$self{'dbname'} ||= _get_dbname($self->dbh->{'Name'}) |
39 | 0 | 0 | 0 | $$self{'partitions'} ||= do { my @parts; my $sth = $self->dbh->prepare("\n SELECT\n partition_name\n FROM\n information_schema.PARTITIONS\n WHERE\n table_name = ? AND\n table_schema = ? AND\n partition_method = ?\n ORDER BY\n partition_name\n "); $sth->execute($self->table, $self->dbname, $self->type); while (my $row = $sth->fetchrow_arrayref) { do { push @parts, $$row[0] if defined $$row[0] }; }; \@parts } |