Skip to content

Commit 8dbd10d

Browse files
committed
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
1 parent cf9fd80 commit 8dbd10d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/src/sgml/plpgsql.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.40 2004/07/11 21:48:24 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.41 2004/07/11 23:26:51 momjian Exp $
33
-->
44

55
<chapter id="plpgsql">
@@ -2957,7 +2957,7 @@ END;
29572957
$$ LANGUAGE plpgsql;
29582958

29592959

2960-
CREATE FUNCTION instr(varchar, varchar, varchar) RETURNS integer AS $$
2960+
CREATE FUNCTION instr(varchar, varchar, integer) RETURNS integer AS $$
29612961
DECLARE
29622962
string ALIAS FOR $1;
29632963
string_to_search ALIAS FOR $2;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy