diff options
author | unknown <anozdrin/alik@quad.> | 2008-02-21 12:17:32 +0300 |
---|---|---|
committer | unknown <anozdrin/alik@quad.> | 2008-02-21 12:17:32 +0300 |
commit | fa08b280857fde69a70c68bd07797624a52ef262 (patch) | |
tree | 82ae7d29a938e72530c3afa2b0a9fde8b5830b91 /mysql-test/r/ps.result | |
parent | d34f8384b3ac5e6d03da17b70877d77a07493e82 (diff) | |
download | mariadb-git-fa08b280857fde69a70c68bd07797624a52ef262.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.
(This is a backport of the original patch for 5.1)
mysql-test/r/view.result:
Fix result file.
mysql-test/r/view_grant.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.
mysql-test/t/view_grant.test:
Fix order-dependency.
sql/sql_view.cc:
Report an error if we're going to work with a table.
Diffstat (limited to 'mysql-test/r/ps.result')
0 files changed, 0 insertions, 0 deletions