mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Fix a bug in input processing for the "interval" type. Previously,
"microsecond" and "millisecond" units were not considered valid input by themselves, which caused inputs like "1 millisecond" to be rejected erroneously. Update the docs, add regression tests, and backport to 8.2 and 8.1
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.163.2.3 2006/08/21 16:24:02 tgl Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.163.2.4 2007/05/29 04:59:44 neilc Exp $
|
||||
-->
|
||||
|
||||
<chapter id="datatype">
|
||||
@ -1823,7 +1823,8 @@ January 8 04:05:06 1999 PST
|
||||
</programlisting>
|
||||
|
||||
Where: <replaceable>quantity</> is a number (possibly signed);
|
||||
<replaceable>unit</> is <literal>second</literal>,
|
||||
<replaceable>unit</> is <literal>microsecond</literal>,
|
||||
<literal>millisecond</literal>, <literal>second</literal>,
|
||||
<literal>minute</literal>, <literal>hour</literal>, <literal>day</literal>,
|
||||
<literal>week</literal>, <literal>month</literal>, <literal>year</literal>,
|
||||
<literal>decade</literal>, <literal>century</literal>, <literal>millennium</literal>,
|
||||
|
Reference in New Issue
Block a user