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:
@ -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;
|
||||
|
Reference in New Issue
Block a user