[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ShopSuite-dev] This one should work
From: |
Tomasz Wegrzanowski |
Subject: |
Re: [ShopSuite-dev] This one should work |
Date: |
Wed, 22 Aug 2001 02:35:20 +0200 |
User-agent: |
Mutt/1.3.20i |
On Tue, Aug 21, 2001 at 09:37:55PM +0100, Davi Leal wrote:
> Tomasz Wegrzanowski wrote:
>
> > Code more awful than ever, but the problem seems to be fixed
>
> I get again the below state:
>
> shop=> select rational('1/2') + rational('1/0');
> 0/0 <-- OK
> shop=> select rational('0/2') + rational('1/3');
> 1/3 <-- OK
> shop=> select rational('0/2') + rational('0/3');
> 0/1 <-- OK
> shop=> select rational('0/2') + rational('0/0');
> 0/1 <----------------------- !!! Must be 0/0?
> shop=> select rational('0/2') + rational('1/0');
> 0/0 <-- OK
>
> Another tip:
>
> shop=> INSERT INTO transform_ingredient VALUES(4,2,'9/0');
> INSERT 94568 1
> shop=> select * from transform_ingredient;
> 4 | 2 | 9/0
>
> Note: It could be good if '9/0' is converted to '0/0'.
I see that there are so many bugs in rational.c, that I should
probably redesign it.
Whene I'll be done, I'll send it to list with format description.