blib/lib/SQL/Translator/Producer/MySQL.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 75 | 102 | 73.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
243 | 372 | 110 | 10 | not $size[0] and $f->data_type =~ /char$/ |
395 | 4 | 0 | 2 | exists $extra->{'mysql_algorithm'} and defined(my $algorithm = $extra->{'mysql_algorithm'}) |
399 | 4 | 0 | 2 | exists $extra->{'mysql_definer'} and defined(my $user = $extra->{'mysql_definer'}) |
403 | 4 | 0 | 2 | exists $extra->{'mysql_security'} and defined(my $security = $extra->{'mysql_security'}) |
515 | 65 | 0 | 0 | $mysql_table_type and not $table_type_defined |
549 | 212 | 67 | 24 | $data_type =~ /char/i and $size[0] > 255 |
551 | 0 | 4 | 2 | $size[0] and $size[0] >= 12 |
0 | 2 | 2 | $size[0] and $size[0] <= 1 | |
569 | 6 | 12 | 6 | $size[0] <= 65535 and $mysql_version >= "5.000003" |
588 | 308 | 3 | 0 | $data_type =~ /(double|float)/ and scalar @size == 1 |
594 | 49 | 62 | 184 | defined $size[0] and $size[0] > 0 |
111 | 10 | 174 | defined $size[0] and $size[0] > 0 and not grep((lc $data_type eq $_), @no_length_attr) | |
761 | 0 | 6 | 28 | defined $c->name && $c->name |
935 | 8 | 24 | 3 | $diff_hash->{'rename_table'} and @{$diff_hash->{'rename_table'};} |
line | l | !l | condition |
---|---|---|---|
228 | 155 | 25 | $schema->get_table($c->$meth) || (next) |
272 | 7 | 15 | $translator->show_warnings || 0 |
274 | 2 | 20 | parse_mysql_version($producer_args->{'mysql_version'}, 'perl') || 0 |
481 | 42 | 18 | generate_table_options($table, $options) || '' |
540 | 12 | 299 | $extra{'list'} || [] |
545 | 42 | 269 | $options->{'mysql_version'} || 0 |
742 | 0 | 154 | $options->{'leave_name'} || undef |
841 | 5 | 0 | generate_table_options($to_table, $options) || '' |
981 | 90 | 0 | shift() || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
192 | 239 | 0 | 0 | $value || $extra_type |
257 | 83 | 8 | 0 | $quoting_generator ||= "SQL::Translator::Generator::DDL::MySQL"->new |
368 | 5 | 0 | normalize_quote_options($options) ? $quoting_generator ||= "SQL::Translator::Generator::DDL::MySQL"->new : $nonquoting_generator ||= "SQL::Translator::Generator::DDL::MySQL"->new("quote_chars", []) | |
275 | 0 | 22 | 0 | $producer_args->{'mysql_max_id_length'} || $DEFAULT_MAX_ID_LENGTH |
467 | 41 | 61 | 32 | $indexed_fields{($c->fields)[0]} or $c->type ne "FOREIGN KEY" |
499 | 47 | 0 | 12 | uc $key eq "ENGINE" or uc $key eq "TYPE" |
594 | 4 | 12 | 295 | lc $data_type eq "enum" or lc $data_type eq "set" |
611 | 3 | 6 | 924 | $extra{$qual} || $extra{uc $qual} |
615 | 24 | 0 | 909 | $extra{$qual} || $extra{uc $qual} |
687 | 43 | 4 | 0 | $options->{'max_id_length'} || $DEFAULT_MAX_ID_LENGTH |
697 | 4 | 0 | 0 | $index->name || $index->fields |
761 | 18 | 10 | 0 | $options->{'max_id_length'} || $DEFAULT_MAX_ID_LENGTH |
771 | 45 | 8 | 0 | $options->{'max_id_length'} || $DEFAULT_MAX_ID_LENGTH |
821 | 0 | 2 | 0 | $options->{'max_id_length'} || $DEFAULT_MAX_ID_LENGTH |