[sr-dev] git:master:b7acbe4d: db_text : column type comparison
lazedo
luis.azedo at factorlusitano.com
Tue Dec 22 12:04:06 CET 2015
Module: kamailio
Branch: master
Commit: b7acbe4d676cc68f790f12f29186dfab31301074
URL: https://github.com/kamailio/kamailio/commit/b7acbe4d676cc68f790f12f29186dfab31301074
Author: lazedo <luis.azedo at factorlusitano.com>
Committer: lazedo <luis.azedo at factorlusitano.com>
Date: 2015-12-18T14:40:18Z
db_text : column type comparison
compare DB1_STR, DB1_STRING, DB1_BLOB as equal
---
Modified: modules/db_text/dbt_lib.c
---
Diff: https://github.com/kamailio/kamailio/commit/b7acbe4d676cc68f790f12f29186dfab31301074.diff
Patch: https://github.com/kamailio/kamailio/commit/b7acbe4d676cc68f790f12f29186dfab31301074.patch
---
diff --git a/modules/db_text/dbt_lib.c b/modules/db_text/dbt_lib.c
index 32364a0..7194b6d 100644
--- a/modules/db_text/dbt_lib.c
+++ b/modules/db_text/dbt_lib.c
@@ -443,13 +443,13 @@ int dbt_is_neq_type(db_type_t _t0, db_type_t _t1)
case DB1_DOUBLE:
break;
case DB1_STRING:
- if(_t0==DB1_STR)
+ if(_t0==DB1_STR || _t0==DB1_BLOB)
return 0;
case DB1_STR:
if(_t0==DB1_STRING || _t0==DB1_BLOB)
return 0;
case DB1_BLOB:
- if(_t0==DB1_STR)
+ if(_t0==DB1_STR || _t0==DB1_STRING)
return 0;
case DB1_BITMAP:
if (_t0==DB1_INT)
More information about the sr-dev
mailing list