1. 23 Dec, 2004 6 commits
    • unknown's avatar
      WL#2126 - Multi_read_range. · 8d11c01c
      unknown authored
      Added the required structures and functions for
      handing over multiple key ranges to the table handler.
      
      
      include/my_base.h:
        WL#2126 - Multi_read_range.
        Moved key range flags from sql/opt_range.h to here.
        Added the multi-range structure.
      sql/handler.cc:
        WL#2126 - Multi_read_range.
        Added the new table handler methods.
      sql/handler.h:
        WL#2126 - Multi_read_range.
        Added a new table flag.
        Added a declaration for the handler buffer.
        Added new elements to class handler.
        Added new function declarations.
      sql/mysqld.cc:
        WL#2126 - Multi_read_range.
        Added an option to set new system variable 'multi_range_count'.
      sql/opt_range.cc:
        WL#2126 - Multi_read_range.
        Added initialization for the new class members.
        Added initialization for the extended get_next().
        Added de-initialization for the allocated buffers.
        Added a buffer allocation method.
        Added an inner loop to collect multiple ranges.
        Adapted range collection loops to the new initialization.
      sql/opt_range.h:
        WL#2126 - Multi_read_range.
        Moved key range flags from here to include/my_base.h.
        Added new elements to class QUICK_RANGE_SELECT.
        Added a copy constructor.
      sql/records.cc:
        WL#2126 - Multi_read_range.
        Added a call of the allocation method.
      sql/set_var.cc:
        WL#2126 - Multi_read_range.
        Added the new system variable 'multi_range_count'.
      sql/sql_class.h:
        WL#2126 - Multi_read_range.
        Added the new system variable 'multi_range_count'.
      8d11c01c
    • unknown's avatar
      Fix for embedded · dd6981f4
      unknown authored
      dd6981f4
    • unknown's avatar
      Fix compile error, caused by wl#925 variable rename · 0cc6e447
      unknown authored
      
      sql/sql_acl.cc:
        Fix compile error
      0cc6e447
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 90b56f21
      unknown authored
      into pcgem.rdg.cyberkinetica.com:/usr/home/acurtis/work/wl925.4
      
      
      mysql-test/r/information_schema.result:
        Auto merged
      sql/sql_show.cc:
        Auto merged
      90b56f21
    • unknown's avatar
      WL#925 - Privileges for stored routines · 09ce0b33
      unknown authored
        Implement fine-grained control over access to stored procedures
        Privileges are cached (same way as existing table/column privs)
        
      
      
      mysql-test/include/system_db_struct.inc:
        WL#925 - Privileges for stored routines
          New system table: procs_priv
      mysql-test/r/connect.result:
        WL#925 - Privileges for stored routines
          New system table: procs_priv
      mysql-test/r/grant.result:
        WL#925 - Privileges for stored routines
          user table has additional privilege attributes
          SHOW PRIVILEGES amended
      mysql-test/r/grant2.result:
        Fix result
      mysql-test/r/information_schema.result:
        WL#925 - Privileges for stored routines
          New system table procs_priv
          New user privileges
      mysql-test/r/show_check.result:
        Fix result
      mysql-test/r/sp-security.result:
        WL#925 - Privileges for stored routines
          Fix existing tests to work with new privileges
          New tests for new privileges
      mysql-test/r/sp.result:
        WL#925 - Privileges for stored routines
          Fix SHOW PRIVILEGES results
      mysql-test/r/system_mysql_db.result:
        WL#925 - Privileges for stored routines
          New system table: procs_priv
          user and db tables have new privilege attributes
      mysql-test/t/grant2.test:
        Fix test
      mysql-test/t/show_check.test:
        Fix test
      mysql-test/t/sp-security.test:
        WL#925 - Privileges for stored routines
          Allow existing tests to run with new privilege checks
          New tests for privileges
      mysql-test/t/system_mysql_db_fix.test:
        WL#925 - Privileges for stored routines
          New system table: procs_priv
      scripts/mysql_create_system_tables.sh:
        WL#925 - Privileges for stored routines
          db and user has new privilege attributes
          new system table: procs_priv
      scripts/mysql_fix_privilege_tables.sql:
        WL#925 - Privileges for stored routines
          new system table: procs_priv
      scripts/mysql_install_db.sh:
        WL#925 - Privileges for stored routines
          Amend comment
      sql/item_func.cc:
        WL#925 - Privileges for stored routines
          Privilege check for stored FUNCTION routine
      sql/lex.h:
        WL#925 - Privileges for stored routines
          new token ROUTINE
      sql/mysql_priv.h:
        WL#925 - Privileges for stored routines
          New function: check_procedure_access()
      sql/mysqld.cc:
        WL#925 - Privileges for stored routines
          system option automatic-sp-privileges
      sql/set_var.cc:
        WL#925 - Privileges for stored routines
          system option automatic-sp-privileges
      sql/share/errmsg.txt:
        WL#925 - Privileges for stored routines
          rename errormessage to conform:
            ER_SP_ACCESS_DENIED_ERROR -> ER_PROCACCESS_DENIED_ERROR
          New error messages
            ER_NONEXISTING_PROC_GRANT, ER_PROC_AUTO_GRANT_FAIL, ER_PROC_AUTO_REVOKE_FAIL
      sql/sp.cc:
        WL#925 - Privileges for stored routines
          new function: sp_exists_routine()
      sql/sp.h:
        WL#925 - Privileges for stored routines
          new function: sp_exists_routine()
      sql/sql_acl.cc:
        WL#925 - Privileges for stored routines
          Implementation for SP privileges.
          Privileges are cached in memory hash.
          New functions:
            mysql_procedure_grant()
            check_grant_procedure()
            sp_revoke_privileges()
            sp_grant_privileges()
      sql/sql_acl.h:
        WL#925 - Privileges for stored routines
          New privilege bits: CREATE_PROC_ACL, ALTER_PROC_ACL
          Alter confusing bit-segments to be shifted
          New macros: fix_rights_for_procedure() get_rights_for_procedure()
          New functions:
            mysql_procedure_grant()
            check_grant_procedure()
            sp_grant_privileges()
            sp_revoke_privileges()
      sql/sql_lex.h:
        WL#925 - Privileges for stored routines
          new all_privileges attribute in LEX
      sql/sql_parse.cc:
        WL#925 - Privileges for stored routines
          Remove function: check_sp_definer_access()
          Add handling for SP grants/revokes
          Add privilege checks for stored procedure invocation
      sql/sql_show.cc:
        WL#925 - Privileges for stored routines
          update result for SHOW PRIVILEGES
      sql/sql_yacc.yy:
        WL#925 - Privileges for stored routines
          New token ROUTINE
          rename some rules
          handle CREATE ROUTINE / ALTER ROUTINE privileges
      09ce0b33
    • unknown's avatar
      Bug#7219 information_schema: errors in "columns" · 1fabc5de
      unknown authored
      changed field names in 'collations' table(discussed with PGulutzan)
      
      
      mysql-test/r/information_schema.result:
        result fix
      mysql-test/t/information_schema.test:
        test for bug2719
      1fabc5de
  2. 21 Dec, 2004 11 commits
  3. 20 Dec, 2004 6 commits
  4. 19 Dec, 2004 11 commits
    • unknown's avatar
      Changed mode of result files to -rw-rw-r-- · fb69c851
      unknown authored
      
      mysql-test/r/federated.result:
        Change mode to -rw-rw-r--
      mysql-test/r/fulltext2.result:
        Change mode to -rw-rw-r--
      mysql-test/r/grant2.result:
        Change mode to -rw-rw-r--
      mysql-test/r/information_schema_inno.result:
        Change mode to -rw-rw-r--
      mysql-test/r/innodb_handler.result:
        Change mode to -rw-rw-r--
      mysql-test/r/insert_update.result:
        Change mode to -rw-rw-r--
      mysql-test/r/repair.result:
        Change mode to -rw-rw-r--
      mysql-test/r/rpl_create_database.result:
        Change mode to -rw-rw-r--
      mysql-test/r/type_bit.result:
        Change mode to -rw-rw-r--
      fb69c851
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · ff0ecc09
      unknown authored
      into mysql.com:/home/my/mysql-5.0
      
      
      innobase/os/os0proc.c:
        Auto merged
      ff0ecc09
    • unknown's avatar
      Merge with global tree · 06904103
      unknown authored
      Fixed some found bugs in BIT fields
      Added more test cases for BIT fields and varchar
      
      
      include/my_base.h:
        Merge
        Added HA_BIT_PART for easier test in key.cc
      innobase/os/os0proc.c:
        Fixed typo
      myisam/mi_dbug.c:
        Add printing of BIT types when debugging
      mysql-test/r/show_check.result:
        Set 'Avg_row_length' to # as this value is different between 32 and 64 bit machines
      mysql-test/r/type_bit.result:
        More tests
      mysql-test/r/type_varchar.result:
        More tests
      mysql-test/t/show_check.test:
        Set 'Avg_row_length' to # as this value is different between 32 and 64 bit machines
      mysql-test/t/type_bit.test:
        More tests
      mysql-test/t/type_varchar.test:
        More tests
      sql/field.cc:
        Added Field::val_int_as_str() to get better logging of bit fields
        Merged new_key_field with move_field() to fix some problems with bit fields
        Fixed some bugs with bit fields
      sql/field.h:
        Added Field::val_int_as_str() to get better logging of bit fields
        Merged new_key_field with move_field() to fix some problems with bit fields
        Fixed some bugs with bit fields
      sql/ha_myisam.cc:
        Fixed problem with unintialized memory (not critical)
      sql/key.cc:
        Fix so that 'key_cmp_if_same' works with bit fields.
      sql/opt_range.cc:
        Move declarations first in function
        Nice printing of bit fields in debug log
      sql/sql_prepare.cc:
        Fixed old merge error (not critical)
      sql/sql_select.cc:
        Use new interface to new_key_field
      sql/sql_select.h:
        Use new interface to new_key_fields()
        This fixes a bug with BIT fields where the upper bit of the data was not stored in the key buffer
      sql/structs.h:
        Extend key_part_flag to be able to add HA_BIT_PART to it
      sql/table.cc:
        Mark BIT key parts with HA_BIT_PART to make test in key.cc simpler
      06904103
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · bf01c529
      unknown authored
      into mysql.com:/home/dlenev/src/mysql-5.0
      
      
      bf01c529
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 960a6e8e
      unknown authored
      into mysql.com:/home/dlenev/src/mysql-5.0-tzbug
      
      
      960a6e8e
    • unknown's avatar
      Merge akopytov@bk-internal.mysql.com:/home/bk/mysql-5.0 · 699f55e7
      unknown authored
      into polly.local:/home/kaa/src/mysql-5.0
      
      
      699f55e7
    • unknown's avatar
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 0e25a6f0
      unknown authored
      into mysql.com:/home/dlenev/src/mysql-5.0
      
      
      0e25a6f0
    • unknown's avatar
      Small cleanup of derived tables handling. · 5bc79c0c
      unknown authored
      We should not call free_tmp_table() for derived table in 
      mysql_derived_filling(), since by this moment this table is already
      registered in THD::derived_tables list and thus free_tmp_table() will
      be called for it automatically in close_thread_tables().
      
      
      sql/sql_derived.cc:
        We should not call free_tmp_table() for derived table in 
        mysql_derived_filling(), since by this moment this table is already
        registered in THD::derived_tables list and thus free_tmp_table() will
        be called for it automatically in close_thread_tables().
      5bc79c0c
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 52793e03
      unknown authored
      into mysql.com:/home/dlenev/src/mysql-5.0-tzbug
      
      
      sql/sql_lex.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      52793e03
    • unknown's avatar
      fix for Bug#7386 - IM fails to compile on alpha with Compaq C++ compiler · 2aa5d925
      unknown authored
      
      server-tools/instance-manager/mysql_connection.cc:
        use enum value instead of extern const in array definition
      server-tools/instance-manager/priv.cc:
        added a comment to remind of enum value in mysql_connection.cc
      2aa5d925
  5. 18 Dec, 2004 6 commits
    • unknown's avatar
      trx0roll.c: · 67f5704d
      unknown authored
        Put a sensible value of thread id and process no to a background rollback transaction
      
      
      innobase/trx/trx0roll.c:
        Put a sensible value of thread id and process no to a background rollback transaction
      67f5704d
    • unknown's avatar
      trx0roll.c: · 8b936635
      unknown authored
        Fix the rollback progress printout in crash recovery
      
      
      innobase/trx/trx0roll.c:
        Fix the rollback progress printout in crash recovery
      8b936635
    • unknown's avatar
      trx0roll.c: · 8da9faaa
      unknown authored
        Print progress of background rollback of transactions with more than 1000 undo log entries
      srv0start.c, trx0roll.c, log0recv.c, trx0roll.h:
        Cleanup background rollback code in crash recovery; do not flush all modified pages from the buffer pool after a crash recovery: this makes mysqld accesible for users more quickly
      
      
      innobase/include/trx0roll.h:
        Cleanup background rollback code in crash recovery; do not flush all modified pages from the buffer pool after a crash recovery: this makes mysqld accesible for users more quickly
      innobase/log/log0recv.c:
        Cleanup background rollback code in crash recovery; do not flush all modified pages from the buffer pool after a crash recovery: this makes mysqld accesible for users more quickly
      innobase/srv/srv0start.c:
        Cleanup background rollback code in crash recovery; do not flush all modified pages from the buffer pool after a crash recovery: this makes mysqld accesible for users more quickly
      innobase/trx/trx0roll.c:
        Print progress of background rollback of transactions with more than 1000 undo log entries
      8da9faaa
    • unknown's avatar
      rem0rec.ic: · b2474e7a
      unknown authored
        Do not use short int in rem0rec.ic, since its size is not fixed in ANSI C; improve comments of the relative offset field in a record; use mach_read_from_2() to read the relative offset field to save CPU time, if the compiler does not optimize a more complex access function
      
      
      innobase/include/rem0rec.ic:
        Do not use short int in rem0rec.ic, since its size is not fixed in ANSI C; improve comments of the relative offset field in a record; use mach_read_from_2() to read the relative offset field to save CPU time, if the compiler does not optimize a more complex access function
      b2474e7a
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 3fa699ef
      unknown authored
      into mysql.com:/home/my/mysql-5.0
      
      
      mysql-test/r/information_schema.result:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_show.cc:
        Auto merged
      3fa699ef
    • unknown's avatar