This patch fixes a small error in the Porting PL/SQL to PL/pgSQL

section where a instr function parameter is mistyped as varchar. It
works properly when changed to integer.

Michael Glaesemann
This commit is contained in:
Bruce Momjian 2004-07-11 23:26:51 +00:00
parent cf9fd800ec
commit 8dbd10d96d
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<!--
$PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.40 2004/07/11 21:48:24 momjian Exp $
$PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.41 2004/07/11 23:26:51 momjian Exp $
-->
<chapter id="plpgsql">
@ -2957,7 +2957,7 @@ END;
$$ LANGUAGE plpgsql;
CREATE FUNCTION instr(varchar, varchar, varchar) RETURNS integer AS $$
CREATE FUNCTION instr(varchar, varchar, integer) RETURNS integer AS $$
DECLARE
string ALIAS FOR $1;
string_to_search ALIAS FOR $2;