Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2ddac94

Browse files
committed
Add documentation example of using interval multiplication with 'days'.
Backpatch to 8.1.X.
1 parent 3086f6e commit 2ddac94

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/src/sgml/func.sgml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.299 2005/12/21 16:02:24 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.300 2005/12/21 23:22:55 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -5207,6 +5207,12 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
52075207
<entry><literal>interval '00:15:00'</literal></entry>
52085208
</row>
52095209

5210+
<row>
5211+
<entry> <literal>*</literal> </entry>
5212+
<entry><literal>21 * interval '1 day'</literal></entry>
5213+
<entry><literal>interval '21 days'</literal></entry>
5214+
</row>
5215+
52105216
<row>
52115217
<entry> <literal>*</literal> </entry>
52125218
<entry><literal>double precision '3.5' * interval '1 hour'</literal></entry>

0 commit comments

Comments
 (0)