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

Fix for bug#7211: information_schema: crash if bad view(after review)

This commit is contained in:
unknown
2004-12-16 17:44:36 +03:00
parent 8c5a5c32c5
commit 0e7f1ae3a0
3 changed files with 25 additions and 1 deletions

View File

@@ -2871,7 +2871,14 @@ static int get_schema_views_record(THD *thd, struct st_table_list *tables,
table->file->write_row(table->record[0]);
}
}
DBUG_RETURN(res);
else
{
if (tables->view)
push_warning(thd, MYSQL_ERROR::WARN_LEVEL_WARN,
thd->net.last_errno, thd->net.last_error);
thd->clear_error();
}
DBUG_RETURN(0);
}