From 5d05cad242ae331d30db4c08817b5ce547d151fc Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Tue, 23 Jul 2013 16:29:27 -0400 Subject: [PATCH] handle ARRAY type Signed-off-by: Jason Etheridge --- Open-ILS/src/sql/Pg/make-pgtap-tests.pl | 3 +++ 1 file changed, 3 insertions(+) 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"; -- 2.11.0