Show default value when adding a row

This commit is contained in:
Jamie Cameron
2010-11-28 13:47:22 -08:00
parent 2ed6f60a9a
commit 1e7ccd430e

View File

@@ -258,7 +258,9 @@ if ($total || $in{'new'}) {
# Add an empty row for inserting
$realrows = scalar(@data);
if ($in{'new'}) {
push(@data, [ map { undef } @str ]);
push(@data, [ map { $_->{'default'} eq 'NULL' ? '' :
$_->{'default'} eq 'CURRENT_TIMESTAMP' ? '':
$_->{'default'} } @str ]);
$row{$realrows} = 1;
}