Fix a Oracle-compatible instr function in the documentation - Mailing list pgsql-hackers

From Yugo Nagata
Subject Fix a Oracle-compatible instr function in the documentation
Date
Msg-id 20171229191705.c0b43a8c.nagata@sraoss.co.jp
Whole thread Raw
Responses Re: Fix a Oracle-compatible instr function in thedocumentation  (Tatsuo Ishii <ishii@sraoss.co.jp>)
Re: Fix a Oracle-compatible instr function in thedocumentation  (Tatsuo Ishii <ishii@sraoss.co.jp>)
List pgsql-hackers
Hi,

Attached is a patch to fix a very trivial issue of the documentation.

The documentation of PL/pgSQL provides sample codes of Oracle-compatible
instr functions. However, the behaviour is a little differet.
Oracle's instr raises an error when the forth argument value is less than
zero, but the sample code returns zero. This patch fixes this.

Regards,

-- 
Yugo Nagata <nagata@sraoss.co.jp>

Attachment

pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: Converting plpgsql to use DTYPE_REC for named composite types
Next
From: Konstantin Knizhnik
Date:
Subject: Re: AS OF queries