Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Fix misc typos, mostly in comments.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 9 Jul 2018 13:10:44 +0000 (16:10 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 18 Jul 2018 13:54:40 +0000 (16:54 +0300)
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
src/interfaces/ecpg/ecpglib/execute.c
src/pl/tcl/pltcl.c

index 74cbbaa71bddb92544686342771a5724b0179330..821aca9691ce27e003a319dd537aef13dd5d3f88 100644 (file)
@@ -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)
index f95cac629a9641c980f7333c00640285cca5b620..f8e0239e93fad3cd8bcd0ee3c2ff60cd797fbbc1 100644 (file)
@@ -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,
index bc5b3ce6f94b14e5cbb856b40f047055b0640159..ee3e3d43c732efcf31b1dc0d1e04613d25c5ae23 100644 (file)
@@ -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)