summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorlars@mysql.com <>2005-10-10 19:23:13 +0200
committerlars@mysql.com <>2005-10-10 19:23:13 +0200
commitcd0e0a993308231c314caf7aae2420441d71dd80 (patch)
tree1bb839d715adf00000bea3ad8e4e28a2f3dab754 /sql/sql_parse.cc
parent83c103ed81fe9776d44d8e80699749630af17983 (diff)
downloadmariadb-git-cd0e0a993308231c314caf7aae2420441d71dd80.tar.gz
Added missing HAVE_REPLICATION define
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index 54d51e42895..a2ad8a414f8 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -2006,7 +2006,7 @@ mysql_execute_command(THD *thd)
}
#endif
}
-#endif /* !HAVE_REPLICATION */
+#endif /* HAVE_REPLICATION */
/*
When option readonly is set deny operations which change tables.
@@ -2841,6 +2841,7 @@ unsent_create_error:
select_lex)))
break;
+#ifdef HAVE_REPLICATION
/* Check slave filtering rules */
if (thd->slave_thread)
if (all_tables_not_ok(thd,tables))
@@ -2849,6 +2850,7 @@ unsent_create_error:
my_error(ER_SLAVE_IGNORED_TABLE, MYF(0));
break;
}
+#endif /* HAVE_REPLICATION */
res= mysql_multi_update(thd,tables,
&select_lex->item_list,