freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] Specify decimal scale/precision for output parameter
- From: Frediano Ziglio <freddy77 AT gmail.com>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] Specify decimal scale/precision for output parameter
- Date: Mon, 31 Aug 2009 14:13:36 +0200
2009/8/27 Damien Churchill <damoxc AT gmail.com>:
> 2009/8/27 Frediano Ziglio <freddy77 AT gmail.com>:
>> 2009/8/27 Damien Churchill <damoxc AT gmail.com>:
>>> 2009/8/27 Frediano Ziglio <freddy77 AT gmail.com>:
>>>> 2009/8/27 Damien Churchill <damoxc AT gmail.com>:
>>>>> I was wondering how you would specify the scale/precision for an
>>>>> output parameter of a RPC call that is null to begin with, since if
>>>>> you don't currently it just uses decimal(38,0) which looses everything
>>>>> trailing the decimal point.
>>>>>
>>>>> Any one know how??
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Damien
>>>>
>>>> Using which library ??
>>>>
>>>
>>> Using db-lib and the dbrpcparam etc functions.
>>
>> In theory you should pass in value a DBDECIMAL initialized with
>> precision/scale even for NULLs. Currently I think this does not works
>> that fine (although I have a small patch).
>>
>
> Is there any chance I would be able to test/experiment with this patch?
Here you are.
freddy77
Attachment:
numeric_scale_prec.diff
Description: Binary data
-
[freetds] Specify decimal scale/precision for output parameter,
Damien Churchill, 08/27/2009
- Re: [freetds] Specify decimal scale/precision for output parameter, Konrad J Hambrick, 08/27/2009
-
Re: [freetds] Specify decimal scale/precision for output parameter,
Frediano Ziglio, 08/27/2009
-
Re: [freetds] Specify decimal scale/precision for output parameter,
Damien Churchill, 08/27/2009
-
Re: [freetds] Specify decimal scale/precision for output parameter,
Frediano Ziglio, 08/27/2009
-
Re: [freetds] Specify decimal scale/precision for output parameter,
Damien Churchill, 08/27/2009
- Re: [freetds] Specify decimal scale/precision for output parameter, Frediano Ziglio, 08/31/2009
-
Re: [freetds] Specify decimal scale/precision for output parameter,
Damien Churchill, 08/27/2009
-
Re: [freetds] Specify decimal scale/precision for output parameter,
Frediano Ziglio, 08/27/2009
-
Re: [freetds] Specify decimal scale/precision for output parameter,
Damien Churchill, 08/27/2009
Archive powered by MHonArc 2.6.24.