diff options
author | unknown <heikki@donna.mysql.fi> | 2001-11-05 18:50:12 +0200 |
---|---|---|
committer | unknown <heikki@donna.mysql.fi> | 2001-11-05 18:50:12 +0200 |
commit | 7999a08c8af3b88900faa5723958305a9d70bebd (patch) | |
tree | 7b2d5da1cb03b0cdc431ed72d65424ecc17a3c8e /innobase/row | |
parent | 0176dacd54b7eb62ebc4a81909b189517aee2cb4 (diff) | |
download | mariadb-git-7999a08c8af3b88900faa5723958305a9d70bebd.tar.gz |
updated
Diffstat (limited to 'innobase/row')
-rw-r--r-- | innobase/row/row0mysql.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/innobase/row/row0mysql.c b/innobase/row/row0mysql.c index 19d2fb744c9..6baa8f5825d 100644 --- a/innobase/row/row0mysql.c +++ b/innobase/row/row0mysql.c @@ -946,11 +946,27 @@ row_create_table_for_mysql( "InnoDB: mysqld and edit my.cnf so that newraw is replaced\n" "InnoDB: with raw, and innodb_force_... is removed.\n"); + trx_commit_for_mysql(trx); + return(DB_ERROR); } trx->op_info = "creating table"; + if (0 == ut_strcmp(table->name, "mysql/host") + || 0 == ut_strcmp(table->name, "mysql/user") + || 0 == ut_strcmp(table->name, "mysql/db")) { + + fprintf(stderr, + "InnoDB: Error: trying to create a MySQL system table %s of type InnoDB.\n" + "InnoDB: MySQL system tables must be of the MyISAM type!\n", + table->name); + + trx_commit_for_mysql(trx); + + return(DB_ERROR); + } + trx_start_if_not_started(trx); namelen = ut_strlen(table->name); @@ -1423,6 +1439,8 @@ funct_exit: que_graph_free(graph); + trx_commit_for_mysql(trx); + trx->op_info = ""; return((int) err); @@ -1508,6 +1526,20 @@ row_rename_table_for_mysql( "InnoDB: mysqld and edit my.cnf so that newraw is replaced\n" "InnoDB: with raw, and innodb_force_... is removed.\n"); + trx_commit_for_mysql(trx); + return(DB_ERROR); + } + + if (0 == ut_strcmp(new_name, "mysql/host") + || 0 == ut_strcmp(new_name, "mysql/user") + || 0 == ut_strcmp(new_name, "mysql/db")) { + + fprintf(stderr, + "InnoDB: Error: trying to create a MySQL system table %s of type InnoDB.\n" + "InnoDB: MySQL system tables must be of the MyISAM type!\n", + new_name); + + trx_commit_for_mysql(trx); return(DB_ERROR); } @@ -1591,6 +1623,8 @@ funct_exit: que_graph_free(graph); + trx_commit_for_mysql(trx); + trx->op_info = ""; return((int) err); |