diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-10-09 04:15:38 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-10-09 04:15:38 +0000 |
commit | 0b3bca6c6f92722c9c4dc8ae69703b8a5cff363f (patch) | |
tree | bb12f562257b28dcfc3e89ada2e4eab0fc0893c1 /doc/src | |
parent | 7ecc40c2df27d9fe63f6e149f5daa5d11c06d984 (diff) | |
download | postgresql-0b3bca6c6f92722c9c4dc8ae69703b8a5cff363f.tar.gz postgresql-0b3bca6c6f92722c9c4dc8ae69703b8a5cff363f.zip |
Change plpgsql to depend on main parser's type-declaration grammar,
rather than having its own somewhat half-baked notion of what a type
declaration looks like. This is necessary now to ensure that plpgsql
will think a 'timestamp' variable has the same semantics as 'timestamp'
does in the main SQL grammar; and it should avoid divergences in future.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/plsql.sgml | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/doc/src/sgml/plsql.sgml b/doc/src/sgml/plsql.sgml index a2d2395f915..d7f1b99d1b4 100644 --- a/doc/src/sgml/plsql.sgml +++ b/doc/src/sgml/plsql.sgml @@ -1,5 +1,5 @@ <!-- -$Header: /cvsroot/pgsql/doc/src/sgml/Attic/plsql.sgml,v 2.40 2001/09/18 12:08:26 petere Exp $ +$Header: /cvsroot/pgsql/doc/src/sgml/Attic/plsql.sgml,v 2.41 2001/10/09 04:15:38 tgl Exp $ --> <chapter id="plpgsql"> @@ -229,7 +229,7 @@ END; re-create them. For example: <programlisting> drop function testfunc(integer); -create function testfunc(integer) return integer as ' +create function testfunc(integer) returns integer as ' .... end; ' language 'plpgsql'; @@ -360,7 +360,7 @@ END; Here are some examples of variable declarations: <programlisting> user_id INTEGER; -quantity NUMBER(5); +quantity NUMERIC(5); url VARCHAR; </programlisting> </para> @@ -437,7 +437,7 @@ END; <para> Using the <type>%TYPE</type> and <type>%ROWTYPE</type> attributes, you can declare variables with the same - data type or structure of another database item (e.g: a + data type or structure as another database item (e.g: a table field). </para> @@ -512,7 +512,7 @@ create function cs_refresh_one_mv(integer) returns integer as ' WHERE sort_key=key; IF NOT FOUND THEN - RAISE EXCEPTION ''View '' || key || '' not found''; + RAISE EXCEPTION ''View % not found'', key; RETURN 0; END IF; @@ -575,8 +575,7 @@ SELECT <replaceable>expression</replaceable> identifiers are substituted by parameters and the actual values from the variables are passed to the executor in the parameter array. All expressions used in a <application>PL/pgSQL</application> function are only prepared and - saved once. The only exception to this rule is an EXECUTE statement - if parsing of a query is needed each time it is encountered. + saved once. The only exception to this rule is an EXECUTE statement. </para> <para> |