Argh, wrong line copied again.
authorMichael Meskes <[email protected]>
Tue, 3 Feb 2009 08:55:45 +0000 (08:55 +0000)
committerMichael Meskes <[email protected]>
Tue, 3 Feb 2009 08:55:45 +0000 (08:55 +0000)
src/interfaces/ecpg/ecpglib/execute.c

index 86978ee3116888da4c7b77d992721df49380fb02..57f775db22747b7242a7ef819da696591ca87c89 100644 (file)
@@ -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);