OSDN Git Service
(root)
/
pg-rex
/
syncrep.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bd7ed8
)
Minor PL/PgSQL doc tweak: use current_timestamp rather than now() in
author
Neil Conway
<neilc@samurai.com>
Fri, 21 Oct 2005 05:11:23 +0000
(
05:11
+0000)
committer
Neil Conway
<neilc@samurai.com>
Fri, 21 Oct 2005 05:11:23 +0000
(
05:11
+0000)
an example function.
doc/src/sgml/plpgsql.sgml
patch
|
blob
|
history
diff --git
a/doc/src/sgml/plpgsql.sgml
b/doc/src/sgml/plpgsql.sgml
index
5bf2518
..
dc5cea9
100644
(file)
--- a/
doc/src/sgml/plpgsql.sgml
+++ b/
doc/src/sgml/plpgsql.sgml
@@
-1,5
+1,5
@@
<!--
-$PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.7
8 2005/10/15 01:47:11
neilc Exp $
+$PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.7
9 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;