mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Make clearer warning about using 'now' with DEFAULT:
SELECT CURRENT_TIMESTAMP; SELECT now(); SELECT TIMESTAMP 'now'; -- incorrect for use with DEFAULT
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.237 2005/01/28 23:12:59 tgl Exp $
|
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.238 2005/02/11 04:31:54 momjian Exp $
|
||||||
PostgreSQL documentation
|
PostgreSQL documentation
|
||||||
-->
|
-->
|
||||||
|
|
||||||
@ -5763,7 +5763,7 @@ SELECT timeofday();
|
|||||||
<programlisting>
|
<programlisting>
|
||||||
SELECT CURRENT_TIMESTAMP;
|
SELECT CURRENT_TIMESTAMP;
|
||||||
SELECT now();
|
SELECT now();
|
||||||
SELECT TIMESTAMP 'now';
|
SELECT TIMESTAMP 'now'; -- incorrect for use with DEFAULT
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user