Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong evaluation result with divide and unary plus\minus operations [CORE2720] #3116

Closed
firebird-automations opened this issue Oct 31, 2009 · 10 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @hvlad

Is related to QA251

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

Commits: bbdb040 ada49bb 494aaa7 c312602

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

assignee: Vlad Khorsun [ hvlad ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 2.5 RC1 [ 10362 ]

Fix Version: 2.0.6 [ 10303 ]

Fix Version: 2.1.4 [ 10361 ]

Fix Version: 3.0 Alpha 1 [ 10331 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: Claudio Valderrama C. (robocop)

36/-4/3 should produce 3?

C.

@firebird-automations
Copy link
Collaborator Author

Commented by: @dyemanov

I believe Vlad meant that the result should be either plus or minus 3 :-)

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

> I believe Vlad meant that the result should be either plus or minus 3 :-)

Sure ;)

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

description: 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

=>

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

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA251 [ QA251 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @pmakowski

Q/A test made

@firebird-automations
Copy link
Collaborator Author

Modified by: @pmakowski

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Closed [ 6 ] => Closed [ 6 ]

QA Status: Done successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment