line |
true |
false |
branch |
25
|
0 |
0 |
@_ == 1 ? : |
27
|
0 |
0 |
unless my $dbh = $args{'dbh'} |
33
|
0 |
0 |
if (ref $args{'tables'} eq 'ARRAY') { } |
|
0 |
0 |
elsif ($args{'tables'}) { } |
42
|
0 |
0 |
unless my $pkg = $args{'pkg'} |
50
|
0 |
0 |
unless my $db_type = $$dbh{'Driver'}{'Name'} |
51
|
0 |
0 |
unless my $driver = {db2 => 'DB2', mysql => 'MySQL', odbc => 'SQLServer', oracle => 'Oracle', pg => 'PostgreSQL', sqlite => 'SQLite', sybase => 'Sybase'}->{lc $db_type} |
52
|
0 |
0 |
if $driver |
53
|
0 |
0 |
if $args{'default_unsigned'} |
54
|
0 |
0 |
if $args{'default_not_null'} |
57
|
0 |
0 |
if ($args{'table_options'}) |
103
|
0 |
0 |
if ($$column_info{'MYSQL_TYPE_NAME'}) |
111
|
0 |
0 |
if (lc($type) =~ /^(enum|set)$/) |
116
|
0 |
0 |
if $opt{'signed'} |
117
|
0 |
0 |
if $opt{'unsigned'} and not $$args{'default_unsigned'} |
119
|
0 |
0 |
if (defined $column_info->column_size) |
122
|
0 |
0 |
if (lc $type eq 'decimal') { } |
|
0 |
0 |
elsif (lc($type) =~ /^(enum|set)$/) { } |
|
0 |
0 |
elsif (lc $type eq 'varchar' and $column_info->column_size == 255) { } |
|
0 |
0 |
elsif (lc($type) =~ /^(int|integer)$/ and $opt{'unsigned'} && $column_info->column_size == 10 || !$opt{'unsigned'} && $column_info->column_size == 11) { } |
|
0 |
0 |
elsif ($$column_info{'MYSQL_TYPE_NAME'} and not $$column_info{'MYSQL_TYPE_NAME'} =~ $column_info->column_size) { } |
151
|
0 |
0 |
if $column_size |
154
|
0 |
0 |
if $column_info->nullable |
155
|
0 |
0 |
unless $column_info->nullable or $$args{'default_not_null'} |
157
|
0 |
0 |
if (defined $column_info->column_def) |
160
|
0 |
0 |
if ($type =~ /^(TIMESTAMP|DATETIME)$/ and $column_def eq 'CURRENT_TIMESTAMP') { } |
168
|
0 |
0 |
if ($opt{'auto_increment'} or $$args{'dbh'}{'Driver'}{'Name'} eq 'mysql' and $$column_info{'MYSQL_IS_AUTO_INCREMENT'}) |
195
|
0 |
0 |
if ($fk->fkcolumn_name eq sprintf('%s_id', $fk->pktable_name)) { } |
|
0 |
0 |
elsif ($fk->fkcolumn_name eq 'id' and $fk->pkcolumn_name eq sprintf('%s_id', $fk->fktable_name)) { } |
|
0 |
0 |
elsif ($fk->pktable_name and $fk->pkcolumn_name) { } |
202
|
0 |
0 |
if ($index_key->column_name eq $fk->pkcolumn_name) |
203
|
0 |
0 |
$index_key->non_unique ? : |
225
|
0 |
0 |
if (lc $index_name eq 'primary') { } |
230
|
0 |
0 |
if @column_names == 1 and $fkcolumn_map{$column_names[0]} |
235
|
0 |
0 |
$statistics_list[0]->non_unique ? : |
|
0 |
0 |
$statistics_list[0]->non_unique && $statistics_list[0]->type && lc $statistics_list[0]->type ne 'btree' ? : |
242
|
0 |
0 |
if ($ret_primary_key or $ret_index_key or $ret_foreign_key) |
244
|
0 |
0 |
if $ret_primary_key |
245
|
0 |
0 |
if $ret_index_key |
246
|
0 |
0 |
if $ret_foreign_key |
257
|
0 |
0 |
if ($$dbh{'Driver'}{'Name'} eq 'mysql') { } |
308
|
0 |
0 |
@_ == 1 ? : |