Module: sip-router
Branch: janakj/flatstore
Commit: 55cb27d3868e20eb7b8a2d3d86a1e33e23dd03e0
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=55cb27d…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Tue Jan 10 22:16:07 2006 +0000
- DB_FLOAT support
- fixed error in params_add in postgres module
---
modules/db_flatstore/flatstore.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/db_flatstore/flatstore.c b/modules/db_flatstore/flatstore.c
index a69c321..1e77989 100644
--- a/modules/db_flatstore/flatstore.c
+++ b/modules/db_flatstore/flatstore.c
@@ -177,6 +177,10 @@ int flat_db_insert(db_con_t* h, db_key_t* k, db_val_t* v, int n)
fprintf(f, "%d", VAL_INT(v + i));
break;
+ case DB_FLOAT:
+ fprintf(f, "%f", VAL_FLOAT(v + i));
+ break;
+
case DB_DOUBLE:
fprintf(f, "%f", VAL_DOUBLE(v + i));
break;