1
0
mirror of https://github.com/postgres/postgres.git synced 2025-12-10 14:22:35 +03:00

Display only 9 subsecond digits instead of 10 for time values, for

consistency and to prevent rounding for days < 30.  Also round off all
trailing zeros, rather than leaving an even number of digits.
This commit is contained in:
Bruce Momjian
2005-05-27 21:31:23 +00:00
parent 5dafb69e17
commit d4b50caf25
3 changed files with 25 additions and 28 deletions

View File

@@ -205,62 +205,62 @@ SET DateStyle = 'ISO';
-- As of 7.4, allow time without time zone having a time zone specified
SELECT time without time zone '040506.789+08';
time
---------------
04:05:06.7890
--------------
04:05:06.789
(1 row)
SELECT time without time zone '040506.789-08';
time
---------------
04:05:06.7890
--------------
04:05:06.789
(1 row)
SELECT time without time zone 'T040506.789+08';
time
---------------
04:05:06.7890
--------------
04:05:06.789
(1 row)
SELECT time without time zone 'T040506.789-08';
time
---------------
04:05:06.7890
--------------
04:05:06.789
(1 row)
SELECT time with time zone '040506.789+08';
timetz
------------------
04:05:06.7890+08
-----------------
04:05:06.789+08
(1 row)
SELECT time with time zone '040506.789-08';
timetz
------------------
04:05:06.7890-08
-----------------
04:05:06.789-08
(1 row)
SELECT time with time zone 'T040506.789+08';
timetz
------------------
04:05:06.7890+08
-----------------
04:05:06.789+08
(1 row)
SELECT time with time zone 'T040506.789-08';
timetz
------------------
04:05:06.7890-08
-----------------
04:05:06.789-08
(1 row)
SELECT time with time zone 'T040506.789 +08';
timetz
------------------
04:05:06.7890+08
-----------------
04:05:06.789+08
(1 row)
SELECT time with time zone 'T040506.789 -08';
timetz
------------------
04:05:06.7890-08
-----------------
04:05:06.789-08
(1 row)
SET DateStyle = 'Postgres, MDY';