Re: substring wrong example in manual

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: "Thomas T(dot) Thai" <tom(at)minnesota(dot)com>
Cc: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: substring wrong example in manual
Date: 2001-07-03 02:41:48
Message-ID: 200107030241.f632fmt13821@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> RE: http://www.postgresql.org/idocs/index.php?functions-string.html
>
> In Table 4-6. SQL String Functions and Operators
>
>
> FUNCTION RETURN TYPE DESC
> ...
> substring( text extract
> string substring
> [from integer]
> [for integer])
>
> EXAMPLE RESULT
> substring('Thomas' oma
> from 2 for 3)
> ...
>
> The result should be 'hom' instead of 'oma':
>
> 1 2 3 4 5 6
> T h o m a s
> from 1 2
> ^-------^
> for 1 2 3

Confirmed:

test=> select substring('Thomas' from 2 for 3);
substring
-----------
hom
(1 row)

Patch applied. Thanks.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

Attachment Content-Type Size
unknown_filename text/plain 671 bytes

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Pieter Vissenberg 2001-07-03 06:52:47 upgrading postgres from 7.0 to 7.1
Previous Message Thomas T. Thai 2001-07-03 00:05:47 substring wrong example in manual