diff options
author | unknown <hf@deer.(none)> | 2003-09-08 14:46:44 +0500 |
---|---|---|
committer | unknown <hf@deer.(none)> | 2003-09-08 14:46:44 +0500 |
commit | 8aff7009fd50a6d0fc843a8d0342cbef53f4c839 (patch) | |
tree | a5e03d3a9596e16745e40b54d7c0f8c9bb445267 /sql | |
parent | 2a5b413ab13bcbd5a9fbef914657c7fac2d27246 (diff) | |
download | mariadb-git-8aff7009fd50a6d0fc843a8d0342cbef53f4c839.tar.gz |
fix for #1211
sql/sql_parse.cc:
Replication's commands were allowed, but didn't have proper implementations
for embedded library
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_parse.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 663567acfbd..4482342f4ce 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -1499,6 +1499,8 @@ mysql_execute_command(void) res = mysql_restore_table(thd, tables); break; } + +#ifndef EMBEDDED_LIBRARY case SQLCOM_CHANGE_MASTER: { if (check_global_access(thd, SUPER_ACL)) @@ -1535,6 +1537,8 @@ mysql_execute_command(void) else res = load_master_data(thd); break; + +#endif /*!EMBEDDED_LIBRARY*/ #ifdef HAVE_INNOBASE_DB case SQLCOM_SHOW_INNODB_STATUS: @@ -1546,6 +1550,7 @@ mysql_execute_command(void) } #endif +#ifndef EMBEDDED_LIBRARY case SQLCOM_LOAD_MASTER_TABLE: { if (!tables->db) @@ -1572,6 +1577,8 @@ mysql_execute_command(void) UNLOCK_ACTIVE_MI; break; } +#endif /*!EMBEDDED_LIBRARY*/ + case SQLCOM_CREATE_TABLE: { ulong want_priv= ((lex->create_info.options & HA_LEX_CREATE_TMP_TABLE) ? @@ -1676,6 +1683,7 @@ mysql_execute_command(void) res = mysql_create_index(thd, tables, lex->key_list); break; +#ifndef EMBEDDED_LIBRARY case SQLCOM_SLAVE_START: { LOCK_ACTIVE_MI; @@ -1708,6 +1716,8 @@ mysql_execute_command(void) UNLOCK_ACTIVE_MI; break; } +#endif /*!EMBEDDED_LIBRARY*/ + case SQLCOM_ALTER_TABLE: #if defined(DONT_ALLOW_SHOW_COMMANDS) send_error(&thd->net,ER_NOT_ALLOWED_COMMAND); /* purecov: inspected */ |