1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-08 11:42:09 +03:00

Cleaned up log output a little bit more.

This commit is contained in:
Michael Meskes
2006-08-08 15:30:39 +00:00
parent 75b5630726
commit 79a1a2ec6b
5 changed files with 42 additions and 11 deletions

View File

@ -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;