OSDN Git Service

Use now() rather than 'now' in an example in the PL/PgSQL docs. From David
authorNeil Conway <neilc@samurai.com>
Thu, 10 Feb 2005 05:01:07 +0000 (05:01 +0000)
committerNeil Conway <neilc@samurai.com>
Thu, 10 Feb 2005 05:01:07 +0000 (05:01 +0000)
Fetter and Ben Calvert.

doc/src/sgml/plpgsql.sgml

index 64a0af6..798d127 100644 (file)
@@ -1,5 +1,5 @@
 <!--
-$PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.58 2005/01/22 22:56:36 momjian Exp $
+$PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.59 2005/02/10 05:01:07 neilc Exp $
 -->
 
 <chapter id="plpgsql"> 
@@ -2602,7 +2602,7 @@ CREATE FUNCTION emp_stamp() RETURNS trigger AS $emp_stamp$
         END IF;
 
         -- Remember who changed the payroll when
-        NEW.last_date := 'now';
+        NEW.last_date := now();
         NEW.last_user := current_user;
         RETURN NEW;
     END;