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:
8af787e
)
Add INSERT statement to example so that it can be reproduced
author
Peter Eisentraut
<peter_e@gmx.net>
Sun, 25 Jul 2010 08:30:42 +0000
(08:30 +0000)
committer
Peter Eisentraut
<peter_e@gmx.net>
Sun, 25 Jul 2010 08:30:42 +0000
(08:30 +0000)
from John Gage
doc/src/sgml/xfunc.sgml
patch
|
blob
|
history
diff --git
a/doc/src/sgml/xfunc.sgml
b/doc/src/sgml/xfunc.sgml
index
b2795c2
..
fcbf640
100644
(file)
--- a/
doc/src/sgml/xfunc.sgml
+++ b/
doc/src/sgml/xfunc.sgml
@@
-1,4
+1,4
@@
-<!-- $PostgreSQL: pgsql/doc/src/sgml/xfunc.sgml,v 1.1
49 2010/05/30 18:10:40 tgl
Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/xfunc.sgml,v 1.1
50 2010/07/25 08:30:42 petere
Exp $ -->
<sect1 id="xfunc">
<title>User-Defined Functions</title>
@@
-293,6
+293,8
@@
CREATE TABLE emp (
cubicle point
);
+INSERT INTO emp VALUES ('Bill', 4200, 45, '(2,1)');
+
CREATE FUNCTION double_salary(emp) RETURNS numeric AS $$
SELECT $1.salary * 2 AS salary;
$$ LANGUAGE SQL;