index b6face58e396a77e2e9842d3c100aeb3876f8ace..f4975464f6a54ad36d8231c5387dd85d6ee2b8cb 100644 (file)
Type | func
\pset tuples_only false
--- test numericlocale (not too interesting in C locale, but ...)
+-- test numericlocale (as best we can without control of psql's locale)
\pset format aligned
\pset expanded off
\pset numericlocale true
-select n, -n as m, n * 1000 + 111.1111 as x, '1e90'::float8 as f
+select n, -n as m, n * 111 as x, '1e90'::float8 as f
from generate_series(0,3) n;
- n | m | x | f
----+----+------------+-------
- 0 | 0 | 111.1111 | 1e+90
- 1 | -1 | 1,111.1111 | 1e+90
- 2 | -2 | 2,111.1111 | 1e+90
- 3 | -3 | 3,111.1111 | 1e+90
+ n | m | x | f
+---+----+-----+-------
+ 0 | 0 | 0 | 1e+90
+ 1 | -1 | 111 | 1e+90
+ 2 | -2 | 222 | 1e+90
+ 3 | -3 | 333 | 1e+90
(4 rows)
\pset numericlocale false
index bfe02d12be0d7e4b2867d501205ca7ad09e8d001..9ac6c2080419da097a99d95fc55cb3f44e343370 100644 (file)
\df exp
\pset tuples_only false
--- test numericlocale (not too interesting in C locale, but ...)
+-- test numericlocale (as best we can without control of psql's locale)
\pset format aligned
\pset expanded off
\pset numericlocale true
-select n, -n as m, n * 1000 + 111.1111 as x, '1e90'::float8 as f
+select n, -n as m, n * 111 as x, '1e90'::float8 as f
from generate_series(0,3) n;
\pset numericlocale false