Module: sip-router
Branch: alexh/for4.0
Commit: 593ee5eed33c4f7ae2988cabeb0d3313ad62a0e2
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=593ee5eed33c4f7ae2988cabeb0d3313ad62a0e2

Author: Alex Hermann <[email protected]>
Committer: Alex Hermann <[email protected]>
Date:   Mon Jul  4 17:33:50 2011 +0200

modules/avpops: avp_db_query: treat BIGINT result as INT, disregarding the most 
significant 32 bits.

---

 modules/avpops/avpops_db.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/avpops/avpops_db.c b/modules/avpops/avpops_db.c
index b5caabe..f8a18fc 100644
--- a/modules/avpops/avpops_db.c
+++ b/modules/avpops/avpops_db.c
@@ -395,6 +395,10 @@ int db_query_avp(struct sip_msg *msg, char *query, 
pvname_list_t* dest)
                                        avp_val.n
                                                = 
(int)RES_ROWS(db_res)[i].values[j].val.int_val;
                                break;
+                               case DB1_BIGINT:
+                                       avp_val.n
+                                               = 
(int)RES_ROWS(db_res)[i].values[j].val.ll_val;
+                               break;
                                case DB1_DATETIME:
                                        avp_val.n
                                                = 
(int)RES_ROWS(db_res)[i].values[j].val.time_val;


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to