From: Cédric Villemain Date: Sun, 22 Jan 2012 22:51:12 +0000 (+0100) Subject: Fix the createlang during init X-Git-Tag: 2.20.0~46^2~3 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=e5be34e9e5fc9b196b53cf80497cdbf2b3acf395;p=check_postgres.git Fix the createlang during init There was a copy-n-paste error, only affecting < 8.1 . --- diff --git a/t/CP_Testing.pm b/t/CP_Testing.pm index 6279322f0..f7d58d189 100644 --- a/t/CP_Testing.pm +++ b/t/CP_Testing.pm @@ -249,7 +249,7 @@ sub test_database_handle { $SQL = qq{SELECT * FROM pg_language WHERE lanname = '$lang'}; $res = qx{psql -Ax -qt -d postgres -q -h "$host" -c "$SQL"}; if ($res !~ /$lang/) { - my $createlang = $ENV{PGBINDIR} ? "$ENV{PGBINDIR}/createlang" : 'pg_ctl'; + my $createlang = $ENV{PGBINDIR} ? "$ENV{PGBINDIR}/createlang" : 'createlang'; $COM = qq{$createlang -d postgres -h "$host" $lang}; system $COM; }