Skip to content

Commit d6707cb

Browse files
author
Neil Conway
committed
Minor PL/PgSQL doc tweak: use current_timestamp rather than now() in
an example function.
1 parent 9bd7ed8 commit d6707cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/src/sgml/plpgsql.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.78 2005/10/15 01:47:11 neilc Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.79 2005/10/21 05:11:23 neilc Exp $
33
-->
44

55
<chapter id="plpgsql">
@@ -2838,7 +2838,7 @@ CREATE FUNCTION emp_stamp() RETURNS trigger AS $emp_stamp$
28382838
END IF;
28392839

28402840
-- Remember who changed the payroll when
2841-
NEW.last_date := now();
2841+
NEW.last_date := current_timestamp;
28422842
NEW.last_user := current_user;
28432843
RETURN NEW;
28442844
END;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy