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-issue-importer opened this issue Jan 18, 2011 · 8 comments
Closed

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

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

Comments

@firebird-issue-importer

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

firebird-issue-importer commented Jan 18, 2011

Modified by: @dyemanov

assignee: Adriano dos Santos Fernandes [ asfernandes ]

security: Developers [ 10012 ] =>

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Apr 22, 2011

Modified by: @asfernandes

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

resolution: Fixed [ 1 ]

Fix Version: 3.0 Alpha 1 [ 10331 ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Sep 5, 2013

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

firebird-issue-importer commented Sep 9, 2013

Commented by: @asfernandes

Please send complete and reproducible test case.

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Mar 29, 2014

Modified by: @pcisar

Link: This issue is related to QA558 [ QA558 ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented May 28, 2015

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

firebird-issue-importer commented Sep 23, 2015

Commented by: @pcisar

Test created.

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Sep 23, 2015

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