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-automations opened this issue Mar 6, 2007 · 17 comments

Comments

@firebird-automations
Copy link
Collaborator

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-automations
Copy link
Collaborator Author

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-automations
Copy link
Collaborator Author

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-automations
Copy link
Collaborator Author

Modified by: @asfernandes

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

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

resolution: Fixed [ 1 ]

Fix Version: 2.1 [ 10041 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

Version: 2.0.2 [ 10130 ]

Version: 2.1 [ 10041 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Version: 2.1.0 [ 10041 ] =>

@firebird-automations
Copy link
Collaborator Author

Commented by: @pcisar

Fix confirmed for 2.1 Alpha 1. Test added.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

@firebird-automations
Copy link
Collaborator Author

Commented by: @pcisar

Reopened to update ticket information.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

resolution: Fixed [ 1 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Fix Version: 2.1 Alpha 1 [ 10150 ]

Fix Version: 2.1.0 [ 10041 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA63 [ QA63 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

Fix Version: 2.0.2 [ 10130 ]

Version: 2.0.2 [ 10130 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test

@firebird-automations
Copy link
Collaborator Author

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