• unknown's avatar
    Bug #20901: CREATE privilege is enough to insert into a table · f9d068bc
    unknown authored
    CREATE TABLE IF NOT EXISTS ... SELECT let you insert into an existing
    table as long as you had the CREATE privilege.  CREATE ... SELECT
    variants now always require INSERT privilege on target table.
    
    
    mysql-test/r/create.result:
      Show that CREATE...SELECT requires INSERT privilege on target table.
    mysql-test/r/grant.result:
      Sort output for a defined state.
    mysql-test/t/create.test:
      Show that CREATE...SELECT requires INSERT privilege on target table.
    mysql-test/t/grant.test:
      Sort output for a defined state.
    sql/sql_parse.cc:
      Require INSERT privilege on target table for CREATE ... SELECT.
    f9d068bc
sql_parse.cc 172 KB