John Heitmann <[EMAIL PROTECTED]> wrote:
> >Description:
> 
> When a temp table is included twice in a query mysql fails with the 
> error:
> 
> ERROR 1137 at line 9: Can't reopen table: 'foo'
> 
> This happens on both 4.0.17 and 4.0.18. It did not happen on 4.0.14.
> 
> >How-To-Repeat:
> 
> create temporary table test (pk int primary key);
> select * from test as foo, test as bar where foo.pk=bar.pk;
> 

It's not a bug, it's documented behavior. You can't use temporary table more than once 
in the same query:
        http://www.mysql.com/doc/en/Temporary_table_problems.html


-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com





-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to