git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 1ba23f7) | patch
Fix psql to not go into infinite recursion when expanding a variable that
Wed, 5 May 2010 22:18:56 +0000 (22:18 +0000)
Wed, 5 May 2010 22:18:56 +0000 (22:18 +0000)
commit 93dc6a1b394f8b0ea6719a40a61a81c262ea2103
Fix psql to not go into infinite recursion when expanding a variable that
refers to itself (directly or indirectly). Instead, print a message when
recursion is detected, and don't expand the repeated reference. Per bug
#5448 from Francis Markham.

Back-patch to 8.0. Although the issue exists in 7.4 as well, it seems
impractical to fix there because of the lack of any state stack that
could be used to track active expansions.
src/bin/psql/psqlscan.l diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /