[sr-dev] git:master:43636380: usrloc: use defined OP_NEQ for sql not-equal operator

Daniel-Constantin Mierla miconda at gmail.com
Tue Feb 3 21:36:25 CET 2015


Module: kamailio
Branch: master
Commit: 436363806e61b4720c15d3cb559114b677904a01
URL: https://github.com/kamailio/kamailio/commit/436363806e61b4720c15d3cb559114b677904a01

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-02-03T21:34:31+01:00

usrloc: use defined OP_NEQ for sql not-equal operator

---

Modified: modules/usrloc/udomain.c

---

Diff:  https://github.com/kamailio/kamailio/commit/436363806e61b4720c15d3cb559114b677904a01.diff
Patch: https://github.com/kamailio/kamailio/commit/436363806e61b4720c15d3cb559114b677904a01.patch

---

diff --git a/modules/usrloc/udomain.c b/modules/usrloc/udomain.c
index bae4bdf..8006e17 100644
--- a/modules/usrloc/udomain.c
+++ b/modules/usrloc/udomain.c
@@ -853,7 +853,7 @@ int db_timer_udomain(udomain_t* _d)
 	UL_DB_EXPIRES_SET(&vals[0], act_time + 1);
 
 	keys[1] = &expires_col;
-	ops[1] = "!=";
+	ops[1] = OP_NEQ;
 	vals[1].nul = 0;
 	UL_DB_EXPIRES_SET(&vals[1], 0);
 




More information about the sr-dev mailing list