summaryrefslogtreecommitdiff
path: root/sql/sql_insert.cc
diff options
context:
space:
mode:
authorramil/ram@ramil.myoffice.izhnet.ru <>2007-11-29 08:24:52 +0400
committerramil/ram@ramil.myoffice.izhnet.ru <>2007-11-29 08:24:52 +0400
commit92d4ea79ef7d5c5edff0a1f6a597b9293d9ba547 (patch)
tree69c45e51b5ad646cfafebd6892cd0541e4a558c3 /sql/sql_insert.cc
parent02e321d3502e8771f2092c6167de189423f4ec49 (diff)
parent5adf16e2889ae89ac77e3d2a8d6d2a4225922e53 (diff)
downloadmariadb-git-92d4ea79ef7d5c5edff0a1f6a597b9293d9ba547.tar.gz
Merge mysql.com:/home/ram/work/mysql-5.0-engines
into mysql.com:/home/ram/work/b32676/b32676.5.0
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r--sql/sql_insert.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc
index 65d8bb23706..7273fbf74e3 100644
--- a/sql/sql_insert.cc
+++ b/sql/sql_insert.cc
@@ -585,7 +585,7 @@ bool mysql_insert(THD *thd,TABLE_LIST *table_list,
bool log_on= (thd->options & OPTION_BIN_LOG) ||
(!(thd->security_ctx->master_access & SUPER_ACL));
#endif
- thr_lock_type lock_type = table_list->lock_type;
+ thr_lock_type lock_type;
Item *unused_conds= 0;
DBUG_ENTER("mysql_insert");
@@ -620,6 +620,7 @@ bool mysql_insert(THD *thd,TABLE_LIST *table_list,
if (open_and_lock_tables(thd, table_list))
DBUG_RETURN(TRUE);
}
+ lock_type= table_list->lock_type;
thd->proc_info="init";
thd->used_tables=0;
@@ -637,7 +638,6 @@ bool mysql_insert(THD *thd,TABLE_LIST *table_list,
/* mysql_prepare_insert set table_list->table if it was not set */
table= table_list->table;
- lock_type= table_list->lock_type;
context= &thd->lex->select_lex.context;
/*