Issue Details (XML | Word | Printable)

Key: CORE-2720
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Vlad Khorsun
Reporter: Vlad Khorsun
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Firebird Core

Wrong evaluation result with divide and unary plus\minus operations

Created: 31/Oct/09 02:28 AM   Updated: 03/May/11 06:28 AM
Component/s: Engine
Affects Version/s: 2.0.0, 1.5.4, 2.0.1, 2.0.2, 2.0.3, 1.5.5, 2.1.0, 2.0.4, 2.5 Alpha 1, 2.1.1, 2.0.5, 2.1.2, 2.5 Beta 1, 2.5 Beta 2, 2.1.3, 1.5.6
Fix Version/s: 2.5 RC1, 2.0.6, 2.1.4, 3.0 Alpha 1

Time Tracking:
Not Specified

Issue Links:
Relate
 

Planning Status: Unspecified


 Description  « Hide
SELECT 36/4/3, 36/-4/3, 36/+4/3, 36/+-4/3, 36/-+4/3, 36/- -4/3, 36/++4/3
  FROM RDB$DATABASE

returns

3 -36 36 -36 -36 36 36

while all values must be 3 or -3

 All   Comments   Work Log   Change History   Version Control   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Claudio Valderrama C. added a comment - 31/Oct/09 03:17 PM
36/-4/3 should produce 3?

C.

Dmitry Yemanov added a comment - 31/Oct/09 03:34 PM
I believe Vlad meant that the result should be either plus or minus 3 :-)

Vlad Khorsun added a comment - 31/Oct/09 03:57 PM
> I believe Vlad meant that the result should be either plus or minus 3 :-)

Sure ;)

Philippe Makowski added a comment - 03/May/11 06:28 AM
Q/A test made