1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

fix misplaced and non-working if() in the grammar

few small post-merge fixes
This commit is contained in:
Sergei Golubchik
2011-07-12 17:41:13 +02:00
parent c97f938bcf
commit aac3a1eac9
11 changed files with 18 additions and 49 deletions

View File

@@ -6598,10 +6598,8 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name,
if ((error= table->file->add_index(table, key_info, index_add_count,
&add)))
{
#ifdef MERGE_MONTY_ADDITION_THAT_BREAKS_5_5_TESTS
/* Only report error if handler has not already reported an error */
if (!thd->main_da.is_error())
#endif
if (!thd->is_error())
{
/*
Exchange the key_info for the error message. If we exchange