Use now() rather than 'now' in an example in the PL/PgSQL docs. From David

Fetter and Ben Calvert.
This commit is contained in:
Neil Conway 2005-02-10 05:01:07 +00:00
parent 8f5b4c8c8c
commit 280cae35aa
1 changed files with 2 additions and 2 deletions

View 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;