Module: sip-router
Branch: kamailio_3.0
Commit: d1e89c65a9412d2a0560c5699a34dd01e231a2d9
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d1e89c6…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Jan 5 18:40:17 2010 +0100
db_oracle: use PARAM_TYPE_MASK when checking param type
---
modules_k/db_oracle/asynch.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules_k/db_oracle/asynch.c b/modules_k/db_oracle/asynch.c
index 173d572..bb92d35 100644
--- a/modules_k/db_oracle/asynch.c
+++ b/modules_k/db_oracle/asynch.c
@@ -66,7 +66,7 @@ static int set_tv(unsigned type, const char* val, struct timeval* tv)
unsigned long s, ms;
double dv;
- if (type != STR_PARAM) {
+ if (PARAM_TYPE_MASK(type) != STR_PARAM) {
LM_ERR("type of parameter is no STR\n");
return -1;
}