diff options
author | kostja@vajra.(none) <> | 2007-05-14 10:56:23 +0400 |
---|---|---|
committer | kostja@vajra.(none) <> | 2007-05-14 10:56:23 +0400 |
commit | 162e9b98666817190e479401b173013aa646eb27 (patch) | |
tree | b7052b32c2ea9697f8cdf1238d300450936b5c1d /sql/sql_insert.cc | |
parent | 25114c7d0925500b12cb25b5f7f17b9015d31039 (diff) | |
download | mariadb-git-162e9b98666817190e479401b173013aa646eb27.tar.gz |
Fix a warning.
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r-- | sql/sql_insert.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index febc7883f62..26caf059e73 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -483,11 +483,6 @@ bool mysql_insert(THD *thd,TABLE_LIST *table_list, bool ignore) { int error, res; - /* - log_on is about delayed inserts only. - By default, both logs are enabled (this won't cause problems if the server - runs without --log-update or --log-bin). - */ bool transactional_table, joins_freed= FALSE; bool changed; uint value_count; @@ -501,9 +496,14 @@ bool mysql_insert(THD *thd,TABLE_LIST *table_list, Name_resolution_context_state ctx_state; #ifndef EMBEDDED_LIBRARY char *query= thd->query; -#endif + /* + log_on is about delayed inserts only. + By default, both logs are enabled (this won't cause problems if the server + runs without --log-update or --log-bin). + */ 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"); |