my $col_type = $column_array->[1];
my $col_nullable = $column_array->[2];
my $col_default = $column_array->[3];
+ my $col_numeric_precision = $column_array->[4];
+ my $col_numeric_scale = $column_array->[5];
+ if ($col_type eq 'numeric' && defined $col_numeric_precision) {
+ $col_type .= "($col_numeric_precision";
+ if (defined $col_numeric_scale) {
+ $col_type .= ",$col_numeric_scale";
+ }
+ $col_type .= ')';
+ }
print "\n-- -- -- column " . $dbh->quote("$schema.$table.$column") . "\n\n";
print "SELECT has_column(\n";
print "\t" . $dbh->quote($schema) . ",\n";
column_name,
data_type,
is_nullable,
- column_default
+ column_default,
+ numeric_precision,
+ numeric_scale
FROM information_schema.columns
WHERE table_catalog = ?
AND table_schema = ?