Make clearer warning about using 'now' with DEFAULT:
authorBruce Momjian <bruce@momjian.us>
Fri, 11 Feb 2005 04:31:54 +0000 (04:31 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 11 Feb 2005 04:31:54 +0000 (04:31 +0000)
SELECT CURRENT_TIMESTAMP;
SELECT now();
SELECT TIMESTAMP 'now';  -- incorrect for use with DEFAULT

doc/src/sgml/func.sgml

index 099f2c4ae9063f3015ded2f53eb2cf238d86d09d..8a862b0027c599b2ba007493328451cdc89f5288 100644 (file)
@@ -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
 -->
 
@@ -5763,7 +5763,7 @@ SELECT timeofday();
 <programlisting>
 SELECT CURRENT_TIMESTAMP;
 SELECT now();
-SELECT TIMESTAMP 'now';
+SELECT TIMESTAMP 'now';  -- incorrect for use with DEFAULT
 </programlisting>
    </para>