public inbox for [email protected]
help / color / mirror / Atom feeddoc bug: SELECT SUBSTRING example is missing keyword FROM
2+ messages / 2 participants
[nested] [flat]
* doc bug: SELECT SUBSTRING example is missing keyword FROM
@ 2009-04-28 18:34 Arley Lewis <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: Arley Lewis @ 2009-04-28 18:34 UTC (permalink / raw)
To: 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
[email protected]
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: doc bug: SELECT SUBSTRING example is missing keyword FROM
@ 2009-04-28 21:46 Tom Lane <[email protected]>
parent: Arley Lewis <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2009-04-28 21:46 UTC (permalink / raw)
To: Arley Lewis <[email protected]>; +Cc: pgsql-docs
Arley Lewis <[email protected]> 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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2009-04-28 21:46 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-04-28 18:34 doc bug: SELECT SUBSTRING example is missing keyword FROM Arley Lewis <[email protected]>
2009-04-28 21:46 ` Tom Lane <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox