From a93bf4503ffc6d7cd6243a6324fb2ef206b10adf Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 14 Oct 2005 11:47:57 +0000 Subject: Allow times of 24:00:00 to match rounding behavior: regression=# select '23:59:59.9'::time(0); time ---------- 24:00:00 (1 row) This is bad because: regression=# select '24:00:00'::time(0); ERROR: date/time field value out of range: "24:00:00" The last example now works. --- doc/src/sgml/datatype.sgml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml index 48caaa2994f..0d4819e8094 100644 --- a/doc/src/sgml/datatype.sgml +++ b/doc/src/sgml/datatype.sgml @@ -1,5 +1,5 @@ @@ -1368,7 +1368,7 @@ SELECT b, char_length(b) FROM test2; 8 bytes times of day only 00:00:00.00 - 23:59:59.99 + 24:00:00 1 microsecond / 14 digits @@ -1376,7 +1376,7 @@ SELECT b, char_length(b) FROM test2; 12 bytes times of day only, with time zone 00:00:00.00+12 - 23:59:59.99-12 + 24:00:00-12 1 microsecond / 14 digits -- cgit v1.2.3