From be3982f9e4f090bedfdb9584a346d676193cfbf0 Mon Sep 17 00:00:00 2001 From: "David E. Wheeler" Date: Mon, 28 Jan 2013 11:50:36 -0800 Subject: [PATCH] Update patch for 8.1. --- compat/install-8.1.patch | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/compat/install-8.1.patch b/compat/install-8.1.patch index 245b6ee98..e7326bb0c 100644 --- a/compat/install-8.1.patch +++ b/compat/install-8.1.patch @@ -1,6 +1,6 @@ ---- sql/pgtap.sql.saf 2013-01-15 14:04:18.000000000 -0800 -+++ sql/pgtap.sql 2013-01-15 14:04:23.000000000 -0800 -@@ -2122,13 +2122,13 @@ +--- sql/pgtap.sql.saf 2013-01-28 11:47:39.000000000 -0800 ++++ sql/pgtap.sql 2013-01-28 11:47:45.000000000 -0800 +@@ -2113,13 +2113,13 @@ CREATE OR REPLACE FUNCTION _constraint ( NAME, NAME, CHAR, NAME[], TEXT, TEXT ) RETURNS TEXT AS $$ DECLARE @@ -18,7 +18,7 @@ END LOOP; IF array_upper(keys, 0) = 1 THEN have := 'No ' || $6 || ' constraints'; -@@ -2146,13 +2146,13 @@ +@@ -2137,13 +2137,13 @@ CREATE OR REPLACE FUNCTION _constraint ( NAME, CHAR, NAME[], TEXT, TEXT ) RETURNS TEXT AS $$ DECLARE @@ -36,7 +36,7 @@ END LOOP; IF array_upper(keys, 0) = 1 THEN have := 'No ' || $5 || ' constraints'; -@@ -5735,7 +5735,7 @@ +@@ -5739,7 +5739,7 @@ CREATE OR REPLACE FUNCTION _runem( text[], boolean ) RETURNS SETOF TEXT AS $$ DECLARE @@ -45,7 +45,7 @@ lbound int := array_lower($1, 1); BEGIN IF lbound IS NULL THEN RETURN; END IF; -@@ -5743,8 +5743,8 @@ +@@ -5747,8 +5747,8 @@ -- Send the name of the function to diag if warranted. IF $2 THEN RETURN NEXT diag( $1[i] || '()' ); END IF; -- Execute the tap function and return its results. @@ -56,7 +56,7 @@ END LOOP; END LOOP; RETURN; -@@ -5814,14 +5814,14 @@ +@@ -5818,14 +5818,14 @@ setup ALIAS FOR $3; teardown ALIAS FOR $4; tests ALIAS FOR $5; @@ -73,7 +73,7 @@ EXCEPTION -- Catch all exceptions and simply rethrow custom exceptions. This -- will roll back everything in the above block. -@@ -5836,15 +5836,15 @@ +@@ -5840,15 +5840,15 @@ IF verbos THEN RETURN NEXT diag_test_name(tests[i]); END IF; -- Run the setup functions. @@ -93,7 +93,7 @@ -- Remember how many failed and then roll back. num_faild := num_faild + num_failed(); -@@ -5859,7 +5859,7 @@ +@@ -5863,7 +5863,7 @@ END LOOP; -- Run the shutdown functions. @@ -102,7 +102,7 @@ -- Raise an exception to rollback any changes. RAISE EXCEPTION '__TAP_ROLLBACK__'; -@@ -5870,8 +5870,8 @@ +@@ -5874,8 +5874,8 @@ END IF; END; -- Finish up. @@ -113,7 +113,7 @@ END LOOP; -- Clean up and return. -@@ -7125,7 +7125,7 @@ +@@ -7133,7 +7133,7 @@ DECLARE rec RECORD; BEGIN