]> granicus.if.org Git - postgresql/commitdiff
Argh, wrong line copied again.
authorMichael Meskes <meskes@postgresql.org>
Tue, 3 Feb 2009 08:55:45 +0000 (08:55 +0000)
committerMichael Meskes <meskes@postgresql.org>
Tue, 3 Feb 2009 08:55:45 +0000 (08:55 +0000)
src/interfaces/ecpg/ecpglib/execute.c

index a0137614941241707eb0be00ba70b1322f771ed7..97524f82d1c11082e059385143c8b2e9427c5424 100644 (file)
@@ -1,4 +1,4 @@
-/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.81 2009/02/03 08:48:29 meskes Exp $ */
+/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.82 2009/02/03 08:55:45 meskes Exp $ */
 
 /*
  * The aim is to get a simpler inteface to the database routines.
@@ -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);