Module: sip-router
Branch: master
Commit: ec617a27352ba719184cf617bb564631d5152df5
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ec617a2…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: Fri Dec 14 13:47:08 2012 -0500
xhttp_pi: fix query operation for db w/o fetch support (like db_text)
---
modules/xhttp_pi/xhttp_pi_fnc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/xhttp_pi/xhttp_pi_fnc.c b/modules/xhttp_pi/xhttp_pi_fnc.c
index d64dc28..ddf1ce8 100644
--- a/modules/xhttp_pi/xhttp_pi_fnc.c
+++ b/modules/xhttp_pi/xhttp_pi_fnc.c
@@ -2707,7 +2707,7 @@ int ph_run_pi_cmd(pi_ctx_t* ctx)
command->q_keys,
command->c_keys_size,
command->q_keys_size,
- command->o_keys?*command->o_keys:0, 0) < 0){
+ command->o_keys?*command->o_keys:0, &res) < 0){
XHTTP_PI_COMPLETE_REPLY(ctx,
"Error while querying database.");
goto done;