Fix locale-dependent test case.
Tom Lane <tgl@sss.pgh.pa.us>
Fix locale-dependent test case. psql parses the interval argument of \watch with locale-dependent strtod(). In commit 00beecfe8 I added a test case that exercises a fractional interval, but I hard-coded 0.01 which doesn't work in locales where the radix point isn't ".". We don't want to change this longstanding parsing behavior, so fix the test case to generate a suitably locale-aware spelling. Report and patch by Alexander Korotkov. Discussion: https://postgr.es/m/CAPpHfdv+10Uk6FWjsh3+ju7kHYr76LaRXbYayXmrM7FBU-=Hgg@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/psql/t/001_basic.pl | modified | +3 −1 |
Discussion
- pgsql: psql: add an optional execution-count limit to \watch. 16 messages · 2023-04-06 → 2024-04-27