Commit graph

4 commits

Author SHA1 Message Date
unknown
2061a3a6b6 We should not skip temptable view along with other derived
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.
2005-12-01 12:01:38 +02:00
unknown
05c17f2abc Fix bug #13424 locking view with query cache enabled crashes server
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
2005-09-26 19:08:26 +04:00
unknown
2d717b5d94 fixed QC invaluidation and processing with view (BUG#8050) (BUG#8054)
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
2005-01-27 14:21:37 +02:00
unknown
47dc78e6a3 fixed views with PS protocol
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
2005-01-05 16:48:23 +02:00