diff options
author | Bruce Momjian <bruce@momjian.us> | 2006-05-11 19:21:14 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2006-05-11 19:21:14 +0000 |
commit | ad985756174287faf2ef596caed8afab0aca2f97 (patch) | |
tree | 51d8e9ad29fafda688e980884884bace9aafb11e /src/tutorial/funcs.source | |
parent | 637028afe17b9616d279d13d9fc5d6df1ecf369b (diff) | |
download | postgresql-ad985756174287faf2ef596caed8afab0aca2f97.tar.gz postgresql-ad985756174287faf2ef596caed8afab0aca2f97.zip |
Use SQL standard '' rather than \' for tutorial/sample code.
Backpatch to 8.1.X.
Diffstat (limited to 'src/tutorial/funcs.source')
-rw-r--r-- | src/tutorial/funcs.source | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tutorial/funcs.source b/src/tutorial/funcs.source index 919ec7de28d..32dd50c2abe 100644 --- a/src/tutorial/funcs.source +++ b/src/tutorial/funcs.source @@ -6,7 +6,7 @@ -- -- Copyright (c) 1994-5, Regents of the University of California -- --- $PostgreSQL: pgsql/src/tutorial/funcs.source,v 1.8 2006/02/27 16:09:50 petere Exp $ +-- $PostgreSQL: pgsql/src/tutorial/funcs.source,v 1.9 2006/05/11 19:21:14 momjian Exp $ -- --------------------------------------------------------------------------- @@ -76,10 +76,10 @@ WHERE EMP.cubicle ~= '(2,1)'::point; -- columns of EMP. CREATE FUNCTION new_emp() RETURNS EMP - AS 'SELECT \'None\'::text AS name, + AS 'SELECT ''None''::text AS name, 1000 AS salary, 25 AS age, - \'(2,2)\'::point AS cubicle' + ''(2,2)''::point AS cubicle' LANGUAGE SQL; -- you can then project a column out of resulting the tuple by using the |