1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

branches/zip: innobase_check_index_keys(): return 0 instead of DB_SUCCESS,

as documented.  Do not translate the error code.

This function is still broken; we should probably use my_error() for
reporting errors.
This commit is contained in:
marko
2007-08-08 13:57:04 +00:00
parent b532e5059c
commit 77e01ec982

View File

@@ -7907,7 +7907,7 @@ innobase_check_index_keys(
{
Field* field;
ulint key_num;
int error = DB_SUCCESS;
int error = 0;
ibool is_unsigned;
ut_ad(table && innodb_table && trx && key_info && num_of_keys);
@@ -8341,11 +8341,11 @@ ha_innobase::add_index(
error = innobase_check_index_keys(
table, innodb_table, trx, key_info, num_of_keys);
if (UNIV_UNLIKELY(error != DB_SUCCESS)) {
if (UNIV_UNLIKELY(error)) {
err_exit:
mem_heap_free(heap);
trx_general_rollback_for_mysql(trx, FALSE, NULL);
DBUG_RETURN(convert_error_code_to_mysql(error, user_thd));
DBUG_RETURN(error);
}
/* Create table containing all indexes to be built in this