summaryrefslogtreecommitdiff
path: root/mysql-test/t/variables_debug.test
diff options
context:
space:
mode:
authorJon Olav Hauglid <jon.hauglid@oracle.com>2010-10-04 10:25:04 +0200
committerJon Olav Hauglid <jon.hauglid@oracle.com>2010-10-04 10:25:04 +0200
commitc4a18b6af34cee61bcb933f1b0a2597bdfcf098a (patch)
tree36cc0ae2f85c40b60ac4114a7f607a88fdebe886 /mysql-test/t/variables_debug.test
parent8322cad0150bf1389bb4a3344772ef1bd30c0b36 (diff)
downloadmariadb-git-c4a18b6af34cee61bcb933f1b0a2597bdfcf098a.tar.gz
Bug #51099 Assertion in mysql_multi_delete_prepare()
This assert was triggered if DELETE was done on a view that referenced another view which in turn (directly or indirectly) referenced more than one table. Delete from a view referencing more than one table (a join view) is not supported and is supposed to give ER_VIEW_DELETE_MERGE_VIEW error. Before this error was reported from the multi table delete code, an assert verified that the view from the DELETE statement had more than one underlying table. However, this assert did not take into account that the view could refer to another view which in turn referenced the actual tables. This patch fixes the problem by adjusting the assert to take this possibility into account. This problem was only noticeable on debug builds of the server. On release builds, ER_VIEW_DELETE_MERGE_VIEW was correctly reported. Test case added to delete.test.
Diffstat (limited to 'mysql-test/t/variables_debug.test')
0 files changed, 0 insertions, 0 deletions