diff options
| author | David Rowley | 2022-04-11 08:49:41 +0000 |
|---|---|---|
| committer | David Rowley | 2022-04-11 08:49:41 +0000 |
| commit | b0e5f02ddc836499bdcf093df52e4c342dda5891 (patch) | |
| tree | 2211dfcfabd04e9ecd5b32b1b5fd3e97c817bc91 /src/bin/psql | |
| parent | bba3c35b29d07a27bbf5dd0d7d5e7c7592e02f81 (diff) | |
Fix various typos and spelling mistakes in code comments
Author: Justin Pryzby
Discussion: https://postgr.es/m/20220411020336.GB26620@telsasoft.com
Diffstat (limited to 'src/bin/psql')
| -rw-r--r-- | src/bin/psql/copy.c | 3 | ||||
| -rw-r--r-- | src/bin/psql/describe.c | 2 | ||||
| -rw-r--r-- | src/bin/psql/tab-complete.c | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/src/bin/psql/copy.c b/src/bin/psql/copy.c index a5ceaec3ac7..424a429e1e2 100644 --- a/src/bin/psql/copy.c +++ b/src/bin/psql/copy.c @@ -653,7 +653,8 @@ handleCopyIn(PGconn *conn, FILE *copystream, bool isbinary, PGresult **res) * * Make sure there's always space for four more bytes in the * buffer, plus a NUL terminator. That way, an EOF marker is - * never split across two fgets() calls, which simplies the logic. + * never split across two fgets() calls, which simplifies the + * logic. */ if (buflen >= COPYBUFSIZ - 5 || (copydone && buflen > 0)) { diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c index e8919ab0be2..d04ba2b0290 100644 --- a/src/bin/psql/describe.c +++ b/src/bin/psql/describe.c @@ -3080,7 +3080,7 @@ describeOneTableDetails(const char *schemaname, * servers between v11 and v14, though these must still be shown to * the user. So we use another property that is true for such * inherited triggers to avoid them being hidden, which is their - * dependendence on another trigger. + * dependence on another trigger. */ if (pset.sversion >= 110000 && pset.sversion < 150000) appendPQExpBufferStr(&buf, "(NOT t.tgisinternal OR (t.tgisinternal AND t.tgenabled = 'D') \n" diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index 8f163fb7bac..10e8dbc9b1f 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -2257,7 +2257,7 @@ psql_completion(const char *text, int start, int end) COMPLETE_WITH("COLUMN", "CONSTRAINT", "CHECK", "UNIQUE", "PRIMARY KEY", "EXCLUDE", "FOREIGN KEY"); } - /* ATER TABLE xxx ADD [COLUMN] yyy */ + /* ALTER TABLE xxx ADD [COLUMN] yyy */ else if (Matches("ALTER", "TABLE", MatchAny, "ADD", "COLUMN", MatchAny) || (Matches("ALTER", "TABLE", MatchAny, "ADD", MatchAny) && !Matches("ALTER", "TABLE", MatchAny, "ADD", "COLUMN|CONSTRAINT|CHECK|UNIQUE|PRIMARY|EXCLUDE|FOREIGN"))) |
