fixed typo in the error message
sql/sql_base.cc
fixed bugs in reopen_name_locked_table() after talking to Monty
added a test case for restore + select
sql/slave.cc:
fixed typo in the error message
sql/sql_base.cc:
fixed bugs in reopen_name_locked_table() after talking to Monty