projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db6d989
)
psql/t/001_basic: use locale-aware decimals in new test
author
Alvaro Herrera
<
[email protected]
>
Tue, 29 Aug 2023 16:13:11 +0000
(18:13 +0200)
committer
Alvaro Herrera
<
[email protected]
>
Tue, 29 Aug 2023 16:13:11 +0000
(18:13 +0200)
As
cd82e5c79d14
did. Otherwise, the test fails in locales that use
decimal separators other than ".".
src/bin/psql/t/001_basic.pl
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/t/001_basic.pl
b/src/bin/psql/t/001_basic.pl
index 5398a1dbf3db9ee82ae078ea67766de9edef4d53..89aeec46e553ec3973e0660fadfa075259a10935 100644
(file)
--- 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');