Fix sample INSTR function to return 0 if third arg is 0.
authorRobert Haas <rhaas@postgresql.org>
Wed, 4 Jul 2012 21:19:23 +0000 (17:19 -0400)
committerRobert Haas <rhaas@postgresql.org>
Wed, 4 Jul 2012 21:19:23 +0000 (17:19 -0400)
commit0fc32c00d74404a9a535e0e1b8d9437dfd8075db
treed08ec15ec9af8275f8077578ad0bad753612a4d6
parent72dd6291f216440f6bb61a8733729a37c7e3b2d2
Fix sample INSTR function to return 0 if third arg is 0.

Albe Laurenz, per a report by Greg Smith that our sample function
doesn't quite match Oracle's behavior.
doc/src/sgml/plpgsql.sgml