tables during query tables registration. (BUG#15119)
mysql-test/r/view_query_cache.result:
Tests for temptable views in the query cache.
mysql-test/t/view_query_cache.test:
Tests for temptable views in the query cache.
sql/sql_cache.cc:
We should not skip temptable view along with other derived
tables during query tables registration.
For LOCK view is opened but not prepared thus leaving 'table' field set to
NULL. invalidate_locked_for_write() wasn't checking that and call to
invalidate_table(NULL) crashes server.
To invalidate_locked_for_write() added check that ensures that table is
completely opened.
sql/sql_cache.cc:
Fix bug #13424 locking view with query cache enabled crashes server
Added check that table is completely opened.
mysql-test/t/view_query_cache.test:
Test case for bug#13424 locking view with query cache enabled crashes server
mysql-test/r/view_query_cache.result:
Test case for bug#13424 locking view with query cache enabled crashes server
mysql-test/r/view_query_cache.result:
Fixed test to be environment independ
Invalidation of view checked
Join view with QC checked
mysql-test/t/view_query_cache.test:
Fixed test to be environment independ
Invalidation of view checked
Join view with QC checked
sql/sql_cache.cc:
support of VIEW added to QC
sql/sql_cache.h:
support of VIEW added to QC
sql/sql_view.cc:
invalidation of QC added to altering/droping VIEW commands
mysql-test/r/view.result:
query cache part moved to separate test
mysql-test/t/view.test:
query cache part moved to separate test
sql/item_func.cc:
fixed for safety
sql/sql_base.cc:
do not use real table call with view
fixed wrapping * substitured items
fixed fix_fields call parameter (refference)
sql/sql_yacc.yy:
added initialisation of SELECT in commands which can use subqueries
sql/table.cc:
fised fix_fields call parameter
sql/table.h:
new view specific method