From ac698d493ba9ce3aec441c4d09323015446d0d26 Mon Sep 17 00:00:00 2001 From: "lars/lthalmann@mysql.com/dl145k.mysql.com" <> Date: Sat, 24 Feb 2007 12:30:15 +0100 Subject: [PATCH] log_on variable needed also in embedded library --- sql/sql_insert.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index f4a999f918a..00463b53aa9 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -362,7 +362,6 @@ bool mysql_insert(THD *thd,TABLE_LIST *table_list, List_item *values; Name_resolution_context *context; Name_resolution_context_state ctx_state; -#ifndef EMBEDDED_LIBRARY char *query= thd->query; /* log_on is about delayed inserts only. @@ -371,7 +370,6 @@ 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; Item *unused_conds= 0; DBUG_ENTER("mysql_insert");