Module: kamailio
Branch: master
Commit: eed07762bee58f2fb8053d99865313fcbdd8b140
URL:
https://github.com/kamailio/kamailio/commit/eed07762bee58f2fb8053d99865313f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-28T18:30:51+02:00
db_flatstore: handle DB1_UINT and DB1_UBIGINT DB APIv1 types
---
Modified: src/modules/db_flatstore/km_flatstore.c
---
Diff:
https://github.com/kamailio/kamailio/commit/eed07762bee58f2fb8053d99865313f…
Patch:
https://github.com/kamailio/kamailio/commit/eed07762bee58f2fb8053d99865313f…
---
diff --git a/src/modules/db_flatstore/km_flatstore.c
b/src/modules/db_flatstore/km_flatstore.c
index 9bdd4d6c8a..e56ba84c71 100644
--- a/src/modules/db_flatstore/km_flatstore.c
+++ b/src/modules/db_flatstore/km_flatstore.c
@@ -169,9 +169,17 @@ int flat_db_insert(const db1_con_t* h, const db_key_t* k, const
db_val_t* v,
fprintf(f, "%d", VAL_INT(v + i));
break;
+ case DB1_UINT:
+ fprintf(f, "%u", VAL_UINT(v + i));
+ break;
+
case DB1_BIGINT:
- LM_ERR("BIGINT not supported");
- return -1;
+ fprintf(f, "%lld", VAL_BIGINT(v + i));
+ break;
+
+ case DB1_UBIGINT:
+ fprintf(f, "%llu", VAL_UBIGINT(v + i));
+ break;
case DB1_DOUBLE:
fprintf(f, "%f", VAL_DOUBLE(v + i));