From: Michael Meskes Date: Fri, 29 Jan 2010 15:57:01 +0000 (+0000) Subject: Fixed a few typos in ecpg. Two were in comments, the third made a log output reverse... X-Git-Tag: REL9_0_ALPHA4~158 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f18085659685829f4dd79a7a485d0280001f33df;p=postgresql Fixed a few typos in ecpg. Two were in comments, the third made a log output reverse yes and no. --- diff --git a/src/interfaces/ecpg/ecpglib/execute.c b/src/interfaces/ecpg/ecpglib/execute.c index ec2ca8915e..71b32a8128 100644 --- a/src/interfaces/ecpg/ecpglib/execute.c +++ b/src/interfaces/ecpg/ecpglib/execute.c @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.89 2010/01/22 14:13:03 meskes Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.90 2010/01/29 15:57:01 meskes Exp $ */ /* * The aim is to get a simpler inteface to the database routines. @@ -303,7 +303,7 @@ ecpg_is_type_an_array(int type, const struct statement * stmt, const struct vari return (ECPG_ARRAY_ERROR); ecpg_type_infocache_push(&(stmt->connection->cache_head), type, isarray, stmt->lineno); - ecpg_log("ecpg_is_type_an_array on line %d: type (%d); C (%d); array (%s)\n", stmt->lineno, type, var->type, isarray ? "yes" : "no"); + ecpg_log("ecpg_is_type_an_array on line %d: type (%d); C (%d); array (%s)\n", stmt->lineno, type, var->type, (isarray != ECPG_ARRAY_NONE) ? "yes" : "no"); return isarray; } diff --git a/src/interfaces/ecpg/preproc/ecpg.header b/src/interfaces/ecpg/preproc/ecpg.header index f60105560c..f2847f667b 100644 --- a/src/interfaces/ecpg/preproc/ecpg.header +++ b/src/interfaces/ecpg/preproc/ecpg.header @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.header,v 1.11 2010/01/26 09:07:31 meskes Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.header,v 1.12 2010/01/29 15:57:01 meskes Exp $ */ /* Copyright comment */ %{ @@ -308,7 +308,7 @@ adjust_outofscope_cursor_vars(struct cursor *cur, bool insert) sprintf(temp, "%d, &(", ecpg_internal_var++); } - /* create call to "ECPGset_var(, . )" */ + /* create call to "ECPGset_var(, , )" */ if (!skip_set_var) result = cat_str(5, result, make_str("ECPGset_var("), mm_strdup(temp), mm_strdup(original_var), make_str("), __LINE__);\n")); @@ -354,7 +354,7 @@ adjust_outofscope_cursor_vars(struct cursor *cur, bool insert) sprintf(temp, "%d, &(", ecpg_internal_var++); } - /* create call to "ECPGset_var(, . )" */ + /* create call to "ECPGset_var(, , )" */ result = cat_str(5, result, make_str("ECPGset_var("), mm_strdup(temp), mm_strdup(original_var), make_str("), __LINE__);\n")); }