aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2016-07-26 21:17:38 +0900
committerFujii Masao <fujii@postgresql.org>2016-07-26 21:17:38 +0900
commitc1a95425780ef8e72c2f65504a7e90bcb223ca4a (patch)
tree0ce63fe672fc8d46cc2420f8ae910b2e1ab16bf6 /src
parent43c2c404978a89e9e5ea51aca5759a35f3f302f9 (diff)
downloadpostgresql-c1a95425780ef8e72c2f65504a7e90bcb223ca4a.tar.gz
postgresql-c1a95425780ef8e72c2f65504a7e90bcb223ca4a.zip
Fix improper example of using psql() function in TAP tests documentation.
In an example of TAP test scripts, there is the test checking whether the result of the query is expected or not. But, in previous example, the exit code of psql instead of the query result was checked unexpectedly. Author: Ildar Musin
Diffstat (limited to 'src')
-rw-r--r--src/test/perl/README2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/perl/README b/src/test/perl/README
index 9eae159db86..36d41203ce8 100644
--- a/src/test/perl/README
+++ b/src/test/perl/README
@@ -41,7 +41,7 @@ against them and evaluate the results. For example:
$node->init;
$node->start;
- my $ret = $node->psql('postgres', 'SELECT 1');
+ my $ret = $node->safe_psql('postgres', 'SELECT 1');
is($ret, '1', 'SELECT 1 returns 1');
$node->stop('fast');