Skip to content

Commit f180856

Browse files
author
Michael Meskes
committed
Fixed a few typos in ecpg. Two were in comments, the third made a log output reverse yes and no.
1 parent 7efd71f commit f180856

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/interfaces/ecpg/ecpglib/execute.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.89 2010/01/22 14:13:03 meskes Exp $ */
1+
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.90 2010/01/29 15:57:01 meskes Exp $ */
22

33
/*
44
* 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
303303
return (ECPG_ARRAY_ERROR);
304304

305305
ecpg_type_infocache_push(&(stmt->connection->cache_head), type, isarray, stmt->lineno);
306-
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");
306+
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");
307307
return isarray;
308308
}
309309

src/interfaces/ecpg/preproc/ecpg.header

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.header,v 1.11 2010/01/26 09:07:31 meskes Exp $ */
1+
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.header,v 1.12 2010/01/29 15:57:01 meskes Exp $ */
22

33
/* Copyright comment */
44
%{
@@ -308,7 +308,7 @@ adjust_outofscope_cursor_vars(struct cursor *cur, bool insert)
308308
sprintf(temp, "%d, &(", ecpg_internal_var++);
309309
}
310310

311-
/* create call to "ECPGset_var(<counter>, <pointer>. <linen number>)" */
311+
/* create call to "ECPGset_var(<counter>, <pointer>, <line number>)" */
312312
if (!skip_set_var)
313313
result = cat_str(5, result, make_str("ECPGset_var("), mm_strdup(temp), mm_strdup(original_var), make_str("), __LINE__);\n"));
314314

@@ -354,7 +354,7 @@ adjust_outofscope_cursor_vars(struct cursor *cur, bool insert)
354354
sprintf(temp, "%d, &(", ecpg_internal_var++);
355355
}
356356

357-
/* create call to "ECPGset_var(<counter>, <pointer>. <linen number>)" */
357+
/* create call to "ECPGset_var(<counter>, <pointer>, <line number>)" */
358358
result = cat_str(5, result, make_str("ECPGset_var("), mm_strdup(temp), mm_strdup(original_var), make_str("), __LINE__);\n"));
359359
}
360360

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy