aboutsummaryrefslogtreecommitdiff
path: root/src/test/perl/PostgresNode.pm
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-06-26 10:31:10 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2017-06-26 10:31:19 -0400
commit9bfb1f2d64c4cab108a69e4bf66da4c2464dcaaf (patch)
tree369467070aa36fea018d4b4cf66b90e21390da0d /src/test/perl/PostgresNode.pm
parent4947fced73c2ba43aaddaaba24320aaf5702307e (diff)
downloadpostgresql-9bfb1f2d64c4cab108a69e4bf66da4c2464dcaaf.tar.gz
postgresql-9bfb1f2d64c4cab108a69e4bf66da4c2464dcaaf.zip
Minor code review for parse_phrase_operator().
Fix its header comment, which described the old behavior of the <N> phrase distance operator; we missed updating that in commit 028350f61. Also, reset errno before strtol() call, to defend against the possibility that it was already ERANGE at entry. (The lack of complaints says that it generally isn't, but this is at least a latent bug.) Very minor stylistic improvements as well. Victor Drobny noted the obsolete comment, I noted the errno issue. Back-patch to 9.6 where this code was added, just in case the errno issue is a live bug in some cases. Discussion: https://postgr.es/m/2b5382fdff9b1f79d5eb2c99c4d2cbe2@postgrespro.ru
Diffstat (limited to 'src/test/perl/PostgresNode.pm')
0 files changed, 0 insertions, 0 deletions