aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/ascii.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-10-20 15:38:57 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-10-20 15:38:57 -0400
commitdce92c6d6abe302c58fd4e4221efed54913aefdb (patch)
tree486e11ba9ac6ff3de24265f53eabc2d8e8e84552 /src/backend/utils/adt/ascii.c
parent8f3362d4b7430079bb53a954e372955eb285cf52 (diff)
downloadpostgresql-dce92c6d6abe302c58fd4e4221efed54913aefdb.tar.gz
postgresql-dce92c6d6abe302c58fd4e4221efed54913aefdb.zip
Rewrite tab completion's previous-word fetching for more sanity.
Make it return empty strings when there are no more words to the left of the current position, instead of sometimes returning NULL and other times returning copies of the leftmost word. Also, fetch the words in one scan, rather than the previous wasteful approach of starting from scratch for each word. Make the code a bit harder to break when someone decides we need more words of context, too. (There was actually a memory leak here, because whoever added prev6_wd neglected to free it.)
Diffstat (limited to 'src/backend/utils/adt/ascii.c')
0 files changed, 0 insertions, 0 deletions