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

RDB$GET_CONTEXT and between in view [CORE3310] #3677

Closed
firebird-automations opened this issue Jan 18, 2011 · 8 comments
Closed

RDB$GET_CONTEXT and between in view [CORE3310] #3677

firebird-automations opened this issue Jan 18, 2011 · 8 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Alexander Krepky (alxkrp)

Is related to QA558

On employee.fdb I create such view:

CREATE VIEW V_TEST
AS
select S.*
from SALES S
where cast(coalesce(RDB$GET_CONTEXT('USER_SESSION', 'SELECTED_DATE'), '12.12.1993') as timestamp) between S.ORDER_DATE and S.DATE_NEEDED

and on select * from V_TEST I receive:

convertion error from string ""

But request, which is specified in view, works in itself.
And, if in view I don't use "between" (replace on >= <=) - it works too.

Commits: bf77761

====== Test Details ======

Test uses data from standard 'employee' database from examples folder.

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

assignee: Adriano dos Santos Fernandes [ asfernandes ]

security: Developers [ 10012 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

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

resolution: Fixed [ 1 ]

Fix Version: 3.0 Alpha 1 [ 10331 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: Tamás Sándor (santa_hostware)

This happens without rdb$get_context as well.
When there is a coalesced date field in a view, BETWEEN seems to fail. When changing BETWEEN to <= and >=, everything is back to normal.

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

Please send complete and reproducible test case.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA558 [ QA558 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

QA Status: Done successfully

Test Details: Test uses data from standard 'employee' database from examples folder.

@firebird-automations
Copy link
Collaborator Author

Commented by: @pcisar

Test created.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

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

No branches or pull requests

2 participants