pgsql: Fix minor bug in regexp makesearch() function.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix minor bug in regexp makesearch() function.
Дата
Msg-id E1ZZpWo-0000Yk-Hz@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix minor bug in regexp makesearch() function.

The list-wrangling here was done wrong, allowing the same state to get
put into the list twice.  The following loop then would clone it twice.
The second clone would wind up with no inarcs, so that there was no
observable misbehavior AFAICT, but a useless state in the finished NFA
isn't an especially good thing.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/48c6a1ab9713d57984a2eec401a9648ddbe29ae4

Modified Files
--------------
src/backend/regex/regcomp.c |   19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix minor bug in regexp makesearch() function.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix minor bug in regexp makesearch() function.