Module: sip-router Branch: master Commit: 51f3e6d5ce60f32cf9af19511663bc2f5fdfedae URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=51f3e6d5...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Tue Mar 13 14:11:11 2012 +0100
p_usrloc: updated usage of DB replace method
- it has to be reviewed and fixed to make it work properly with db postgres - no effects when using it like so far with mysql or unixodbc - it keeps working like it was till now
---
modules_k/p_usrloc/ul_db_form_query.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules_k/p_usrloc/ul_db_form_query.c b/modules_k/p_usrloc/ul_db_form_query.c index 258d53a..c89af2d 100644 --- a/modules_k/p_usrloc/ul_db_form_query.c +++ b/modules_k/p_usrloc/ul_db_form_query.c @@ -115,7 +115,7 @@ static int db_do_query(ul_db_op_t ul_op, db_func_t * dbf, db1_con_t * dbh, str * } return 0; case UL_DB_REPL: - if(dbf->replace(dbh, _k, _v, _n) < 0) { + if(dbf->replace(dbh, _k, _v, _n, 0, 0) < 0) { LM_ERR("error in replacing in " "table %.*s.\n", table->len, table->s); return -1;