[sr-dev] storing DOUBLE in mysql
Aymeric Moizard
jack at atosc.org
Wed Feb 10 17:08:50 CET 2010
Hi,
I'm using kamailio release 3.0 (from git branch3 of sip router)
and I'm trying to store a double value in my mysql database:
I discovered that existing code only allow 2 decimal digit precision
in file "db_ut.c":
ret = snprintf(_s, *_l, "%-10.2f", _v);
I don't clearly understand the reason, but would like to
know if you wouldn't mind extending it? I would need 7 digits.
Regards,
Aymeric MOIZARD / ANTISIP
amsip - http://www.antisip.com
osip2 - http://www.osip.org
eXosip2 - http://savannah.nongnu.org/projects/exosip/
More information about the sr-dev
mailing list