Closed GoogleCodeExporter closed 9 years ago
The temporary tables provides with two solutions that the view does not:
1. I expect use of eval() to be long time consuming (e.g. ALTER, DROP, etc.)
sometimes it's just massive KILL, but that, two, can sometimes take time (try
killing a slave thread that is busy).
So I can expect the query to crash sometime, perhaps due to human intervention
(Ctrl+C).
In which case I cannot count on the final DROP statement to execute. Which is
why temporary tables play so nicely: eventually they will get cleaned up. VIEWs
will not.
2. You are assuming the the evaluated query returns a column called "query". I
do not. It can return a column of any name, I don't care, not do I want to
force its name.
I agree that I'm already forcing the type of query: to return one textual
column which is a query. But I like it that I don't have to force more than
that.
Original comment by shlomi.n...@gmail.com
on 6 Sep 2011 at 10:30
PS, the trick with CREATE OR REPLACE and CONNECTION_ID() is very cool; but it
can still make for tens of thousands of 'loose' views, in theory.
Original comment by shlomi.n...@gmail.com
on 6 Sep 2011 at 10:31
Good points. Well set it to "Won't fix" I guess?
Original comment by roland.bouman
on 6 Sep 2011 at 12:12
Afraid so :)
Original comment by shlomi.n...@gmail.com
on 6 Sep 2011 at 12:18
Original issue reported on code.google.com by
roland.bouman
on 6 Sep 2011 at 9:54