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

Prepare fails when having a parameter in a DSQL statement before a sub query [CORE1156] #1577

Closed
firebird-issue-importer opened this issue Mar 6, 2007 · 17 comments

Comments

@firebird-issue-importer
Copy link

@firebird-issue-importer firebird-issue-importer commented Mar 6, 2007

Submitted by: Tobias Grimm (tiber)

Is related to QA63

The following query does not work (causing error 804 / 335544569):

select count(*) from rdb$database where :param < (select count(*) from rdb$database)

But this is working:

select count(*) from rdb$database where (select count(*) from rdb$database) > :param
select count(*) from rdb$database where :param < cast ((select count(*) from rdb$database) as integer)
select count(*) from rdb$database where 0 < (select count(*) from rdb$database)
select count(*) from rdb$database where cast (:param as integer) < (select count(*) from rdb$database)

Commits: c9c59e5 6fef59a

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Mar 6, 2007

Modified by: Tobias Grimm (tiber)

description: The following query does not work (causing error 804 / 335544569):

select count(*) from rdb$database where :param < (select count(*) from rdb$database)

But this is working:

select count(*) from rdb$database where (select count(*) from rdb$database) > :param
select count(*) from rdb$database where 0 < (select count(*) from rdb$database)
select count(*) from rdb$database where cast (:param as integer) < (select count(*) from rdb$database)

=>

The following query does not work (causing error 804 / 335544569):

select count(*) from rdb$database where :param < (select count(*) from rdb$database)

But this is working:

select count(*) from rdb$database where (select count(*) from rdb$database) > :param
select count(*) from rdb$database where :param < cast ((select count(*) from rdb$database) as integer)
select count(*) from rdb$database where 0 < (select count(*) from rdb$database)
select count(*) from rdb$database where cast (:param as integer) < (select count(*) from rdb$database)

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Mar 6, 2007

Modified by: Tobias Grimm (tiber)

summary: Perpare fails when having a parameter in a DSQL statement before a sub query => Prepare fails when having a parameter in a DSQL statement before a sub query

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Mar 6, 2007

Modified by: @asfernandes

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Mar 6, 2007

Modified by: @asfernandes

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

resolution: Fixed [ 1 ]

Fix Version: 2.1 [ 10041 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Mar 6, 2007

Modified by: @asfernandes

Version: 2.0.2 [ 10130 ]

Version: 2.1 [ 10041 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Apr 15, 2007

Modified by: @pcisar

Version: 2.1.0 [ 10041 ] =>

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Apr 21, 2007

Commented by: @pcisar

Fix confirmed for 2.1 Alpha 1. Test added.

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Apr 21, 2007

Modified by: @pcisar

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

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Apr 26, 2007

Commented by: @pcisar

Reopened to update ticket information.

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Apr 26, 2007

Modified by: @pcisar

status: Closed [ 6 ] => Reopened [ 4 ]

resolution: Fixed [ 1 ] =>

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Apr 26, 2007

Modified by: @pcisar

Fix Version: 2.1 Alpha 1 [ 10150 ]

Fix Version: 2.1.0 [ 10041 ] =>

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Apr 26, 2007

Modified by: @pcisar

status: Reopened [ 4 ] => Closed [ 6 ]

resolution: Fixed [ 1 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jun 17, 2007

Modified by: @pcisar

Link: This issue is related to QA63 [ QA63 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jul 12, 2007

Modified by: @asfernandes

Fix Version: 2.0.2 [ 10130 ]

Version: 2.0.2 [ 10130 ] =>

@firebird-issue-importer
Copy link
Author

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

Modified by: @pcisar

Workflow: jira [ 11671 ] => Firebird [ 15355 ]

@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