Module: sip-router
Branch: master
Commit: 956f01b2a906dc07d45e9b0639dfd9de51e4629b
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=956f01b…
Author: Alex Hermann <alex(a)speakup.nl>
Committer: Alex Hermann <alex(a)speakup.nl>
Date: Mon Mar 14 14:47:25 2011 +0100
modules_k/sqlops: Add BIGINT support for sql_xquery()
xavp's have native support for longlongs so there's no reason not to use it.
---
modules_k/sqlops/sql_api.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/modules_k/sqlops/sql_api.c b/modules_k/sqlops/sql_api.c
index 5fe3371..aca782d 100644
--- a/modules_k/sqlops/sql_api.c
+++ b/modules_k/sqlops/sql_api.c
@@ -438,6 +438,11 @@ int sql_do_xquery(struct sip_msg *msg, sql_con_t *con, pv_elem_t
*query,
val.v.i
= (int)RES_ROWS(db_res)[i].values[j].val.bitmap_val;
break;
+ case DB1_BIGINT:
+ val.type = SR_XTYPE_LLONG;
+ val.v.ll
+ = RES_ROWS(db_res)[i].values[j].val.ll_val;
+ break;
default:
val.type = SR_XTYPE_NULL;
}