1. 24 May, 2007 1 commit
  2. 23 May, 2007 4 commits
    • dlenev@mockturtle.local's avatar
      5.0 version of fix for: · c07b3670
      dlenev@mockturtle.local authored
       Bug #23667 "CREATE TABLE LIKE is not isolated from alteration
                   by other connections"
       Bug #18950 "CREATE TABLE LIKE does not obtain LOCK_open"
      As well as:
       Bug #25578 "CREATE TABLE LIKE does not require any privileges
                   on source table".
      
      The first and the second bugs resulted in various errors and wrong
      binary log order when one tried to execute concurrently CREATE TABLE LIKE
      statement and DDL statements on source table or DML/DDL statements on its
      target table.
      
      The problem was caused by incomplete protection/table-locking against
      concurrent statements implemented in mysql_create_like_table() routine.
      We solve it by simply implementing such protection in proper way (see
      comment for sql_table.cc for details).
      
      The third bug allowed user who didn't have any privileges on table create
      its copy and therefore circumvent privilege check for SHOW CREATE TABLE.
      
      This patch solves this problem by adding privilege check, which was missing.
      
      Finally it also removes some duplicated code from mysql_create_like_table().
      
      Note that, altough tests covering concurrency-related aspects of CREATE TABLE
      LIKE behaviour will only be introduced in 5.1, they were run manually for
      this patch as well.
      c07b3670
    • svoj@june.mysql.com's avatar
      Merge mysql.com:/home/svoj/devel/mysql/merge/mysql-4.1-engines · 43b2dc18
      svoj@june.mysql.com authored
      into  mysql.com:/home/svoj/devel/mysql/merge/mysql-5.0-engines
      43b2dc18
    • svoj@mysql.com/june.mysql.com's avatar
      Merge mysql.com:/home/svoj/devel/bk/mysql-5.0 · 122167bb
      svoj@mysql.com/june.mysql.com authored
      into  mysql.com:/home/svoj/devel/mysql/merge/mysql-5.0-engines
      122167bb
    • svoj@mysql.com/june.mysql.com's avatar
      Merge mysql.com:/home/svoj/devel/bk/mysql-4.1 · a4ddc226
      svoj@mysql.com/june.mysql.com authored
      into  mysql.com:/home/svoj/devel/mysql/merge/mysql-4.1-engines
      a4ddc226
  3. 22 May, 2007 3 commits
  4. 21 May, 2007 6 commits
  5. 19 May, 2007 2 commits
  6. 18 May, 2007 24 commits