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

server crash on simple query [CORE243] #574

Closed
firebird-automations opened this issue Feb 24, 2002 · 3 comments
Closed

server crash on simple query [CORE243] #574

firebird-automations opened this issue Feb 24, 2002 · 3 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: odahan (odahan)

SFID: 521947#⁠
Submitted By: odahan

Firebird 1 rc2 :

Step 1:
Following query doesn't work (between can't be used
against datatype...) :

SELECT COUNT(*) FROM ODDSKCAT1 O WHERE (SELECT COUNT
(*) FROM ODDSKCAT2 O2 WHERE O2.DISKID=O.DISKID)
BETWEEN 21 AND 100

Step 2 :
query is corrected as follow (adding a cast) :

SELECT COUNT(*) FROM ODDSKCAT1 O WHERE CAST( (SELECT
COUNT(*) FROM ODDSKCAT2 O2 WHERE O2.DISKID=O.DISKID)
AS INTEGER) BETWEEN 21 AND 100

... Step 3 : Run and ... Crash server (AV message then
the server is killed by Windows). The crash is
immediate (no wait, so I thing the problem is in
parsing the query).

Database context : about 130 Mb gdb file, 3 tables,
the biggest is oddskcat2.
DISKID field is an Integer, primary key of table
ODDSKCAT1, a unique index on this field exists in
ODDSKCAT2.
OS: Windows 95 osr2

2 Questions :
1/ why the first syntax is not understood ?
2/ why a so hard crash with the "cast" ?

@firebird-automations
Copy link
Collaborator Author

Commented by: Alice F. Bird (firebirds)

Date: 2002-02-25 05:04
Sender: robocop
Logged In: YES
user_id=62823

1.- The "between" treatment is tricky. We probably will
consider this limitation as designed.
2.- The engine isn't prepared to deal with the sub-
expression in such combination. It should allow or reject
it instead of crashing.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 10267 ] => Firebird [ 14497 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test

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

1 participant