From: Jason Etheridge Date: Tue, 23 Jul 2013 20:29:27 +0000 (-0400) Subject: handle ARRAY type X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5d05cad242ae331d30db4c08817b5ce547d151fc;p=working%2FEvergreen.git handle ARRAY type Signed-off-by: Jason Etheridge --- diff --git a/Open-ILS/src/sql/Pg/make-pgtap-tests.pl b/Open-ILS/src/sql/Pg/make-pgtap-tests.pl index 983efca3cc..8f0f91551c 100755 --- a/Open-ILS/src/sql/Pg/make-pgtap-tests.pl +++ b/Open-ILS/src/sql/Pg/make-pgtap-tests.pl @@ -90,6 +90,9 @@ foreach my $schema ( @schemas ) { if ($col_type eq 'character' && defined $col_character_maximum_length) { $col_type .= "($col_character_maximum_length)"; } + if ($col_type eq 'ARRAY' && defined $col_udt_name) { + $col_type = substr($col_udt_name,1) . '[]'; + } print "\n-- -- -- column " . $dbh->quote("$schema.$table.$column") . "\n\n"; print "SELECT has_column(\n";