diff options
author | unknown <anozdrin/alik@quad.> | 2008-02-20 22:23:39 +0300 |
---|---|---|
committer | unknown <anozdrin/alik@quad.> | 2008-02-20 22:23:39 +0300 |
commit | 792eb1f17beb1bd8a52c780605c7502f89c3eaed (patch) | |
tree | 2a2ddbf915e37d20e3a5b3c2624dad304ae6431f /netware | |
parent | 0705693075e8bda8028234f87d91084bdeb818a4 (diff) | |
download | mariadb-git-792eb1f17beb1bd8a52c780605c7502f89c3eaed.tar.gz |
Fix for Bug#34337: Server crash when Altering a view using
a table name.
The problem was that fill_defined_view_parts() did not return
an error if a table is going to be altered. That happened if
the table was already in the table cache. In that case,
open_table() returned non-NULL value (valid TABLE-instance from
the cache).
The fix is to ensure that an error is thrown even if the table
is in the cache.
mysql-test/r/view.result:
Fix result file.
mysql-test/t/view.test:
Add a test case for Bug#34337: Server crash when Altering a view
using a table name.
sql/sql_view.cc:
Report an error if we're going to work with a table.
Diffstat (limited to 'netware')
0 files changed, 0 insertions, 0 deletions