projects
/
users
/
simon
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
877fa2f
)
Argh, wrong line copied again.
author
Michael Meskes
<
[email protected]
>
Tue, 3 Feb 2009 08:55:45 +0000
(08:55 +0000)
committer
Michael Meskes
<
[email protected]
>
Tue, 3 Feb 2009 08:55:45 +0000
(08:55 +0000)
src/interfaces/ecpg/ecpglib/execute.c
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/ecpg/ecpglib/execute.c
b/src/interfaces/ecpg/ecpglib/execute.c
index 86978ee3116888da4c7b77d992721df49380fb02..57f775db22747b7242a7ef819da696591ca87c89 100644
(file)
--- 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);