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

Appearance settings

Commit 8421f6b

Browse filesBrowse 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
Copy full SHA for 8421f6b

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

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

Copy file name to clipboardExpand all lines: src/bin/psql/t/001_basic.pl
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.