An error occurred fetching the project authors.
  1. 21 Jul, 2006 1 commit
    • unknown's avatar
      BUG#18198: Partition function handling · 0fddb209
      unknown authored
      Review fixes
      
      
      sql/item.h:
        Review fixes
      sql/item_cmpfunc.h:
        Review fixes
      sql/item_func.h:
        Review fixes
      sql/item_strfunc.h:
        Review fixes
      sql/item_timefunc.h:
        Review fixes
      sql/item_xmlfunc.h:
        Review fixes
      sql/partition_info.cc:
        Review fixes
      sql/partition_info.h:
        Review fixes
      sql/sql_partition.cc:
        Review fixes
      sql/sql_yacc.yy:
        Review fixes
      0fddb209
  2. 12 Jul, 2006 1 commit
  3. 27 Jun, 2006 1 commit
  4. 23 Jun, 2006 1 commit
    • unknown's avatar
      BUG#18198: Less flexibility in defining partition functions · 4ba25f7c
      unknown authored
      Changed test for functions if they are supported.
      3 categories:
      1) Fully supported
      2) Supported for single character collations
      3) Supported for binary collations
      
      
      mysql-test/r/partition.result:
        Changed test case since no longer supported to use multicharacter collations
        in comparisons
      mysql-test/t/partition.test:
        Changed test case since no longer supported to use multicharacter collations
        in comparisons
      sql/item.h:
        Changed test for functions if they are supported.
        3 categories:
        1) Fully supported
        2) Supported for single character collations
        3) Supported for binary collations
      sql/item_cmpfunc.h:
        Changed test for functions if they are supported.
        3 categories:
        1) Fully supported
        2) Supported for single character collations
        3) Supported for binary collations
      sql/item_func.h:
        Changed test for functions if they are supported.
        3 categories:
        1) Fully supported
        2) Supported for single character collations
        3) Supported for binary collations
      sql/item_strfunc.h:
        Changed test for functions if they are supported.
        3 categories:
        1) Fully supported
        2) Supported for single character collations
        3) Supported for binary collations
      sql/item_timefunc.h:
        Changed test for functions if they are supported.
        3 categories:
        1) Fully supported
        2) Supported for single character collations
        3) Supported for binary collations
      sql/item_xmlfunc.h:
        Changed test for functions if they are supported.
        3 categories:
        1) Fully supported
        2) Supported for single character collations
        3) Supported for binary collations
      sql/partition_info.cc:
        Changed test for functions if they are supported.
        3 categories:
        1) Fully supported
        2) Supported for single character collations
        3) Supported for binary collations
      sql/partition_info.h:
        Changed test for functions if they are supported.
        3 categories:
        1) Fully supported
        2) Supported for single character collations
        3) Supported for binary collations
      sql/sql_partition.cc:
        Changed test for functions if they are supported.
        3 categories:
        1) Fully supported
        2) Supported for single character collations
        3) Supported for binary collations
      sql/sql_table.cc:
        Changed test for functions if they are supported.
        3 categories:
        1) Fully supported
        2) Supported for single character collations
        3) Supported for binary collations
      4ba25f7c
  5. 14 Jun, 2006 2 commits
  6. 13 Jun, 2006 1 commit
  7. 06 Jun, 2006 1 commit
    • unknown's avatar
      BUG#16002: More review fixes · eeb04d7a
      unknown authored
      mysql-test/r/partition_range.result:
        Changed test cases
      mysql-test/t/partition_range.test:
        Changed test cases
      sql/partition_info.cc:
        Changes to resue signed integer code for unsigned integer partition functions
        Basic idea is to store value - 0x8000000000000000 in list_array and range_int_array
        and also perform this subtraction before applying get_partition_id_range and so
        forth.
      sql/sql_partition.cc:
        Changes to resue signed integer code for unsigned integer partition functions
        Basic idea is to store value - 0x8000000000000000 in list_array and range_int_array
        and also perform this subtraction before applying get_partition_id_range and so
        forth.
      eeb04d7a
  8. 05 Jun, 2006 2 commits
    • unknown's avatar
      BUG#16002: Handle unsigned integer partition functions · 16469b5a
      unknown authored
      mysql-test/r/partition.result:
        Added new test cases
      mysql-test/r/partition_error.result:
        Fixed test case
      mysql-test/t/partition.test:
        Added new test cases
      mysql-test/t/partition_error.test:
        Fixed test case
      sql/ha_partition.cc:
        Review fixes
      sql/partition_element.h:
        Review fixes
      sql/partition_info.cc:
        Review fixes
      sql/share/errmsg.txt:
        Review fixes
      sql/sql_partition.cc:
        Review fixes
      sql/sql_yacc.yy:
        Enabled possibility to use (MAXVALUE) as well as MAXVALUE.
      16469b5a
    • unknown's avatar
      After merge fixes · 950722e7
      unknown authored
      Remove compiler warnings
      
      
      mysql-test/extra/binlog_tests/mix_innodb_myisam_binlog.test:
        Fixed regex to get rid of xid= in output
      mysql-test/r/mysqlcheck.result:
        Drop client_test_db if mysql_client_test fails
      mysql-test/t/mysqlcheck.test:
        Drop client_test_db if mysql_client_test fails
      mysql-test/t/mysqldump.test:
        Use --defaults-file instead of --defaults-extra-file to avoid reading my.cnf files
      sql/event_scheduler.cc:
        Remove compiler warnings
      sql/ha_partition.cc:
        Don't divide with 0 when checking current auto_increment value
      sql/handler.cc:
        After merge fix
      sql/mysqld.cc:
        Remove comiler warning
      sql/partition_info.cc:
        After merge fix
        Fixed memory reference overrun for some wrong partition definitions
      sql/sql_base.cc:
        After merge fix
        Always set *leaves in setup_tables_and_check_access() (assume argument is always given).
      sql/sql_select.cc:
        Simple optimization
      sql/sql_show.cc:
        Remove compiler warning
      sql/sql_table.cc:
        After merge fix
      storage/csv/ha_tina.cc:
        Ensure table maps are restored properly
      storage/ndb/include/ndbapi/Ndb.hpp:
        Remove compiler warning
      950722e7
  9. 30 May, 2006 1 commit
    • unknown's avatar
      BUG#19801: Valgrind error in check_list_constants · 24aba4bf
      unknown authored
      Needed some special handling of the case when no_list_values == 0
      
      
      mysql-test/r/partition.result:
        Added a couple of new test cases
      mysql-test/t/partition.test:
        Added a couple of new test cases
      sql/partition_info.cc:
        Rearranged some code to handle case where no_list_values == 0 which
        happens when one partition with only one value == NULL.
      sql/sql_partition.cc:
        Rearranged code to remove compiler warning and also since we
        now have handled the case where no_list_values == 0 in a special
        case before coming here
        Added code for handling the special case where no_list_values == 0
      24aba4bf
  10. 24 May, 2006 2 commits
  11. 23 May, 2006 1 commit
    • unknown's avatar
      BUG#19304: Merge handler allowed in partitioned tables · 34998f82
      unknown authored
      mysql-test/r/partition.result:
        New test case
      mysql-test/t/partition.test:
        New test case
      sql/partition_info.cc:
        Check for not merge handler in partitioned table
      sql/share/errmsg.txt:
        New error message
      34998f82
  12. 21 Apr, 2006 2 commits
    • unknown's avatar
      BUG#19067: Crash when ALTER TABLE for default subpartitioned table · 011c93f1
      unknown authored
      mysql-test/r/partition.result:
        New test cases
      mysql-test/r/partition_02myisam.result:
        ENGINE always specified per partition in show table
      mysql-test/t/partition.test:
        New test cases
      sql/partition_element.h:
        New copy constructor for partition_element
      sql/partition_info.cc:
        Use new copy constructor to ensure default subpartitions inherit partition options from parent
        Ensure engine is always set on both partitions and subpartitions
      sql/sql_partition.cc:
        Removed unneeded bool to generate_partition_syntax
        Write partition options also for subpartitioned tables when subpartitioning is by default
        Set up defaults for new partitions also in REORGANIZE PARTITION
      sql/sql_partition.h:
        Removed unneeded parameter to generate_partition_syntax call
      sql/sql_show.cc:
        Removed unneeded parameter to generate_partition_syntax call
      sql/sql_table.cc:
        Removed unneeded parameter to generate_partition_syntax call
      011c93f1
    • unknown's avatar
      BUG#18962: Crash of ALTER TABLE .. DROP PARTITION ... · 5912fe26
      unknown authored
      Review fixes
      
      
      sql/partition_info.cc:
        Review fixes
      sql/partition_info.h:
        Review fixes
      5912fe26
  13. 20 Apr, 2006 1 commit
    • unknown's avatar
      BUG#19067: Alter table add partition for subpartitioned table crashes · 316e64ea
      unknown authored
      Changed variable name for improved clarity and debugging possibilities
      Fixed bug in not assigning subpart_type
      
      
      mysql-test/t/partition.test:
        Added new test case
      sql/partition_info.cc:
        Changed variable name for improved clarity and debugging possibilities
        Fixed bug in not assigning subpart_type
      sql/sql_partition.cc:
        Changed variable name for improved clarity and debugging possibilities
        Fixed bug in not assigning subpart_type
      316e64ea
  14. 18 Apr, 2006 1 commit
    • unknown's avatar
      BUG#16002: Make partition functions that are unsigned work properly · 41395ba7
      unknown authored
      mysql-test/r/partition.result:
        A number of new test cases for unsigned partition functions
      mysql-test/r/partition_error.result:
        A number of new test cases for unsigned partition functions
      mysql-test/r/partition_range.result:
        A number of new test cases for unsigned partition functions
      mysql-test/t/partition.test:
        A number of new test cases for unsigned partition functions
      mysql-test/t/partition_error.test:
        A number of new test cases for unsigned partition functions
      mysql-test/t/partition_range.test:
        A number of new test cases for unsigned partition functions
      sql/ha_partition.cc:
        Error message for no partition found needs to take signed/unsigned into account when printing erroneus value
      sql/partition_element.h:
        Introduced signed_flag and max_value flag on partition elements
        Also list is now a list of a struct rather than simply longlong values
        Small rearranges of order
      sql/partition_info.cc:
        Introduced signed_flag and max_value flag on partition elements
        Also list is now a list of a struct rather than simply longlong values
        Small rearranges of order
        Lots of new code to handle checks of proper definition of table when
        partition function is unsigned
      sql/partition_info.h:
        Mostly rearrangement of code and some addition of a THD object in check_partition_info call
        plus a new method for comparing unsigned values
      sql/share/errmsg.txt:
        Negative values not ok for unsigned partition functions
      sql/sql_partition.cc:
        Fixed a multi-thread bug (when defining several partitioned tables in parallel)
        New code to generate partition syntax that takes into account sign of constants.
        Made function fix_fields_part_func more reusable.
        Fixed a number of get_partition_id functions for range and list and similar functions
        for partition pruning code.
        Unfortunately fairly much duplication of code with just small changes.
      sql/sql_partition.h:
        New function headers
      sql/sql_show.cc:
        Changed list of values for LIST partitioned tables
        Also fixed printing of unsigned values in INFORMATION SCHEMA for partitioned table
      sql/sql_table.cc:
        Fixed for new interface
      sql/sql_yacc.yy:
        Moved definition of struct to partition_element.h
        Added code to keep track of sign of constants in
        RANGE and LIST partitions
      sql/table.cc:
        Fixed for new interface
      41395ba7
  15. 13 Apr, 2006 1 commit
    • unknown's avatar
      WL#3201 · bf4731ec
      unknown authored
        " Configure support for server plugins "
      
      
      storage/blackhole/ha_blackhole.h:
        Rename: sql/ha_blackhole.h -> storage/blackhole/ha_blackhole.h
      BitKeeper/deleted/.del-storage.m4~24bf2fffdaa328ad:
        Delete: config/ac-macros/storage.m4
      BitKeeper/deleted/.del-ha_archive.m4~a07fac7110b39294:
        Delete: config/ac-macros/ha_archive.m4
      BitKeeper/deleted/.del-ha_blackhole.m4~8ed06eb91f6420ed:
        Delete: config/ac-macros/ha_blackhole.m4
      BitKeeper/deleted/.del-ha_example.m4~1dfb268163297708:
        Delete: config/ac-macros/ha_example.m4
      BitKeeper/deleted/.del-ha_federated.m4~7acddd58286acfd6:
        Delete: config/ac-macros/ha_federated.m4
      BitKeeper/deleted/.del-ha_innodb.m4~6f141fb5b80c1f39:
        Delete: config/ac-macros/ha_innodb.m4
      BitKeeper/deleted/.del-ha_partition.m4~bc57067550be5f89:
        Delete: config/ac-macros/ha_partition.m4
      BitKeeper/deleted/.del-ha_tina.m4~f658506ebbc113ca:
        Delete: config/ac-macros/ha_tina.m4
      BitKeeper/deleted/.del-handlerton.cc.in~377156e7b06067cc:
        Delete: sql/handlerton.cc.in
      BitKeeper/deleted/.del-handlerton-win.cc~322a7e59507976df:
        Delete: sql/handlerton-win.cc
      BUILD/SETUP.sh:
        WL#3201
          Changes in configure arguments
      Makefile.am:
        WL#3201
          changes in build subst names
      config/ac-macros/ha_berkeley.m4:
        WL#3201
          remove unused variable
          Makefile is always made
      config/ac-macros/ha_ndbcluster.m4:
        WL#3201
          remove unused variables
          Split big macro
      configure.in:
        WL#3201
          out with storage.m4, in with plugins.m4
          change how plugins are declared
          include makefiles, remove handlerton.cc, add sql_builtin.cc
      include/mysql/plugin.h:
        WL#3201
          support static and dynamic build - MYSQL_DYNAMIC_PLUGIN
      libmysqld/Makefile.am:
        WL#3201
          Storage engine files still left in sql subdir are not conditionally
          compiled. Should move them out soon,
      plugin/Makefile.am:
        WL#3201
          update makefile
      plugin/fulltext/Makefile.am:
        WL#3201
          update makefile
      plugin/fulltext/plugin_example.c:
        WL#3201
          change to mysql_declare_plugin macro
      sql/Makefile.am:
        WL#3201
          Storage engine files still left in sql subdir are not conditionally
          compiled. Should move them out soon,
      sql/ha_berkeley.cc:
        WL#3201
          make into a plugin
          conditionally compile content
      sql/ha_federated.cc:
        WL#3201
          make into a plugin
          conditionally compile content
      sql/ha_heap.cc:
        WL#3201
          make into a plugin
      sql/ha_innodb.cc:
        WL#3201
          make into a plugin
          conditionally compile content
      sql/ha_myisam.cc:
        WL#3201
          make into a plugin
      sql/ha_myisammrg.cc:
        WL#3201
          make into a plugin
      sql/ha_ndbcluster.cc:
        WL#3201
          make into a plugin
          conditionally compile content
      sql/ha_ndbcluster_binlog.cc:
        WL#3201
          make into a plugin
          conditionally compile content
      sql/ha_partition.cc:
        WL#3201
          make into a plugin
          conditionally compile content
      sql/handler.cc:
        WL#3201
          Simplify how storage engines are found by db_type
          (hopefully we can get rid of it soon)
          Code cleanup
      sql/handler.h:
        WL#3201
          new DB_TYPE_FIRST_DYNAMIC
          new func ha_finalize_handlerton()
          remove ha_register_builtin_plugins()
      sql/log.cc:
        WL#3201
          make into a plugin
      sql/mysqld.cc:
        WL#3201
          remove ha_register_builtin_plugins()
          alter init order so that storage engines are initialized before first use
      sql/partition_info.cc:
        WL#3201
          conditionally compile content
      sql/sql_delete.cc:
        WL#3201
          conditionally include ha_innodb.h
      sql/sql_plugin.cc:
        WL#3201
          All compiled in plugins are in mysqld_builtins[]
          add funcs for plugin finalization
          install builtin plugins on initialization
      sql/sql_show.cc:
        WL#3201
          Fix to use plugin_foreach()
      sql/sql_yacc.yy:
        WL#3201
          SHOW FULL PLUGIN
      storage/archive/Makefile.am:
        WL#3201
          setup as plugin makefile
      storage/archive/ha_archive.cc:
        WL#3201
          Convert into a plugin
      storage/archive/ha_archive.h:
        WL#3201
          azlib.h now in local dir
      storage/blackhole/ha_blackhole.cc:
        WL#3201
          convert into a plugin
      storage/csv/Makefile.am:
        WL#3201
          setup as plugin makefile
      storage/csv/ha_tina.cc:
        WL#3201
          remove conditional compilation on MYSQL_PLUGIN
          mysql_declare_plugin macro change
      storage/example/Makefile.am:
        WL#3201
          fix as new-style plugin makefile
      storage/example/ha_example.cc:
        WL#3201
          remove conditional compilation on MYSQL_PLUGIN
          mysql_declare_plugin macro change
      storage/innobase/Makefile.am:
        WL#3201
          Lets make life easier and reduce innodb into a single library file
      config/ac-macros/plugins.m4:
        New BitKeeper file ``config/ac-macros/plugins.m4''
      sql/sql_builtin.cc.in:
        New BitKeeper file ``sql/sql_builtin.cc.in''
      storage/blackhole/Makefile.am:
        New BitKeeper file ``storage/blackhole/Makefile.am''
      bf4731ec
  16. 12 Apr, 2006 1 commit
    • unknown's avatar
      BUG#18962: DROP PARTITION fails when partitions dropped for subpartitions with... · 0675b9f3
      unknown authored
      BUG#18962: DROP PARTITION fails when partitions dropped for subpartitions with default naming procedure
      Fixed naming procedures for default partitioning and default subpartitioning
      
      
      mysql-test/r/partition_pruning.result:
        Fixed test cases for new naming of default subpartitions
      mysql-test/r/partition_range.result:
        New test case
      mysql-test/t/partition_range.test:
        New test case
      sql/partition_info.cc:
        Fixed naming procedures for default partitioning and default subpartitioning
      sql/partition_info.h:
        Fixed naming procedures for default partitioning and default subpartitioning
      0675b9f3
  17. 10 Apr, 2006 1 commit
    • unknown's avatar
      BUG#18750: Various problems with partition names, quotation marks · e54a0fc7
      unknown authored
      mysql-test/r/partition.result:
        Added new test cases
      mysql-test/t/partition.test:
        Added new test cases
      sql/partition_info.cc:
        Check partition names that they don't have trailing spaces
      sql/share/errmsg.txt:
        Added error code for wrong partition names
      sql/sql_partition.cc:
        New method to add partition name strings, ignore OPTION_SHOW_QUOTE_CREATE
      sql/sql_show.cc:
        require_quotes had a bug with identifiers that consisted of only digits,
        these are allowed identifiers but must be quoted and require_quote didn't
        tell this.
      sql/sql_yacc.yy:
        Partition names should identifers and not ident_or_text
      e54a0fc7
  18. 08 Apr, 2006 1 commit
    • unknown's avatar
      BUG#18198: Errors due to too much allowed in partition functions · 6e62a9f2
      unknown authored
      Added functions to enable/disable allowed/disallowed partition functions
      
      
      sql/item.h:
        Added functions to enable/disable allowed/disallowed partition functions
      sql/item_cmpfunc.h:
        Added functions to enable/disable allowed/disallowed partition functions
      sql/item_func.h:
        Added functions to enable/disable allowed/disallowed partition functions
      sql/item_strfunc.h:
        Added functions to enable/disable allowed/disallowed partition functions
      sql/item_timefunc.h:
        Added functions to enable/disable allowed/disallowed partition functions
      sql/item_xmlfunc.h:
        Added functions to enable/disable allowed/disallowed partition functions
      sql/partition_info.cc:
        Added functions to enable/disable allowed/disallowed partition functions
      sql/share/errmsg.txt:
        Added new error message
      6e62a9f2
  19. 05 Apr, 2006 2 commits
  20. 31 Mar, 2006 1 commit
    • unknown's avatar
      cleaned up a few method comments · e2e57c88
      unknown authored
      moved several functions from sql_partition to be member functions
      
      
      sql/partition_info.h:
        move these funcs from sql_partition to this class
      sql/sql_partition.cc:
        move these funcs from sql_partition to this class
      sql/sql_table.cc:
        calling the member func now instead
      e2e57c88
  21. 18 Mar, 2006 1 commit
    • unknown's avatar
      bug 17290 and bug 14350 · c64493df
      unknown authored
      added THD::work_part_info member where we now store modified
      partition_info structure.
      It allows no solve problem when different parts of the part_info get
      into different mem_roots
      
      
      sql/partition_info.cc:
        get_clone implementation
      sql/partition_info.h:
        get_clone() declared
      sql/sql_class.h:
        THD::work_part_info added
      sql/sql_partition.cc:
        thd->work_part_info instead of lex->part_info
      sql/sql_table.cc:
        thd->work_part_info instad of lex->part_info
      sql/unireg.cc:
        thd->work_part_info instad of lex->part_info
      c64493df
  22. 28 Feb, 2006 1 commit
  23. 25 Feb, 2006 1 commit
    • unknown's avatar
      WL#2977 and WL#2712 global and session-level variable to set the binlog format (row/statement), · 55d8e31e
      unknown authored
      and new binlog format called "mixed" (which is statement-based except if only row-based is correct,
      in this cset it means if UDF or UUID is used; more cases could be added in later 5.1 release):
      SET GLOBAL|SESSION BINLOG_FORMAT=row|statement|mixed|default;
      the global default is statement unless cluster is enabled (then it's row) as in 5.1-alpha.
      It's not possible to use SET on this variable if a session is currently in row-based mode and has open temporary tables (because CREATE
      TEMPORARY TABLE was not binlogged so temp table is not known on slave),  or if NDB is enabled (because
      NDB does not support such change on-the-fly, though it will later), of if in a stored function (see below).
      The added tests test the possibility or impossibility to SET, their effects, and the mixed mode,
      including in prepared statements and in stored procedures and functions.
      Caveats:
      a) The mixed mode will not work for stored functions: in mixed mode, a stored function will
      always be binlogged as one call and in a statement-based way (e.g. INSERT VALUES(myfunc()) or SELECT myfunc()).
      b) for the same reason, changing the thread's binlog format inside a stored function is
      refused with an error message.
      c) the same problems apply to triggers; implementing b) for triggers will be done later (will ask
      Dmitri).
      Additionally, as the binlog format is now changeable by each user for his session, I remove the implication
      which was done at startup, where row-based automatically set log-bin-trust-routine-creators to 1
      (not possible anymore as a user can now switch to stmt-based and do nasty things again), and automatically
      set --innodb-locks-unsafe-for-binlog to 1 (was anyway theoretically incorrect as it disabled
      phantom protection).
      Plus fixes for compiler warnings.
      
      
      mysql-test/r/rpl_row_4_bytes.result:
        update
      mysql-test/t/rpl_row_4_bytes.test:
        don't influence next tests
      sql/ha_archive.cc:
        please pay attention to this structure when you change it...
      sql/ha_berkeley.cc:
        please pay attention to this structure when you change it...
      sql/ha_blackhole.cc:
        please pay attention to this structure when you change it...
      sql/ha_federated.cc:
        please pay attention to this structure when you change it...
      sql/ha_heap.cc:
        please pay attention to this structure when you change it...
      sql/ha_innodb.cc:
        please pay attention to this structure when you change it...
      sql/ha_myisam.cc:
        please pay attention to this structure when you change it...
      sql/ha_myisammrg.cc:
        please pay attention to this structure when you change it...
      sql/ha_ndbcluster_binlog.cc:
        no more global 'binlog_row_based'
      sql/ha_partition.cc:
        please pay attention to this structure when you change it...
      sql/handler.cc:
        please pay attention to this structure when you change it...
      sql/handler.h:
        it's good to initialize statically (to get no compiler warning) even if to a null value.
      sql/item_func.cc:
        UDFs require row-based if this is the "mixed" binlog format.
      sql/item_strfunc.cc:
        UUID() requires row-based binlogging if this is the "mixed" binlog format
      sql/log.cc:
        binlog_row_based -> thd->current_stmt_binlog_row_based
      sql/log.h:
        the enum enum_binlog_format moves to log.h from mysqld.cc as we need it in several places.
      sql/log_event.cc:
        binlog_row_based -> thd->current_stmt_binlog_row_based
      sql/log_event.h:
        this global variable not used anymore
      sql/mysql_priv.h:
        these global variables not used anymore
      sql/mysqld.cc:
        simplification in the handling of --binlog-format (but with no user-visible change), thanks to
        the new global system variable.
        RBR does not anymore turn on --log-bin-trust-function-creators and --innodb-locks-unsafe-for-binlog
        as these are global options and RBR is now settable per session.
      sql/partition_info.cc:
        compiler warnings
      sql/set_var.cc:
        new class of thread's variable, to handle the binlog_format (like sys_var_thd_enum except
        that is_readonly() is overriden for more checks before update).
        compiler warnings (ok'd by Serg)
      sql/set_var.h:
        new class for the thread's binlog_format (see set_var.cc)
      sql/share/errmsg.txt:
        some messages for when one can't toggle from one binlog format to another
      sql/sp_head.cc:
        binlog_row_based -> thd->current_stmt_binlog_row_based
      sql/sql_base.cc:
        binlog_row_based -> thd->current_stmt_binlog_row_based
      sql/sql_class.cc:
        When a THD is initialized, we set its current_stmt_binlog_row_based
      sql/sql_class.h:
        new THD::variables.binlog_format (the value of the session variable set by SET
        or inherited from the global value), and THD::current_stmt_binlog_row_based which tells if the
        current statement does row-based or statement-based binlogging. Both members are needed
        as the 2nd one cannot be derived only from the first one (the statement's type plays a role too),
        and the 1st one is needed to reset the 2nd one.
      sql/sql_delete.cc:
        binlog_row_based -> thd->current_stmt_binlog_row_based
      sql/sql_insert.cc:
        binlog_row_based -> thd->current_stmt_binlog_row_based
      sql/sql_load.cc:
        binlog_row_based -> thd->current_stmt_binlog_row_based.
      sql/sql_parse.cc:
        when we are done with a statement, we reset the current_stmt_binlog_row_based to the value
        derived from THD::variables.binlog_format.
      sql/sql_partition.cc:
        compiler warning
      sql/sql_show.cc:
        compiler warning
      sql/sql_table.cc:
        binlog_row_based -> thd->current_stmt_binlog_row_based
      tests/mysql_client_test.c:
        compiler warning
      mysql-test/r/ndb_binlog_basic2.result:
        new result
      mysql-test/r/rpl_switch_stm_row_mixed.result:
        new result
      mysql-test/t/ndb_binlog_basic2.test:
        new test to verify that if cluster is enabled, can't change binlog format on the fly.
      mysql-test/t/rpl_switch_stm_row_mixed.test:
        test to see if one can switch between SBR, RBR, and "mixed" mode, and when one cannot,
        and test to see if the switching, and the mixed mode, work properly (using UUID() to test,
        as using UDFs is not possible in the testsuite for portability reasons).
      55d8e31e
  24. 21 Feb, 2006 1 commit
    • unknown's avatar
      BUG #15408 - Partitions: subpartition names are not unique · cff3ab9d
      unknown authored
      libmysqld/Makefile.am:
        changed name to partition_info.cc
      mysql-test/r/partition_mgm_err.result:
        added drop table for previous test
      mysql-test/t/partition_mgm_err.test:
        added drop table for previous test
      sql/Makefile.am:
        reformatted a bit
        changed name of partition_info.cpp to partition_info.cc
      sql/partition_element.h:
        updated copyright date
      sql/partition_info.cc:
        minor corrections as a result of review
      sql/partition_info.h:
        updated copyright date
      sql/sql_partition.cc:
        updated file comment and fixed some spacing
      sql/sql_partition.h:
        updated copyright date
      win/cmakefiles/sql:
        changed name to partition_info.cc
      cff3ab9d
  25. 16 Feb, 2006 2 commits
    • unknown's avatar
      moved prune_partition_set decl from handler.h to sql_partition.h during merge · 9f6dd443
      unknown authored
      cleaned up some files from the partition code move
      
      
      sql/Makefile.am:
        break the long line onto the next line
      sql/partition_info.cpp:
        remove some old comments left behind
      sql/sql_partition.h:
        Moved from handler.h during merge
      9f6dd443
    • unknown's avatar
      BUG#15408: Partitions: subpartition names are not unique · fcd35cde
      unknown authored
      Also, moved some of the code out of handler.h and into partition specific files for better 
      separation.
      Also, moved some of the C funcs into partition_info as formal C++ methods
      
      
      mysql-test/r/partition_mgm_err.result:
        result block for test of bug # 15408
      mysql-test/t/partition_mgm_err.test:
        test for duplicate subpartition names
      sql/Makefile.am:
        adding sql_partition.h, partition_info.cpp, partition_info.h, and partition_element.h to the makefile
      sql/ha_partition.cc:
        using the new members of partition_info
      sql/ha_partition.h:
        using the new members of partition_info
      sql/handler.h:
        moved this code into sql_partition.h
      sql/mysql_priv.h:
        including sql_partition.h also now
      sql/opt_range.cc:
        using the new members of partition_info
      sql/sql_partition.cc:
        moved some of the functions out and into the partition_info class
        using the new members of partition_info
      sql/sql_show.cc:
        using the new members of partition_info
      win/cmakefiles/sql:
        added partition_info.cpp to the sql cmake file
      sql/partition_element.h:
        New BitKeeper file ``sql/partition_element.h''
      sql/partition_info.h:
        New BitKeeper file ``sql/partition_info.h''
      sql/sql_partition.h:
        New BitKeeper file ``sql/sql_partition.h''
      fcd35cde