1. 12 Nov, 2007 8 commits
    • unknown's avatar
      Merge mattiasj-laptop.(none):/home/mattiasj/clones/mysql-5.1-bug31705 · bd7cc2c0
      unknown authored
      into  mattiasj-laptop.(none):/home/mattiasj/clones/mysql-5.1-lastfinaltopush
      
      bd7cc2c0
    • unknown's avatar
      Merge mattiasj-laptop.(none):/home/mattiasj/clones/mysql-5.1-bug32091 · db59df73
      unknown authored
      into  mattiasj-laptop.(none):/home/mattiasj/clones/mysql-5.1-lastfinaltopush
      
      db59df73
    • unknown's avatar
      Bug#31705 Partitions: crash if varchar length > 65530 · a78ee776
      unknown authored
      Buffer overflow due to wrong key length in partitioning
      
      Changed to the correct key_length function.
      
      
      sql/opt_range.cc:
        Bug#31705 Partitions: crash if varchar length > 65530
        Problem: buffer overflow due to wrong key-length
        
        Fix: Using correct key_length function
      mysql-test/r/partition_datatype.result:
        Bug#31705 Partitions: crash if varchar length > 65530
        New test-result case for testing all column types
        used in key-partitioning.
        
        (For verifying correct key-length use)
      mysql-test/t/partition_datatype.test:
        Bug#31705 Partitions: crash if varchar length > 65530 
        New test case for testing all column types
        used in key-partitioning.
        
        (For verifying correct key-length used)
      a78ee776
    • unknown's avatar
      Bug#32091: Security breach via directory changes · 4737de04
      unknown authored
      Merge fix
      
      partition_mgm did not require have_symlink.
      
      Moved the test case to partition_symlink, which
      require have_symlink, and should work on both *nix and
      Windows
      
      
      mysql-test/r/partition_mgm.result:
        Bug#32091: Security breach via directory changes
        
        Moved the test case to partition_symlink.
      mysql-test/t/partition_mgm.test:
        Bug#32091: Security breach via directory changes
        
        Moved the test case to partition_symlink.
      mysql-test/r/partition_symlink.result:
        Bug#32091: Security breach via directory changes
        
        Moved the test case to partition_symlink. It requires
        have_symlink.
      mysql-test/t/partition_symlink.test:
        Bug#32091: Security breach via directory changes
        
        Moved the test case to partition_symlink. It requires
        have_symlink.
      4737de04
    • unknown's avatar
      Merge mysql.com:/home/svoj/devel/mysql/BUG32111/mysql-5.0-engines · c80c6ccf
      unknown authored
      into  mysql.com:/home/svoj/devel/mysql/BUG32111/mysql-5.1-engines
      
      
      mysql-test/r/symlink.result:
        Auto merged
      mysql-test/t/symlink.test:
        Auto merged
      mysys/my_symlink2.c:
        Auto merged
      c80c6ccf
    • unknown's avatar
      Merge mysql.com:/home/svoj/devel/mysql/BUG32111/mysql-4.1-engines · 7cc910a0
      unknown authored
      into  mysql.com:/home/svoj/devel/mysql/BUG32111/mysql-5.0-engines
      
      
      mysql-test/r/symlink.result:
        Auto merged
      mysql-test/t/symlink.test:
        Auto merged
      mysys/my_symlink2.c:
        Auto merged
      7cc910a0
    • unknown's avatar
      After merge fix. · e8e897bc
      unknown authored
      e8e897bc
    • unknown's avatar
      Merge mysql.com:/home/svoj/devel/mysql/BUG32111/mysql-4.0 · 0f7e921a
      unknown authored
      into  mysql.com:/home/svoj/devel/mysql/BUG32111/mysql-4.1-engines
      
      
      mysys/my_symlink2.c:
        Auto merged
      mysql-test/r/symlink.result:
        SCCS merged
      mysql-test/t/symlink.test:
        SCCS merged
      0f7e921a
  2. 11 Nov, 2007 1 commit
    • unknown's avatar
      Bug#31210 - INSERT DELAYED crashes server when used on · c9e0ea59
      unknown authored
                    partitioned table
        
      Post-pushbuild fix
        
      Pushbuild detected a new need for lex initialization in
      embedded server.
      
      Fixed test for INSERT DELAYED in partitions_hash.test so that
      it works with embedded server.
      
      
      libmysqld/lib_sql.cc:
        Bug#31210 - INSERT DELAYED crashes server when used on
                        partitioned table
        Initialized lex for later use in open_table().
      mysql-test/r/partition_hash.result:
        Bug#31210 - INSERT DELAYED crashes server when used on
                        partitioned table
        Fixed test result for embedded server.
      mysql-test/t/partition_hash.test:
        Bug#31210 - INSERT DELAYED crashes server when used on
                        partitioned table
        Fixed test for embedded server.
      c9e0ea59
  3. 10 Nov, 2007 4 commits
    • unknown's avatar
      Bug#32091: Security breach via directory changes · 5ffe36e2
      unknown authored
      Changed test case from GRANT to CREATE USER
      
      
      mysql-test/r/partition_mgm.result:
        Bug#32091: Security breach via directory changes
        test result
      mysql-test/t/partition_mgm.test:
        Bug#32091: Security breach via directory changes
        Changed test case from GRANT to CREATE USER
      5ffe36e2
    • unknown's avatar
      Bug#32091: Security breach via directory changes · 34f43689
      unknown authored
      small fix of test case (when running make test after
      merge, it did not substitute MYSQLTEST_VARDIR in
      the error)
      
      
      mysql-test/r/partition_mgm.result:
        Bug#32091: Security breach via directory changes
        small fix in test result
      mysql-test/t/partition_mgm.test:
        Bug#32091: Security breach via directory changes
        small fix in test case
      34f43689
    • unknown's avatar
      Bug#31210 - INSERT DELAYED crashes server when used on · 09e88154
      unknown authored
                  partitioned table
      
      Post-merge fix
      
      A new need for lex initialization arose.
      
      
      sql/ha_ndbcluster.cc:
        Bug#31210 - INSERT DELAYED crashes server when used on
                    partitioned table
        Initialized lex for later use in open_table().
      09e88154
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.1-engines · a883192f
      unknown authored
      into  stella.local:/home2/mydev/mysql-5.1-bug31210
      
      
      sql/sql_acl.cc:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_connect.cc:
        Auto merged
      sql/sql_insert.cc:
        Auto merged
      sql/sql_lex.cc:
        Auto merged
      sql/sql_lex.h:
        Auto merged
      sql/sql_servers.cc:
        Auto merged
      sql/sql_udf.cc:
        Auto merged
      sql/table.cc:
        Auto merged
      a883192f
  4. 09 Nov, 2007 2 commits
    • unknown's avatar
      Bug#32091: Security breach via directory changes · 21d5aef8
      unknown authored
      Problem: the table's INDEX and DATA DIR was taken
        directly from the table's first partition.
        This allowed rename attack similar to
        bug#32111 when ALTER TABLE REMOVE PARTITIONING
      
      Solution: Silently ignore the INDEX/DATA DIR
        for the table. (Like some other storage engines
        do). 
        Partitioned tables do not support DATA/INDEX
        DIR on the table level, only on its partitions.
      
      
      mysql-test/r/partition_mgm.result:
        Bug#32091: Security breach via directory changes
        test result
      mysql-test/t/partition_mgm.test:
        Bug#32091: Security breach via directory changes
        test case
      sql/ha_partition.cc:
        Bug#32091: Security breach via directory changes
        
        Do not use the first partition's DATA/INDEX DIR
        as the table's DATA/INDEX DIR.
        (A partitioned table do not have support for DATA/
        INDEX DIR, only its partitions do)
      21d5aef8
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.1-engines · 232d42ae
      unknown authored
      into  stella.local:/home2/mydev/mysql-5.1-bug22351
      
      
      sql/handler.cc:
        Auto merged
      232d42ae
  5. 07 Nov, 2007 2 commits
    • unknown's avatar
      Merge pcg5ppc.xiphis.org:/Network/Servers/anubis.xiphis.org/home/antony/work/p1-bug30671.3 · c9d5909e
      unknown authored
      into  pcg5ppc.xiphis.org:/Network/Servers/anubis.xiphis.org/home/antony/work/p1-bug30671.3.merge-5.1
      
      c9d5909e
    • unknown's avatar
      Bug#22351 - handler::index_next_same() call to key_cmp_if_same() uses · 07c701ab
      unknown authored
                  the wrong buffer
      
      handler::index_next_same() did not take into account that the
      internally called function key_cmp_if_same() uses the fixed
      buffer table->record[0] for key comparison instead of the
      buffer provided by the caller of handler::index_next_same().
      
      Added code to temporarily redirect table->record[0] and the fields
      used for the key to the record buffer provided by the caller of
      handler::index_next_same().
      
      The test case is in partition.test already.
      
      
      sql/handler.cc:
        Bug#22351 - handler::index_next_same() call to key_cmp_if_same() uses
                    the wrong buffer
        Added code to temporarily redirect table->record[0] and the fields
        used for the key to the record buffer provided by the caller of
        handler::index_next_same().
      07c701ab
  6. 06 Nov, 2007 9 commits
    • unknown's avatar
      BUG#32111 - Security Breach via DATA/INDEX DIRECORY and RENAME TABLE · a837ff41
      unknown authored
      RENAME TABLE against a table with DATA/INDEX DIRECTORY overwrites
      the file to which the symlink points.
      
      This is security issue, because it is possible to create a table with
      some name in some non-system database and set DATA/INDEX DIRECTORY
      to mysql system database. Renaming this table to one of mysql system
      tables (e.g. user, host) would overwrite the system table.
      
      Return an error when the file to which the symlink points exist.
      
      
      mysql-test/r/symlink.result:
        A test case for BUG#32111.
      mysql-test/t/symlink.test:
        A test case for BUG#32111.
      mysys/my_symlink2.c:
        Return an error when the file to which the symlink points exist.
      a837ff41
    • unknown's avatar
      Bug#4692 - DISABLE/ENABLE KEYS waste a space · e961f016
      unknown authored
      Post-merge fix. Moved test into 5.0 section.
      
      e961f016
    • unknown's avatar
      Merge stella.local:/home2/mydev/mysql-5.0-axmrg · d742cec6
      unknown authored
      into  stella.local:/home2/mydev/mysql-5.1-axmrg
      
      
      mysql-test/t/ctype_uca.test:
        Auto merged
      mysql-test/r/myisam.result:
        Manual merge from 5.0.
      mysql-test/t/myisam.test:
        Manual merge from 5.0.
      mysql-test/t/subselect.test:
        Manual merge from 5.0.
      storage/myisam/mi_check.c:
        Manual merge from 5.0.
      d742cec6
    • unknown's avatar
      Merge stella.local:/home2/mydev/mysql-5.1-amain · 9389a2a2
      unknown authored
      into  stella.local:/home2/mydev/mysql-5.1-axmrg
      
      9389a2a2
    • unknown's avatar
      Merge stella.local:/home2/mydev/mysql-5.0-amain · 69951a7f
      unknown authored
      into  stella.local:/home2/mydev/mysql-5.0-axmrg
      
      69951a7f
    • unknown's avatar
      Merge stella.local:/home2/mydev/mysql-5.0-ateam · d948921f
      unknown authored
      into  stella.local:/home2/mydev/mysql-5.0-axmrg
      
      d948921f
    • unknown's avatar
      Bug#4692 - DISABLE/ENABLE KEYS waste a space · 6b50443b
      unknown authored
      Disabling and enabling indexes on a non-empty table grows the
      index file.
      
      Disabling indexes just sets a flag per non-unique index and does not
      free the index blocks of the affected indexes. Re-enabling indexes
      creates new indexes with new blocks. The old blocks remain unused
      in the index file.
      
      Fixed by dropping and re-creating all indexes if non-empty disabled
      indexes exist when enabling indexes. Dropping all indexes resets
      the internal end-of-file marker to the end of the index file header.
      It also clears the root block pointers of every index and clears the
      deleted blocks chains. This way all blocks are declared as free.
      
      
      myisam/mi_check.c:
        Bug#4692 - DISABLE/ENABLE KEYS waste a space
        Added function mi_drop_all_indexes() to support drop of all indexes
        in case we want to re-enable non-empty disabled indexes.
        Changed mi_repair(), mi_repair_by_sort(), and mi_repair_parallel()
        to use the new function instead of duplicate drop index code.
      mysql-test/r/myisam.result:
        Bug#4692 - DISABLE/ENABLE KEYS waste a space
        Added test result.
      mysql-test/t/myisam.test:
        Bug#4692 - DISABLE/ENABLE KEYS waste a space
        Added test.
      6b50443b
    • unknown's avatar
      Merge mysql.com:/home/svoj/devel/mysql/BUG31950/mysql-5.0-engines · c7a26788
      unknown authored
      into  mysql.com:/home/svoj/devel/mysql/BUG31950/mysql-5.1-engines
      
      
      storage/myisam/ft_parser.c:
        Use local.
      c7a26788
    • unknown's avatar
      Merge svojtovich@bk-internal.mysql.com:/home/bk/mysql-5.0-engines · 26c75106
      unknown authored
      into  mysql.com:/home/svoj/devel/mysql/BUG31950/mysql-5.0-engines
      
      26c75106
  7. 05 Nov, 2007 5 commits
    • unknown's avatar
      Bug#31210 - INSERT DELAYED crashes server when used on · af2160b6
      unknown authored
                  partitioned table
      
      Trying INSERT DELAYED on a partitioned table, that has not been
      used right before, crashes the server. When a table is used for
      select or update, it is kept open for some time. This period I
      mean with "right before".
      
      Information about partitioning of a table is stored in form of
      a string in the .frm file. Parsing of this string requires a
      correctly set up lexical analyzer (lex). The partitioning code
      uses a new temporary instance of a lex. But it does still refer
      to the previously active lex. The delayd insert thread does not
      initialize its lex though...
      
      Added initialization for thd->lex before open table in the delayed
      thread and at all other places where it is necessary to call
      lex_start() if all tables would be partitioned and need to parse
      the .frm file.
      
      
      mysql-test/r/partition_hash.result:
        Bug#31210 - INSERT DELAYED crashes server when used on
                    partitioned table
        Added test result
      mysql-test/t/partition_hash.test:
        Bug#31210 - INSERT DELAYED crashes server when used on
                    partitioned table
        Added test
      sql/event_scheduler.cc:
        Bug#31210 - INSERT DELAYED crashes server when used on
                    partitioned table
        Initialized lex for later use in open_table().
      sql/events.cc:
        Bug#31210 - INSERT DELAYED crashes server when used on
                    partitioned table
        Initialized lex for later use in open_table().
      sql/ha_ndbcluster_binlog.cc:
        Bug#31210 - INSERT DELAYED crashes server when used on
                    partitioned table
        Initialized lex for later use in open_table().
      sql/slave.cc:
        Bug#31210 - INSERT DELAYED crashes server when used on
                    partitioned table
        Initialized lex for later use in open_table().
      sql/sql_acl.cc:
        Bug#31210 - INSERT DELAYED crashes server when used on
                    partitioned table
        Initialized lex for later use in open_table().
      sql/sql_base.cc:
        Bug#31210 - INSERT DELAYED crashes server when used on
                    partitioned table
        Asserted that lex is initialized in open_table().
      sql/sql_connect.cc:
        Bug#31210 - INSERT DELAYED crashes server when used on
                    partitioned table
        Initialized lex for later use in open_table().
      sql/sql_insert.cc:
        Bug#31210 - INSERT DELAYED crashes server when used on
                    partitioned table
        Added initialization for thd->lex before open table.
      sql/sql_lex.cc:
        Bug#31210 - INSERT DELAYED crashes server when used on
                    partitioned table
        Added 'is_lex_started' to test if lex is initialized.
      sql/sql_lex.h:
        Bug#31210 - INSERT DELAYED crashes server when used on
                    partitioned table
        Added 'is_lex_started' to test if lex is initialized.
      sql/sql_plugin.cc:
        Bug#31210 - INSERT DELAYED crashes server when used on
                    partitioned table
        Initialized lex for later use in open_table().
      sql/sql_servers.cc:
        Bug#31210 - INSERT DELAYED crashes server when used on
                    partitioned table
        Initialized lex for later use in open_table().
      sql/sql_udf.cc:
        Bug#31210 - INSERT DELAYED crashes server when used on
                    partitioned table
        Initialized lex for later use in open_table().
      sql/table.cc:
        Bug#31210 - INSERT DELAYED crashes server when used on
                    partitioned table
        Asserted that lex is initialized in open_table_from_share().
      sql/tztime.cc:
        Bug#31210 - INSERT DELAYED crashes server when used on
                    partitioned table
        Initialized lex for later use in open_table().
      af2160b6
    • unknown's avatar
      Bug#32108 - subselect.test produces warnings files · 243eb3a9
      unknown authored
      Comment sign of -- at line begin in test files lead to warnings
      from mysqltest.
        
      Changed -- to #.
      
      
      mysql-test/t/subselect.test:
        Bug#32108 - subselect.test produces warnings files
        Changed -- to # at comment begin to avoid warnings files.
      243eb3a9
    • unknown's avatar
      Bug#32107 - ctype_uca.test produces warnings files · afdbc3d7
      unknown authored
      Comment sign of -- at line begin in test files lead to warnings
      from mysqltest.
        
      Changed -- to #.
      
      
      mysql-test/t/ctype_uca.test:
        Bug#32107 - ctype_uca.test produces warnings files
        Changed -- to # at comment begin to avoid warnings files.
      afdbc3d7
    • unknown's avatar
      workaround for case insensitive filesystems · b2e48b90
      unknown authored
      b2e48b90
    • unknown's avatar
      Bug#4692 - DISABLE/ENABLE KEYS waste a space · 425ae87d
      unknown authored
      Fixed absurd compiler warnings of a Suse 10.1 system.
      
      425ae87d
  8. 03 Nov, 2007 1 commit
  9. 02 Nov, 2007 8 commits