From: Bruce Momjian Date: Sun, 11 Jul 2004 23:26:51 +0000 (+0000) Subject: This patch fixes a small error in the Porting PL/SQL to PL/pgSQL X-Git-Tag: REL8_0_0BETA1~232 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8dbd10d96df3b497e080d9e0d2a0e0d9df34efc3;p=postgresql 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 --- diff --git a/doc/src/sgml/plpgsql.sgml b/doc/src/sgml/plpgsql.sgml index 91eb0f2972..b30cc7e83f 100644 --- a/doc/src/sgml/plpgsql.sgml +++ b/doc/src/sgml/plpgsql.sgml @@ -1,5 +1,5 @@ @@ -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;