summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <lars/lthalmann@mysql.com/dl145j.mysql.com>2007-02-25 00:31:26 +0100
committerunknown <lars/lthalmann@mysql.com/dl145j.mysql.com>2007-02-25 00:31:26 +0100
commitdbadf93c3e237e1112b6941ef6fb9d49fc3d44c4 (patch)
treedabddcc45ee0d5079e16dbc4f19cb71d29bec14e /sql
parent59d9a319fe7d8a31b8e1d82ebe94b89a5d41255d (diff)
downloadmariadb-git-dbadf93c3e237e1112b6941ef6fb9d49fc3d44c4.tar.gz
log_on needed also in embedded server
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_insert.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc
index cd5f424fc14..613b28faf63 100644
--- a/sql/sql_insert.cc
+++ b/sql/sql_insert.cc
@@ -381,11 +381,9 @@ 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;
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");