# ----------------------------------------------------------
#
# ----------------------------------------------------------
-* Add param to _apply_default_value so that certain values can output without quotes (jgoulah)
+* parsing MySQL CURRENT_TIMESTAMP as scalar ref so it can be produced without quotes (jgoulah)
* Add ignore_opts parser arg (to ignore table options) in Parser::MySQL (jgoulah)
* Skip tests for buggy Spreadsheet::ParseExcel versions (rbo)
* Add support for skip tables parser arg in Parser::DBI::MySQL (jgoulah)
## They are special per Producer, and provide support for the old 'now()'
## default value exceptions
sub _apply_default_value {
- my (undef, $field_ref, $default, $exceptions, $noquote) = @_;
-
- my @noquote = (defined $noquote)?@$noquote:();
+ my (undef, $field_ref, $default, $exceptions) = @_;
if ($exceptions and ! ref $default) {
for (my $i = 0; $i < @$exceptions; $i += 2) {
}
}
- my $qc = (grep m/^$default$/, @noquote)?"":"'";
if (ref $default) {
$$field_ref .= " DEFAULT $$default";
} else {
- $$field_ref .= " DEFAULT $qc$default$qc";
+ $$field_ref .= " DEFAULT '$default'";
}
}