From: Jonathan Ellis <jellis@advocast.com>
To: pgsql-sql@postgresql.org
Subject: String function page incorrect?
Date: Thu, 30 Nov 2000 12:40:01 -0700
Message-ID: <017c01c05b05$5729dfa0$0d00a8c0@dsl.inconnect.com> (raw)
References: <5.0.2.1.2.20001130113826.082b4ec0@pop.mindspring.com>
<3A268A5C.91CB7353@wgcr.org>
<14886.40191.455322.734798@onceler.kciLink.com>
I'm trying to find the correct function that returns the location of a
substring within a string. Looking at
http://www.postgresql.org/docs/user/x2731.htm, it gives the Function name as
"textpos" but in the Example column it uses "position". But neither one
works!
bf2=# select position('high', 'ig');
ERROR: parser: parse error at or near ","
bf2=# select textpos('high', 'ig');
ERROR: Function 'textpos(unknown, unknown)' does not exist
Unable to identify a function that satisfies the given argument types
You may need to add explicit typecasts
bf2=# select textpos(text('high'), text('ig'));
ERROR: Function 'textpos(text, text)' does not exist
Unable to identify a function that satisfies the given argument types
You may need to add explicit typecasts
???
-Jonathan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: jellis@advocast.com
Subject: Re: String function page incorrect?
In-Reply-To: <017c01c05b05$5729dfa0$0d00a8c0@dsl.inconnect.com>
References: <5.0.2.1.2.20001130113826.082b4ec0@pop.mindspring.com> <3A268A5C.91CB7353@wgcr.org> <14886.40191.455322.734798@onceler.kciLink.com> <017c01c05b05$5729dfa0$0d00a8c0@dsl.inconnect.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox