summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/ecpglib/execute.c
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2006-08-08 15:30:39 +0000
committerMichael Meskes <meskes@postgresql.org>2006-08-08 15:30:39 +0000
commit79a1a2ec6b8acd0aee98105cb2cd9e61e4426290 (patch)
tree8a3d208827f131358c786f4796204565867c9f7a /src/interfaces/ecpg/ecpglib/execute.c
parent75b56307262e939a8ea5fc31719d356f352d9641 (diff)
Cleaned up log output a little bit more.
Diffstat (limited to 'src/interfaces/ecpg/ecpglib/execute.c')
-rw-r--r--src/interfaces/ecpg/ecpglib/execute.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/interfaces/ecpg/ecpglib/execute.c b/src/interfaces/ecpg/ecpglib/execute.c
index 93f912b8915..2a8f6178589 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.56 2006/08/02 13:43:23 meskes Exp $ */
+/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.57 2006/08/08 15:30:39 meskes Exp $ */
/*
* The aim is to get a simpler inteface to the database routines.
@@ -421,9 +421,6 @@ ECPGstore_result(const PGresult *results, int act_field,
len += strlen(PQgetvalue(results, act_tuple, act_field)) + 1;
len *= var->offset; /* should be 1, but YMNK */
len += (ntuples + 1) * sizeof(char *);
-
- ECPGlog("ECPGstore_result: line %d: allocating %d bytes for %d tuples (char**=0)",
- stmt->lineno, len, ntuples);
}
else
{
@@ -447,6 +444,7 @@ ECPGstore_result(const PGresult *results, int act_field,
len = var->offset * ntuples;
break;
}
+ ECPGlog("ECPGstore_result: line %d: allocating memory for %d tuples\n", stmt->lineno, ntuples);
var->value = (char *) ECPGalloc(len, stmt->lineno);
if (!var->value)
return false;