mirror of
https://github.com/postgres/postgres.git
synced 2026-04-05 01:07:27 -04:00
Minor PL/PgSQL doc tweak: use current_timestamp rather than now() in
an example function.
This commit is contained in:
parent
9bd7ed828e
commit
d6707cb66e
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.78 2005/10/15 01:47:11 neilc Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.79 2005/10/21 05:11:23 neilc Exp $
|
||||
-->
|
||||
|
||||
<chapter id="plpgsql">
|
||||
|
|
@ -2838,7 +2838,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 := current_timestamp;
|
||||
NEW.last_user := current_user;
|
||||
RETURN NEW;
|
||||
END;
|
||||
|
|
|
|||
Loading…
Reference in a new issue