Skip to content

Commit 8421f6b

Browse files
committed
psql/t/001_basic: use locale-aware decimals in new test
As cd82e5c did. Otherwise, the test fails in locales that use decimal separators other than ".".
1 parent db6d989 commit 8421f6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/psql/t/001_basic.pl

+2-2
Original file line numberDiff line numberDiff line change
@@ -370,11 +370,11 @@ sub psql_fails_like
370370

371371
psql_like(
372372
$node,
373-
q{with x as (
373+
sprintf(q{with x as (
374374
select now()-backend_start AS howlong
375375
from pg_stat_activity
376376
where pid = pg_backend_pid()
377-
) select 123 from x where howlong < '2 seconds' \watch i=0.5 m=2},
377+
) select 123 from x where howlong < '2 seconds' \watch i=%g m=2}, 0.5),
378378
qr/^123$/,
379379
'\watch, 2 minimum rows');
380380

0 commit comments

Comments
 (0)