diff options
author | Bruce Momjian <bruce@momjian.us> | 2006-05-21 19:56:41 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2006-05-21 19:56:41 +0000 |
commit | 583a472f7b02b0d2b99462addff060eb551465cf (patch) | |
tree | 9440b0310a25ef66b865957c861c6eac8e246fee /src/tutorial | |
parent | 506747337bc94a0f063cf36500e6cf5bc204c5be (diff) |
Change \' to '', for SQL standards compliance. Backpatch to 7.3, 7.4,
and 8.0. Later releases already patched.
Diffstat (limited to 'src/tutorial')
-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 8438e6daece..b2d7060a783 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 -- --- $Id: funcs.source,v 1.5 2001/10/26 20:45:33 tgl Exp $ +-- $Id: funcs.source,v 1.5.4.1 2006/05/21 19:56:41 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 |