diff options
author | unknown <igor@rurik.mysql.com> | 2005-02-15 18:45:42 -0800 |
---|---|---|
committer | unknown <igor@rurik.mysql.com> | 2005-02-15 18:45:42 -0800 |
commit | f1a97c0c49d1193bf37f36b27e968b4185165645 (patch) | |
tree | 4ed11dc8b44f901fd0c2f37a9f2e36eb0e7a8a56 /sql/sql_delete.cc | |
parent | 4c21a10f27c6a15690b5640352d23f1c111ac729 (diff) | |
download | mariadb-git-f1a97c0c49d1193bf37f36b27e968b4185165645.tar.gz |
delete.result, delete.test:
Added a test case for bug #8392.
sql_delete.cc:
Fixed bug #8392.
The bug caused a crash for a delete statement with ORDER BY
that explicitly referred to the modified table.
sql/sql_delete.cc:
Fixed bug #8392.
The bug caused a crash for a delete statement with ORDER BY
that explicitly referred to the modified table.
mysql-test/t/delete.test:
Added a test case for bug #8392.
mysql-test/r/delete.result:
Added a test case for bug #8392.
Diffstat (limited to 'sql/sql_delete.cc')
-rw-r--r-- | sql/sql_delete.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_delete.cc b/sql/sql_delete.cc index 92193e3abf2..475df34dc4f 100644 --- a/sql/sql_delete.cc +++ b/sql/sql_delete.cc @@ -111,6 +111,7 @@ int mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds, ORDER *order, bzero((char*) &tables,sizeof(tables)); tables.table = table; + tables.alias = table_list->alias; table->io_cache = (IO_CACHE *) my_malloc(sizeof(IO_CACHE), MYF(MY_FAE | MY_ZEROFILL)); |