From: Jason Etheridge Date: Tue, 23 Jul 2013 19:16:58 +0000 (-0400) Subject: handle ::text with column_default X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0e54479a0ead320487eb189ad3476fc176ec00cc;p=working%2FEvergreen.git handle ::text with column_default 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 2271b8f1f4..314645d134 100755 --- a/Open-ILS/src/sql/Pg/make-pgtap-tests.pl +++ b/Open-ILS/src/sql/Pg/make-pgtap-tests.pl @@ -66,6 +66,9 @@ foreach my $schema ( @schemas ) { my $col_type = $column_array->[1]; my $col_nullable = $column_array->[2]; my $col_default = $column_array->[3]; + if (defined $col_default && $col_default =~ /::text/) { + $col_default =~ s/^'(.*)'::text$/$1/; + } my $col_numeric_precision = $column_array->[4]; my $col_numeric_scale = $column_array->[5]; if ($col_type eq 'numeric' && defined $col_numeric_precision) {