postgres.git / summary / log / commit / refs
commit b0a7a41db53ef82aab340d62183bd047a386841c
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: Mon Jul 09 13:10:44 2018 +0000
First released in: 12.0, 9.3.24, 9.4.19, 9.5.14, 9.6.10, 10.5, 11.0
Fix misc typos, mostly in comments.
A collection of typos I happened to spot while reading code, as well as
grepping for common mistakes.
Backpatch to all supported versions, as applicable, to avoid conflicts
when backporting other commits in the future.
contrib/pg_upgrade/tablespace.c | 2 +-
src/interfaces/ecpg/ecpglib/execute.c | 4 ++--
src/pl/tcl/pltcl.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/contrib/pg_upgrade/tablespace.c b/contrib/pg_upgrade/tablespace.c
index 74cbbaa71bd..821aca9691c 100644
--- a/contrib/pg_upgrade/tablespace.c
+++ b/contrib/pg_upgrade/tablespace.c
@@ -37,7 +37,7 @@ init_tablespaces(void)
* get_tablespace_paths()
*
* Scans pg_tablespace and returns a malloc'ed array of all tablespace
- * paths. Its the caller's responsibility to free the array.
+ * paths. It's the caller's responsibility to free the array.
*/
static void
get_tablespace_paths(void)
diff --git a/src/interfaces/ecpg/ecpglib/execute.c b/src/interfaces/ecpg/ecpglib/execute.c
index f95cac629a9..f8e0239e93f 100644
--- a/src/interfaces/ecpg/ecpglib/execute.c
+++ b/src/interfaces/ecpg/ecpglib/execute.c
@@ -1302,8 +1302,8 @@ ecpg_execute(struct statement * stmt)
if ((position = next_insert(stmt->command, position, stmt->questionmarks) + 1) == 0)
{
/*
- * We have an argument but we dont have the matched up placeholder
- * in the string
+ * We have an argument but we don't have the matched up
+ * placeholder in the string
*/
ecpg_raise(stmt->lineno, ECPG_TOO_MANY_ARGUMENTS,
ECPG_SQLSTATE_USING_CLAUSE_DOES_NOT_MATCH_PARAMETERS,
diff --git a/src/pl/tcl/pltcl.c b/src/pl/tcl/pltcl.c
index bc5b3ce6f94..ee3e3d43c73 100644
--- a/src/pl/tcl/pltcl.c
+++ b/src/pl/tcl/pltcl.c
@@ -2270,7 +2270,7 @@ pltcl_SPI_execute_plan(ClientData cdata, Tcl_Interp *interp,
}
/************************************************************
- * If there was a argtype list on preparation, we need
+ * If there was an argtype list on preparation, we need
* an argument value list now
************************************************************/
if (qdesc->nargs > 0)
[parent: cbbe75fe6719]