[Kamailio-Devel] reading information of data_type DOUBLE using sqlops and unixodbc

Daniel-Constantin Mierla miconda at gmail.com
Sun Dec 28 11:46:36 CET 2008


Hello,

just to clarify the source of this problem -- the db drivers can handle 
double/float, but in the config file the variables can have only string 
or integer values (somehow coming from avp internal desing). Probably 
this needs an update to support more data types, at least float/double.

Happy holidays!
Daniel


On 12/27/08 14:32, hans at onsmail.nl wrote:
> Alex,
>
> Thanks for your response, using the cast function solved my problem.
>
> Regards
>
> -Hans
>
>   
>> Can't the double be cast as a string somehow in the query?
>>
>> hans at onsmail.nl wrote:
>>
>>     
>>> Hi,
>>>
>>> I'm trying to read data from an external database (MS SQL) using sqlops
>>> and db_unixodbc which is working fine for data_types INTEGER and STRING.
>>> But i'm looking for a way of reading DOUBLE data_type data (currency
>>> information). Is there a way of doing this (so that the DOUBLE
>>> information
>>> is presented as string) ?
>>>
>>> Thanks
>>> -Hans
>>>
>>>
>>> _______________________________________________
>>> Devel mailing list
>>> Devel at lists.kamailio.org
>>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/devel
>>>       
>> --
>> Alex Balashov
>> Evariste Systems
>> Web    : http://www.evaristesys.com/
>> Tel    : (+1) (678) 954-0670
>> Direct : (+1) (678) 954-0671
>> Mobile : (+1) (678) 237-1775
>>
>>     
>
>
>
> _______________________________________________
> Devel mailing list
> Devel at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/devel
>
>   

-- 
Daniel-Constantin Mierla
http://www.asipto.com




More information about the Devel mailing list