Subject | Re: [Firebird-Architect] the insert into t select * from t infinite loop |
---|---|
Author | Arno Brinkman |
Post date | 2005-07-02T22:35:03Z |
Hi,
SELECT
*
FROM
TableX x
WHERE
x.ID IN (SELECT FIRST 5 y.ID FROM TableY)
Which is the same problem IMO.
Uncorrelated IN predicate with sub-query should build a "temp-list" from the results of the
sub-query. With using EXISTS you will always force back the "old" behaviour and that's exactly what
i would like to see.
Regards,
Arno Brinkman
ABVisie
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Firebird open source database (based on IB-OE) with many SQL-99 features :
http://www.firebirdsql.org
http://www.firebirdsql.info
http://www.fingerbird.de/
http://www.comunidade-firebird.org/
Support list for Interbase and Firebird users :
firebird-support@yahoogroups.com
Nederlandse firebird nieuwsgroep :
news://newsgroups.firebirdsql.info
> Could we find a fix for that problem by identifying statements thatThis doesn't fix this problem:
> might be susceptible - including obscurities like:
>
> insert into t select * from a
> where a.t_val in (select t_val from t)
>
> and checking somewhere that the input values aren't dependent on a
> record that's listed in the verb undo log?
SELECT
*
FROM
TableX x
WHERE
x.ID IN (SELECT FIRST 5 y.ID FROM TableY)
Which is the same problem IMO.
Uncorrelated IN predicate with sub-query should build a "temp-list" from the results of the
sub-query. With using EXISTS you will always force back the "old" behaviour and that's exactly what
i would like to see.
Regards,
Arno Brinkman
ABVisie
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Firebird open source database (based on IB-OE) with many SQL-99 features :
http://www.firebirdsql.org
http://www.firebirdsql.info
http://www.fingerbird.de/
http://www.comunidade-firebird.org/
Support list for Interbase and Firebird users :
firebird-support@yahoogroups.com
Nederlandse firebird nieuwsgroep :
news://newsgroups.firebirdsql.info