[OpenSIPS-Users] MySQL Type: FIELD_TYPE_NEWDECIMAL (246) uses DB_INT result type but should use float

Liviu Chircu liviu at opensips.org
Wed Mar 11 16:01:41 EST 2020


On 11.03.2020 17:50, Brett Nemeroff wrote:
> As a middle ground, instead of extending db_val_t, what if you used 
> the cues from the DB driver to enforce the digits of precision while 
> casting to a STRING

But the double->string cast is done super late, within avpops, only as 
it's walking through the DB result.  Hence the need to extend db_val_t, 
so we capture more semantics into the results produced by the SQL 
drivers.  Does this make sense?

Cheers,

-- 
Liviu Chircu
www.twitter.com/liviuchircu | www.opensips-solutions.com

OpenSIPS Summit, Amsterdam, May 2020
   www.opensips.org/events




More information about the Users mailing list