Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8421f6b

Browse files
committed
psql/t/001_basic: use locale-aware decimals in new test
Ascd82e5c did. Otherwise, the test fails in locales that usedecimal separators other than ".".
1 parentdb6d989 commit8421f6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp