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-issue-importer opened this issue Oct 31, 2009 · 10 comments

Comments

@firebird-issue-importer

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Oct 31, 2009

Modified by: @hvlad

assignee: Vlad Khorsun [ hvlad ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Oct 31, 2009

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Oct 31, 2009

Commented by: Claudio Valderrama C. (robocop)

36/-4/3 should produce 3?

C.

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Oct 31, 2009

Commented by: @dyemanov

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

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Oct 31, 2009

Commented by: @hvlad

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

Sure ;)

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Oct 31, 2009

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Feb 23, 2011

Modified by: @pcisar

Link: This issue is related to QA251 [ QA251 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented May 3, 2011

Commented by: @pmakowski

Q/A test made

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented May 3, 2011

Modified by: @pmakowski

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

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Aug 29, 2015

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