[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ShopSuite-dev] This one should work
From: |
Davi Leal |
Subject: |
Re: [ShopSuite-dev] This one should work |
Date: |
Tue, 21 Aug 2001 21:37:55 +0100 |
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'.
P.S.: I am at irc now.