Module: kamailio
Branch: master
Commit: 367887d6437db5f1c5e70258d3838f3a2acbd084
URL:
https://github.com/kamailio/kamailio/commit/367887d6437db5f1c5e70258d3838f3…
Author: lazedo <luis.azedo(a)factorlusitano.com>
Committer: lazedo <luis.azedo(a)factorlusitano.com>
Date: 2015-02-19T17:50:22Z
Merge pull request #92 from kamailio/lazedo-patch-1
db_text : missing OP_NEQ
---
Modified: modules/db_text/dbt_res.c
---
Diff:
https://github.com/kamailio/kamailio/commit/367887d6437db5f1c5e70258d3838f3…
Patch:
https://github.com/kamailio/kamailio/commit/367887d6437db5f1c5e70258d3838f3…
---
diff --git a/modules/db_text/dbt_res.c b/modules/db_text/dbt_res.c
index f115992..bff71b0 100644
--- a/modules/db_text/dbt_res.c
+++ b/modules/db_text/dbt_res.c
@@ -208,6 +208,11 @@ int dbt_row_match(dbt_table_p _dtp, dbt_row_p _drp, int* _lkey,
if(res!=0)
return 0;
}else{
+ if(!strcmp(_op[i], OP_NEQ))
+ {
+ if(res==0)
+ return 0;
+ }else{
if(!strcmp(_op[i], OP_LT))
{
if(res!=-1)
@@ -229,7 +234,7 @@ int dbt_row_match(dbt_table_p _dtp, dbt_row_p _drp, int* _lkey,
return 0;
}else{
return 0;
- }}}}}
+ }}}}}}
}
return 1;
}