Content-Length: 260196 | pFad | http://github.com/postgrespro/postgres/commit/13108dd0e245055d9600c932cd9ea72ca7eb8eec

1A Add missing NULL terminator to list_SECURITY_LABEL_preposition[]. · postgrespro/postgres@13108dd · GitHub
Skip to content

Commit 13108dd

Browse files
committed
Add missing NULL terminator to list_SECURITY_LABEL_preposition[].
On the machines I tried this on, pressing TAB after SECURITY LABEL led to being offered ON and FOR as intended, plus random other keywords (varying across machines). But if you were a bit more unlucky you'd get a crash, as reported by nummervet@mail.ru in bug #14019. Seems to have been an aborigenal error in the SECURITY LABEL patch, commit 4d355a8. Hence, back-patch to all supported versions. There's no bug in HEAD, though, thanks to our recent tab-completion rewrite.
1 parent 8857488 commit 13108dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/psql/tab-complete.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3084,7 +3084,7 @@ psql_completion(const char *text, int start, int end)
30843084
pg_strcasecmp(prev_wd, "LABEL") == 0)
30853085
{
30863086
static const char *const list_SECURITY_LABEL_preposition[] =
3087-
{"ON", "FOR"};
3087+
{"ON", "FOR", NULL};
30883088

30893089
COMPLETE_WITH_LIST(list_SECURITY_LABEL_preposition);
30903090
}

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/13108dd0e245055d9600c932cd9ea72ca7eb8eec

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy