Fix psql command path to avoid test failure.
authorBo Peng <pengbo@sraoss.co.jp>
Thu, 23 Sep 2021 11:44:27 +0000 (20:44 +0900)
committerBo Peng <pengbo@sraoss.co.jp>
Thu, 23 Sep 2021 11:46:46 +0000 (20:46 +0900)
src/test/regression/tests/071.execute_and_deallocate/test.sh

index 925347bc84a46adeb4ed9a60034ae8b21ba9368b..834e3c055197fb1dd491296d3e686f7fb8c5f062 100755 (executable)
@@ -6,6 +6,7 @@
 WHOAMI=`whoami`
 source $TESTLIBS
 TESTDIR=testdir
+PSQL=$PGBIN/psql
 num_tests=6
 success_count=0
 
@@ -36,14 +37,14 @@ do
        sleep 1
 
        # run test1 select query
-       psql -p 11000 test <<EOF
+       $PSQL -p 11000 test <<EOF
 PREPARE test1 AS SELECT 1;
 EXECUTE test1;
 DEALLOCATE test1;
 EOF
 
        # run test2 update query
-       psql -p 11000 test <<EOF
+       $PSQL -p 11000 test <<EOF
 CREATE TABLE test_tbl(id int, name text);
 PREPARE test2 AS UPDATE test_tbl SET id =2;
 EXECUTE test2;