aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2010-07-25 08:30:42 +0000
committerPeter Eisentraut <peter_e@gmx.net>2010-07-25 08:30:42 +0000
commitedff75bef809629c197c27b23f57baa36330d12e (patch)
treef07a29b8430ef54b02d3d940aa68cc1201e34707 /doc/src
parent8af787ea24916439c7c2d8086a577f4bf9a4bc04 (diff)
downloadpostgresql-edff75bef809629c197c27b23f57baa36330d12e.tar.gz
postgresql-edff75bef809629c197c27b23f57baa36330d12e.zip
Add INSERT statement to example so that it can be reproduced
from John Gage
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/xfunc.sgml4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/src/sgml/xfunc.sgml b/doc/src/sgml/xfunc.sgml
index b2795c2cf09..fcbf6407298 100644
--- 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.149 2010/05/30 18:10:40 tgl Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/xfunc.sgml,v 1.150 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;