Lists: | pgsql-docs |
---|
From: | Arley Lewis <arleylewis(at)gmail(dot)com> |
---|---|
To: | PostgreSQL Docs List <pgsql-docs(at)postgresql(dot)org> |
Subject: | doc bug: SELECT SUBSTRING example is missing keyword FROM |
Date: | 2009-04-28 18:34:37 |
Message-ID: | [email protected] |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Lists: | pgsql-docs |
Hello doc team,
There's a doc bug on
http://www.postgresql.org/docs/8.3/static/functions-matching.html.
Two "FROM"s are missing from this section. Where it now says:
-------------
SELECT SUBSTRING('XY1234Z', 'Y*([0-9]{1,3})');
Result: 123
SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
Result: 1
----------------
You should fix it to say:
-------------------
SELECT SUBSTRING('XY1234Z' FROM 'Y*([0-9]{1,3})');
Result: 123
SELECT SUBSTRING('XY1234Z' FROM 'Y*?([0-9]{1,3})');
Result: 1
----------------------
Thanks,
Arley Lewis
arleylewis(at)gmail(dot)com
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Arley Lewis <arleylewis(at)gmail(dot)com> |
Cc: | PostgreSQL Docs List <pgsql-docs(at)postgresql(dot)org> |
Subject: | Re: doc bug: SELECT SUBSTRING example is missing keyword FROM |
Date: | 2009-04-28 21:46:46 |
Message-ID: | [email protected] |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Lists: | pgsql-docs |
Arley Lewis <arleylewis(at)gmail(dot)com> writes:
> Two "FROM"s are missing from this section. Where it now says:
> -------------
> SELECT SUBSTRING('XY1234Z', 'Y*([0-9]{1,3})');
> Result: 123
> SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
> Result: 1
There is nothing wrong with these examples.
regression=# SELECT SUBSTRING('XY1234Z', 'Y*([0-9]{1,3})');
substring
-----------
123
(1 row)
regression=# SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
substring
-----------
1
(1 row)
regards, tom lane