dbTalk Databases Forums  

[BUGS] BUG #2738: CREATE FUNCTION INSTR() in docs

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #2738: CREATE FUNCTION INSTR() in docs in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Michael Deichen
 
Posts: n/a

Default [BUGS] BUG #2738: CREATE FUNCTION INSTR() in docs - 11-05-2006 , 03:54 PM







The following bug has been logged online:

Bug reference: 2738
Logged by: Michael Deichen
Email address: deichen (AT) meta-preissuche (DOT) de
PostgreSQL version: 8.1
Operating system: Kubuntu 6.10
Description: CREATE FUNCTION INSTR() in docs
Details:

Hello!

There are codes to create the funtion instr():
http://www.postgresql.org/files/docu.../html/plpgsql-
porting.html#PLPGSQL-PORTING-APPENDIX


The second one begins so:
CREATE FUNCTION instr(varchar, varchar, varchar) RETURNS integer AS '

but, it have to be:
CREATE FUNCTION instr(varchar, varchar, integer) RETURNS integer AS '


Else you get this error when using instr('abc', 'b'):
Function doen't exists: instr(character varying, character varying,
integer)



Best regards from Germany
Michael

---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

http://www.postgresql.org/about/donate

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] BUG #2738: CREATE FUNCTION INSTR() in docs - 11-05-2006 , 05:01 PM






"Michael Deichen" <deichen (AT) meta-preissuche (DOT) de> writes:
Quote:
There are codes to create the funtion instr():
http://www.postgresql.org/files/docu...RTING-APPENDIX

The second one begins so:
CREATE FUNCTION instr(varchar, varchar, varchar) RETURNS integer AS '

but, it have to be:
CREATE FUNCTION instr(varchar, varchar, integer) RETURNS integer AS '
This was fixed a couple of years ago (before 8.0 release) in the master
sources. I'm not sure what plans Peter might have for re-translating
the documentation...

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.