From 0e54479a0ead320487eb189ad3476fc176ec00cc Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Tue, 23 Jul 2013 15:16:58 -0400 Subject: [PATCH] handle ::text with column_default 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 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) { -- 2.11.0