diff options
author | unknown <bell@sanja.is.com.ua> | 2004-09-08 10:18:04 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2004-09-08 10:18:04 +0300 |
commit | cbdbccafd1328e09a48375ca497e82afffc97ca6 (patch) | |
tree | 09e24097656202a2f0bff94dbc2778035a4118fa /sql/sql_delete.cc | |
parent | 791afd62938c82e54eaa1ac9f422533b6259ace3 (diff) | |
download | mariadb-git-cbdbccafd1328e09a48375ca497e82afffc97ca6.tar.gz |
test of updating and fetching from the same table check (BUG##5157)
mysql-test/r/lowercase_view.result:
test of updating and fetching from the same table check
mysql-test/r/view.result:
test of updating and fetching from the same table check
mysql-test/t/lowercase_view.test:
test of updating and fetching from the same table check
mysql-test/t/view.test:
test of updating and fetching from the same table check
sql/mysql_priv.h:
unique table test
sql/sql_base.cc:
unique table test which take into account views added
sql/sql_delete.cc:
unique table test which take into account views added
sql/sql_insert.cc:
unique table test which take into account views added
sql/sql_parse.cc:
unique table test which take into account views added
sql/sql_update.cc:
unique table test which take into account views added
sql/sql_view.cc:
unique table test which take into account views added
sql/table.h:
save next independent (do not belong to current view) table
Diffstat (limited to 'sql/sql_delete.cc')
-rw-r--r-- | sql/sql_delete.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_delete.cc b/sql/sql_delete.cc index 089c0c00c3b..291504dae88 100644 --- a/sql/sql_delete.cc +++ b/sql/sql_delete.cc @@ -282,8 +282,7 @@ int mysql_prepare_delete(THD *thd, TABLE_LIST *table_list, Item **conds) my_error(ER_NON_UPDATABLE_TABLE, MYF(0), table_list->alias, "DELETE"); DBUG_RETURN(-1); } - if (find_table_in_global_list(table_list->next_global, - table_list->db, table_list->real_name)) + if (unique_table(table_list, table_list->next_independent())) { my_error(ER_UPDATE_TABLE_USED, MYF(0), table_list->real_name); DBUG_RETURN(-1); |