summaryrefslogtreecommitdiff
path: root/sql/sql_insert.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2004-04-04 03:05:44 +0300
committerunknown <bell@sanja.is.com.ua>2004-04-04 03:05:44 +0300
commit3c01162f0e642d535ec5a8912f77f9f4a96ad8d9 (patch)
tree7c7fbcd5178ca13f005320968ebff647edb2f13f /sql/sql_insert.cc
parente65aed9cbd61f5fc3c7cd396d60a9d6cb1d9b218 (diff)
downloadmariadb-git-3c01162f0e642d535ec5a8912f77f9f4a96ad8d9.tar.gz
removed old way to prevent using stack tables for caching Items in PS
fixed error code in union test mysql-test/t/union.test: right code worr 4.1 error sql/log_event.cc: assign non-cachable for Item status for all stack tables for safety sql/repl_failsafe.cc: assign non-cachable for Item status for all stack tables for safety sql/slave.cc: assign non-cachable for Item status for all stack tables for safety sql/sql_acl.cc: assign non-cachable for Item status for all stack tables for safety sql/sql_base.cc: assign non-cachable for Item status for all stack tables for safety non-cachable status processing sql/sql_cache.cc: assign non-cachable for Item status for all stack tables for safety sql/sql_class.cc: removed ald way to prevent using stack tables for caching Items in PS sql/sql_class.h: removed old way to prevent using stack tables for caching Items in PS sql/sql_help.cc: assign non-cachable for Item status for all stack tables for safety sql/sql_insert.cc: assign non-cachable for Item status for all stack tables for safety removed old way to prevent using stack tables for caching Items in PS sql/table.h: non-cachable for Item status for tables
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r--sql/sql_insert.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc
index f2764a6f1c0..3f943b3a4c6 100644
--- a/sql/sql_insert.cc
+++ b/sql/sql_insert.cc
@@ -82,16 +82,13 @@ check_insert_fields(THD *thd,TABLE *table,List<Item> &fields,
table_list.real_name= table_list.alias= table->table_name;
table_list.table=table;
table_list.grant=table->grant;
+ table_list.non_cachable_table= 1;
thd->dupp_field=0;
- thd->no_table_fix_fields_cache= 1;
if (setup_tables(&table_list) ||
setup_fields(thd, 0, &table_list,fields,1,0,0))
- {
- thd->no_table_fix_fields_cache= 0;
return -1;
- }
- thd->no_table_fix_fields_cache= 0;
+
if (thd->dupp_field)
{
my_error(ER_FIELD_SPECIFIED_TWICE,MYF(0), thd->dupp_field->field_name);