hanging query for 2.5
---------------------
Key: CORE-5412
URL: http://tracker.firebirdsql.org/browse/CORE-5412
Project: Firebird Core
Issue Type: Bug
Components: ISQL
Affects Versions: 2.5.6
Environment: Firebird Linux 2.5.2
Reporter: Ray Holme
I was running a query looking for the range of a problem.
select invoice_id, datetime from invoices
where invoice_id in (select min(invoice_id) from invoice_lines where
srv_order is null)
or invoice_id in (select max(invoice_id) from invoice_lines where
srv_order is null);
After returning the first row (min) the query hangs.
So I tried:
select invoice_id, datetime from invoices
where invoice_id in (select max(invoice_id) from invoice_lines where
srv_order is null);
This too hangs and never retrurns (well I did not wait more than 1 minute).
But running this query returns results fine immediately.
select max(invoice_id) from invoice_lines where srv_order is null;
and the following amended query works fine. ( supplying the min and max values)
explicitly)
select invoice_id, datetime from invoices where invoice_id in (5, 11284);
I could create a version of the DB for you.
I do NOT believe you will need this as the problem is I(MHO) related to the
select max hanging in a sub-query.
Note that this is an active DB (open by an inactive webapp - this should not
matter, but ....)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel