Subject Re: [firebird-support] Re: Problem with FIRST in where clause
Author Martijn Tonies
> > First n doesn't work properly in a subquery.
>
> Will this be solved in FB 2?

I doubt it ...

Whenever the/a subquery is not depending on items in
the outer query, it should materialize this result first and
then use the cached result. Firebird doesn't do this. Ever.

Same issue:

insert into mytable
select * from mytable

-> this will create an endless loop, while it's perfectly
valid SQL.


Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com