aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/ecpglib
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2012-04-23 22:43:09 -0400
committerRobert Haas <rhaas@postgresql.org>2012-04-23 22:43:09 -0400
commit5d4b60f2f25bedee257aaf6f2f4ac77028629b87 (patch)
treef0f7fa40b63a23b10e9d03ea47f97020565a66f6 /src/interfaces/ecpg/ecpglib
parent7ab9b2f3b79177e501a1ef90ed004cc68788abaf (diff)
downloadpostgresql-5d4b60f2f25bedee257aaf6f2f4ac77028629b87.tar.gz
postgresql-5d4b60f2f25bedee257aaf6f2f4ac77028629b87.zip
Lots of doc corrections.
Josh Kupershmidt
Diffstat (limited to 'src/interfaces/ecpg/ecpglib')
-rw-r--r--src/interfaces/ecpg/ecpglib/descriptor.c2
-rw-r--r--src/interfaces/ecpg/ecpglib/prepare.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/interfaces/ecpg/ecpglib/descriptor.c b/src/interfaces/ecpg/ecpglib/descriptor.c
index 73c79703caf..b2990cab289 100644
--- a/src/interfaces/ecpg/ecpglib/descriptor.c
+++ b/src/interfaces/ecpg/ecpglib/descriptor.c
@@ -479,7 +479,7 @@ ECPGget_desc(int lineno, const char *desc_name, int index,...)
memset(&stmt, 0, sizeof stmt);
stmt.lineno = lineno;
- /* desparate try to guess something sensible */
+ /* desperate try to guess something sensible */
stmt.connection = ecpg_get_connection(NULL);
ecpg_store_result(ECPGresult, index, &stmt, &data_var);
diff --git a/src/interfaces/ecpg/ecpglib/prepare.c b/src/interfaces/ecpg/ecpglib/prepare.c
index 1bddf215afe..e49ae3763cc 100644
--- a/src/interfaces/ecpg/ecpglib/prepare.c
+++ b/src/interfaces/ecpg/ecpglib/prepare.c
@@ -124,7 +124,7 @@ prepare_common(int lineno, struct connection * con, const char *name, const char
stmt->command = ecpg_strdup(variable, lineno);
stmt->inlist = stmt->outlist = NULL;
- /* if we have C variables in our statment replace them with '?' */
+ /* if we have C variables in our statement replace them with '?' */
replace_variables(&(stmt->command), lineno);
/* add prepared statement to our list */
@@ -463,7 +463,7 @@ AddStmtToCache(int lineno, /* line # of statement */
return (entNo);
}
-/* handle cache and preparation of statments in auto-prepare mode */
+/* handle cache and preparation of statements in auto-prepare mode */
bool
ecpg_auto_prepare(int lineno, const char *connection_name, const int compat, char **name, const char *query)
{