From: Michael Meskes Date: Tue, 3 Feb 2009 08:55:45 +0000 (+0000) Subject: Argh, wrong line copied again. X-Git-Url: http://git.postgresql.org/gitweb/-?a=commitdiff_plain;h=d8fb7832d1b9fd26457a77a13a65ebdc482612a2;p=users%2Fsimon%2Fpostgres.git Argh, wrong line copied again. --- diff --git a/src/interfaces/ecpg/ecpglib/execute.c b/src/interfaces/ecpg/ecpglib/execute.c index 86978ee311..57f775db22 100644 --- a/src/interfaces/ecpg/ecpglib/execute.c +++ b/src/interfaces/ecpg/ecpglib/execute.c @@ -393,7 +393,7 @@ ecpg_store_result(const PGresult *results, int act_field, else { for (act_tuple = 0; act_tuple < ntuples; act_tuple++) - len += strlen(PQgetvalue(results, act_tuple, act_field)) + 1; + len += PQgetlength(results, act_tuple, act_field); } ecpg_log("ecpg_store_result on line %d: allocating memory for %d tuples\n", stmt->lineno, ntuples);