aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2023-08-29 18:13:11 +0200
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2023-08-29 18:13:11 +0200
commit8421f6bce16cd1d58106f47e48762319e7d22ab0 (patch)
tree3adfebc2bc27cf0655c4e6492e9e0e9eacc340b4
parentdb6d9891e8e4405f10d9b0bba1ebb6c51c3ab059 (diff)
downloadpostgresql-8421f6bce16cd1d58106f47e48762319e7d22ab0.tar.gz
postgresql-8421f6bce16cd1d58106f47e48762319e7d22ab0.zip
psql/t/001_basic: use locale-aware decimals in new test
As cd82e5c79d14 did. Otherwise, the test fails in locales that use decimal separators other than ".".
-rw-r--r--src/bin/psql/t/001_basic.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/t/001_basic.pl b/src/bin/psql/t/001_basic.pl
index 5398a1dbf3d..89aeec46e55 100644
--- a/src/bin/psql/t/001_basic.pl
+++ b/src/bin/psql/t/001_basic.pl
@@ -370,11 +370,11 @@ psql_fails_like(
psql_like(
$node,
- q{with x as (
+ sprintf(q{with x as (
select now()-backend_start AS howlong
from pg_stat_activity
where pid = pg_backend_pid()
- ) select 123 from x where howlong < '2 seconds' \watch i=0.5 m=2},
+ ) select 123 from x where howlong < '2 seconds' \watch i=%g m=2}, 0.5),
qr/^123$/,
'\watch, 2 minimum rows');