Commit 8dbd10d9 authored by Bruce Momjian's avatar Bruce Momjian

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
parent cf9fd800
<!-- <!--
$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"> <chapter id="plpgsql">
...@@ -2957,7 +2957,7 @@ END; ...@@ -2957,7 +2957,7 @@ END;
$$ LANGUAGE plpgsql; $$ LANGUAGE plpgsql;
CREATE FUNCTION instr(varchar, varchar, varchar) RETURNS integer AS $$ CREATE FUNCTION instr(varchar, varchar, integer) RETURNS integer AS $$
DECLARE DECLARE
string ALIAS FOR $1; string ALIAS FOR $1;
string_to_search ALIAS FOR $2; string_to_search ALIAS FOR $2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment