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

Incorrect timestamp substraction in 3 dialect when result is negative number [CORE1428] #1846

Closed
firebird-issue-importer opened this issue Aug 27, 2007 · 9 comments

Comments

@firebird-issue-importer

Submitted by: @hvlad

Is related to QA182

SELECT (CAST('2007-08-22 00:00:00.0019' AS TIMESTAMP) - CAST('2007-08-22 00:00:00.0000' AS TIMESTAMP)) *86400*10000
FROM RDB$DATABASE

produced 19,008

while

SELECT (CAST('2007-08-22 00:00:00.0000' AS TIMESTAMP) - CAST('2007-08-22 00:00:00.0019' AS TIMESTAMP)) *86400*10000
FROM RDB$DATABASE

produced -18,144

Commits: 776188e

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Aug 27, 2007

Modified by: @hvlad

description: SELECT (CAST('2007-08-22 00:00:00.0000' AS TIMESTAMP) - CAST('2007-08-22 00:00:00.0099' AS TIMESTAMP)) *86400*10000
FROM RDB$DATABASE

produced -98,496

=>

SELECT (CAST('2007-08-22 00:00:00.0019' AS TIMESTAMP) - CAST('2007-08-22 00:00:00.0000' AS TIMESTAMP)) *86400*10000
FROM RDB$DATABASE

produced 19,008

while

SELECT (CAST('2007-08-22 00:00:00.0000' AS TIMESTAMP) - CAST('2007-08-22 00:00:00.0019' AS TIMESTAMP)) *86400*10000
FROM RDB$DATABASE

produced -18,144

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Aug 27, 2007

Modified by: @hvlad

Version: 1.5.4 [ 10100 ] =>

Version: 1.5.3 [ 10028 ] =>

Version: 1.5.2 [ 10027 ] =>

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Aug 27, 2007

Modified by: @hvlad

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

resolution: Fixed [ 1 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Dec 29, 2007

Modified by: @pcisar

Link: This issue is related to QA182 [ QA182 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jan 28, 2008

Modified by: @pcisar

Workflow: jira [ 12892 ] => Firebird [ 15352 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Oct 6, 2008

Commented by: @pmakowski

Q/A test ok

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Oct 6, 2008

Modified by: @pmakowski

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

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jan 19, 2016

Modified by: @pavel-zotov

QA Status: No test

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jan 19, 2016

Modified by: @pavel-zotov

QA Status: No test => Done successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants