• Michael Widenius's avatar
    Fixed the CREATE TABLE IF EXIST generates warnings instead of errors · 2dbce3d0
    Michael Widenius authored
    mysql-test/r/create.result:
      Updated test results
    mysql-test/t/create.test:
      Updated test
    sql/sql_base.cc:
      Use push_internal_handler/pop_internal_handler to avoid errors & warnings instead of clear_error
      Give a warnings instead of an error for CREATE TABLE IF EXISTS
    sql/sql_parse.cc:
      Check if we failed because of table exists (can only happen from create)
    sql/sql_table.cc:
      Check if we failed because of table exists (can only happen from create)
    2dbce3d0
sql_table.cc 250 KB