diff options
author | Michael Meskes <meskes@postgresql.org> | 2009-02-03 08:55:45 +0000 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2009-02-03 08:55:45 +0000 |
commit | 08ffa7848306813c171a2b8287790a1f01ae5903 (patch) | |
tree | 50cf164b2a54e47182cb1d586fa482987ef52909 /src/interfaces/ecpg/ecpglib/execute.c | |
parent | efd019fc94897d1c8f7f0cf50214caa03308d751 (diff) | |
download | postgresql-08ffa7848306813c171a2b8287790a1f01ae5903.tar.gz postgresql-08ffa7848306813c171a2b8287790a1f01ae5903.zip |
Argh, wrong line copied again.
Diffstat (limited to 'src/interfaces/ecpg/ecpglib/execute.c')
-rw-r--r-- | src/interfaces/ecpg/ecpglib/execute.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/ecpglib/execute.c b/src/interfaces/ecpg/ecpglib/execute.c index a0137614941..97524f82d1c 100644 --- a/src/interfaces/ecpg/ecpglib/execute.c +++ b/src/interfaces/ecpg/ecpglib/execute.c @@ -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); |