Commit bfe5ff3b authored by heikki@donna.mysql.fi's avatar heikki@donna.mysql.fi

row0mysql.c Innobase does not trap now if one creates a table already in Innobase

parent cb3dfd82
......@@ -818,12 +818,19 @@ row_create_table_for_mysql(
if (err != DB_SUCCESS) {
/* We have special error handling here */
ut_a(err == DB_OUT_OF_FILE_SPACE);
trx->error_state = DB_SUCCESS;
trx_general_rollback_for_mysql(trx, FALSE, NULL);
row_drop_table_for_mysql(table->name, trx, TRUE);
if (err == DB_OUT_OF_FILE_SPACE) {
row_drop_table_for_mysql(table->name, trx, TRUE);
} else {
assert(err == DB_DUPLICATE_KEY);
fprintf(stderr,
"Innobase: error: table %s already exists in Innobase data dictionary\n",
table->name);
}
trx->error_state = DB_SUCCESS;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment