summaryrefslogtreecommitdiff
path: root/sql/sql_insert.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2004-04-04 03:05:44 +0300
committerbell@sanja.is.com.ua <>2004-04-04 03:05:44 +0300
commit1e4af935c142159c9474e169397f629eeff37663 (patch)
tree7c7fbcd5178ca13f005320968ebff647edb2f13f /sql/sql_insert.cc
parentb30c28d85d9b9a1ef6f86282b13c1a28f0ab9eea (diff)
downloadmariadb-git-1e4af935c142159c9474e169397f629eeff37663.tar.gz
removed old way to prevent using stack tables for caching Items in PS
fixed error code in union test
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);