'char(2)' => { size => 2, data_type => 'character' },
'numeric(6, 3)' => { size => [6,3], data_type => 'numeric' },
'decimal(6, 3)' => { size => [6,3], data_type => 'numeric' },
+ 'float(24)' => { size => undef, data_type => 'real' },
+ 'float(53)' => { size => undef, data_type => 'double precision' },
+ 'float' => { size => undef, data_type => 'double precision' },
},
extra => {
create => [
my $test_count = 0;
+ my %seen_col_names;
+
while (my ($col_def, $expected_info) = each %$types) {
my $have_size = $col_def =~ /\(/ ? 1 : 0;
my $col_name = $type_alias . ($have_size ? '_with_size' : '');
+ $col_name .= $seen_col_names{$col_name} if $seen_col_names{$col_name}++;
+
$ddl .= " $col_name $col_def,\n";
$cols->{$col_name} = $expected_info;