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

Functions DATEDIFF, ABS(integer const) does not work in dialect 1 [CORE1528] #1942

Closed
firebird-issue-importer opened this issue Oct 18, 2007 · 17 comments

Comments

@firebird-issue-importer

Submitted by: Piminov Roman (ramzes)

Is related to QA195
Is duplicated by CORE1532

SELECT DATEDIFF(DAY, CAST('18.10.2007' AS DATE), CAST('23.10.2007' AS DATE)) FROM RDB$DATABASE
SELECT ABS(5) FROM RDB$DATABASE

Data type unknown
Client SQL dialect 1 does not support reference to BIGINT datatype

Commits: c744055

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Oct 18, 2007

Modified by: Piminov Roman (ramzes)

Component: Engine [ 10000 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Oct 18, 2007

Modified by: Piminov Roman (ramzes)

description: Data type unknown
Client SQL dialect 1 does not support reference to BIGINT datatype

=>

Data type unknown
Client SQL dialect 1 does not support reference to BIGINT datatype

summary: Function DATEDIFF does not work in dialect 1 => Function DATEDIFF, ABS(5) does not work in dialect 1

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Oct 18, 2007

Modified by: Piminov Roman (ramzes)

summary: Function DATEDIFF, ABS(5) does not work in dialect 1 => Functions DATEDIFF, ABS(5) does not work in dialect 1

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Oct 18, 2007

Modified by: Piminov Roman (ramzes)

description: Data type unknown
Client SQL dialect 1 does not support reference to BIGINT datatype

=>

SELECT DATEDIFF(DAY, CAST('18.10.2007' AS DATE), CAST('23.10.2007' AS DATE)) FROM RDB$DATABASE
SELECT ABS(5) FROM RDB$DATABASE

Data type unknown
Client SQL dialect 1 does not support reference to BIGINT datatype

summary: Functions DATEDIFF, ABS(5) does not work in dialect 1 => Functions DATEDIFF, ABS(integer const) does not work in dialect 1

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Oct 23, 2007

Modified by: @asfernandes

Link: This issue is duplicated by CORE1532 [ CORE1532 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Oct 25, 2007

Modified by: @asfernandes

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Oct 25, 2007

Modified by: @asfernandes

Version: 2.1 RC1 [ 10201 ] =>

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Oct 25, 2007

Modified by: @asfernandes

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

resolution: Fixed [ 1 ]

Fix Version: 2.1 RC1 [ 10201 ]

@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 QA195 [ QA195 ]

@firebird-issue-importer
Copy link
Author

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

Modified by: @pcisar

Workflow: jira [ 13331 ] => Firebird [ 13941 ]

@firebird-issue-importer
Copy link
Author

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

Commented by: @pmakowski

Adriano, can you explain me what was solved here ?
if I run under dialect 1 :
SELECT ABS(5) FROM RDB$DATABASE ;
I get :
Statement failed, SQLCODE = -804
Dynamic SQL Error
-SQL error code = -804
-Data type unknown
-Client SQL dialect 1 does not support reference to BIGINT datatype
Is that what it is expected ?

@firebird-issue-importer
Copy link
Author

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

Commented by: @asfernandes

Philippe, yes ABS was still broken in this fix, sorry. This one fixed many sysfunctions, including DATEDIFF.

But later, bug of ABS was registered again (CORE1828) and fixed in 2.5 alpha1.

@firebird-issue-importer
Copy link
Author

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

Commented by: @asfernandes

Note: "many sysfunctions, including DATEDIFF" == "HASH and DATEDIFF". :-)

@firebird-issue-importer
Copy link
Author

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

Commented by: @pmakowski

Q/A ok

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Oct 8, 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