An error occurred fetching the project authors.
  1. 21 Oct, 2009 1 commit
  2. 15 Sep, 2009 1 commit
  3. 28 Aug, 2009 1 commit
    • Staale Smedseng's avatar
      Bug #43414 Parenthesis (and other) warnings compiling MySQL · 1ba25ae4
      Staale Smedseng authored
      with gcc 4.3.2
            
      This patch fixes a number of GCC warnings about variables used
      before initialized. A new macro UNINIT_VAR() is introduced for
      use in the variable declaration, and LINT_INIT() usage will be
      gradually deprecated. (A workaround is used for g++, pending a
      patch for a g++ bug.)
            
      GCC warnings for unused results (attribute warn_unused_result)
      for a number of system calls (present at least in later
      Ubuntus, where the usual void cast trick doesn't work) are
      also fixed.
      
      
      client/mysqlmanager-pwgen.c:
        A fix for warn_unused_result, adding fallback to use of
        srand()/rand() if /dev/random cannot be used. Also actually
        adds calls to rand() in the second branch so that it actually
        creates a random password.
      1ba25ae4
  4. 13 Aug, 2009 1 commit
    • Ramil Kalimullin's avatar
      Fix for bug #46614: Assertion in show_create_trigger() · 3b1280fa
      Ramil Kalimullin authored
      on SHOW CREATE TRIGGER + MERGE table
      
      Problem: SHOW CREATE TRIGGER erroneously relies on fact
      that we have the only underlying table for a trigger
      (wrong for merge tables).
      
      Fix: remove erroneous assert().
      
      
      mysql-test/r/merge.result:
        Fix for bug #46614: Assertion in show_create_trigger() 
        on SHOW CREATE TRIGGER + MERGE table
          - test result.
      mysql-test/t/merge.test:
        Fix for bug #46614: Assertion in show_create_trigger() 
        on SHOW CREATE TRIGGER + MERGE table
          - test case.
      sql/sql_show.cc:
        Fix for bug #46614: Assertion in show_create_trigger() 
        on SHOW CREATE TRIGGER + MERGE table
          - unnecessary assert() removed as we may have more than 1 
        tables open e.g. for a merge table.
      3b1280fa
  5. 29 Jul, 2009 2 commits
    • Guilhem Bichot's avatar
      removing unused array (compiler warning) · 79283b61
      Guilhem Bichot authored
      79283b61
    • Guilhem Bichot's avatar
      Bug#45829 "CREATE TABLE TRANSACTIONAL PAGE_CHECKSUM ROW_FORMAT=PAGE accepted, does nothing": · a58b887c
      Guilhem Bichot authored
      those keywords do nothing in 5.1 (they are meant for future versions, for example featuring the Maria engine)
      so they are here removed from the syntax. Adding those keywords to future versions when needed is:
      - WL#5034 "Add TRANSACTIONA=0|1 and PAGE_CHECKSUM=0|1 clauses to CREATE TABLE"
      - WL#5037 "New ROW_FORMAT value for CREATE TABLE: PAGE"
      
      mysql-test/r/create.result:
        test that syntax is not accepted
      mysql-test/t/create.test:
        test that syntax is not accepted
      sql/handler.cc:
        remove ROW_FORMAT=PAGE
      sql/handler.h:
        Mark unused objects, but I don't remove them by fear of breaking any plugin which includes this file
        (see also table.h)
      sql/lex.h:
        removing syntax
      sql/sql_show.cc:
        removing output of noise keywords in SHOW CREATE TABLE and INFORMATION_SCHEMA.TABLES
      sql/sql_table.cc:
        removing TRANSACTIONAL
      sql/sql_yacc.yy:
        removing syntax
      sql/table.cc:
        removing TRANSACTIONAL, PAGE_CHECKSUM. Their place in the frm file is not reclaimed,
        for compatibility with older 5.1.
      sql/table.h:
        Mark unused objects, but I don't remove them by fear of breaking any plugin which includes this file
        (and there are several engines which use the content TABLE_SHARE and thus rely on a certain binary
        layout of this structure).
      a58b887c
  6. 24 Jul, 2009 1 commit
    • Gleb Shchepa's avatar
      Bug #38816: kill + flush tables with read lock + stored · dc0a87fd
      Gleb Shchepa authored
                  procedures causes crashes!
      
      The problem of that bugreport was mostly fixed by the
      patch for bug 38691.
      However, attached test case focused on another crash or
      valgrind warning problem: SHOW PROCESSLIST query accesses
      freed memory of SP instruction that run in a parallel
      connection.
      
      Changes of thd->query/thd->query_length in dangerous
      places have been guarded with the per-thread
      LOCK_thd_data mutex (the THD::LOCK_delete mutex has been
      renamed to THD::LOCK_thd_data).
      
      
      sql/ha_myisam.cc:
        Bug #38816: kill + flush tables with read lock + stored
                    procedures causes crashes!
        
        Modification of THD::query/query_length has been guarded
        with the a THD::set_query() method call/LOCK_thd_data
        mutex.
        Unnecessary locking with the global LOCK_thread_count
        mutex has been removed.
      sql/log_event.cc:
        Bug #38816: kill + flush tables with read lock + stored
                    procedures causes crashes!
        
        Modification of THD::query/query_length has been guarded
        with the THD::set_query()) method call/LOCK_thd_data
        mutex.
      sql/slave.cc:
        Bug #38816: kill + flush tables with read lock + stored
                    procedures causes crashes!
        
        Modification of THD::query/query_length has been guarded
        with the THD::set_query() method call/LOCK_thd_data mutex.
        
        The THD::LOCK_delete mutex has been renamed to
        THD::LOCK_thd_data.
      sql/sp_head.cc:
        Bug #38816: kill + flush tables with read lock + stored
                    procedures causes crashes!
        
        Modification of THD::query/query_length has been guarded
        with the a THD::set_query() method call/LOCK_thd_data
        mutex.
      sql/sql_class.cc:
        Bug #38816: kill + flush tables with read lock + stored
                    procedures causes crashes!
        
        The new THD::LOCK_thd_data mutex and THD::set_query()
        method has been added to guard modifications of THD::query/
        THD::query_length fields, also the Statement::set_statement()
        method has been overloaded in the THD class.
        
        The THD::LOCK_delete mutex has been renamed to
        THD::LOCK_thd_data.
      sql/sql_class.h:
        Bug #38816: kill + flush tables with read lock + stored
                    procedures causes crashes!
        
        The new THD::LOCK_thd_data mutex and THD::set_query()
        method has been added to guard modifications of THD::query/
        THD::query_length fields, also the Statement::set_statement()
        method has been overloaded in the THD class.
        
        The THD::LOCK_delete mutex has been renamed to
        THD::LOCK_thd_data.
      sql/sql_insert.cc:
        Bug #38816: kill + flush tables with read lock + stored
                    procedures causes crashes!
        
        Modification of THD::query/query_length has been guarded
        with the a THD::set_query() method call/LOCK_thd_data
        mutex.
      sql/sql_parse.cc:
        Bug #38816: kill + flush tables with read lock + stored
                    procedures causes crashes!
        
        Modification of THD::query/query_length has been guarded
        with the a THD::set_query() method call/LOCK_thd_data mutex.
      sql/sql_repl.cc:
        Bug #38816: kill + flush tables with read lock + stored
                    procedures causes crashes!
        
        The THD::LOCK_delete mutex has been renamed to
        THD::LOCK_thd_data.
      sql/sql_show.cc:
        Bug #38816: kill + flush tables with read lock + stored
                    procedures causes crashes!
        
        Inter-thread read of THD::query/query_length field has
        been protected with a new per-thread LOCK_thd_data
        mutex in the mysqld_list_processes function.
      dc0a87fd
  7. 16 Jul, 2009 1 commit
  8. 14 Jul, 2009 1 commit
    • Ramil Kalimullin's avatar
      Fix for bug#45998: database crashes when running · 1e56aea3
      Ramil Kalimullin authored
      "create as select" (innodb table)
      
      Problem: code constructing "CREATE TABLE..." statement
      doesn't take into account that current database is not set
      in some cases. That may lead to a server crash.
      
      Fix: check if current database is set.
      
      
      mysql-test/extra/binlog_tests/binlog.test:
        Fix for bug#45998: database crashes when running
        "create as select" (innodb table)
          - test case.
      mysql-test/suite/binlog/r/binlog_row_binlog.result:
        Fix for bug#45998: database crashes when running
        "create as select" (innodb table)
          - test result.
      sql/sql_show.cc:
        Fix for bug#45998: database crashes when running
        "create as select" (innodb table)
          - added check if there's current database set.
      1e56aea3
  9. 25 Jun, 2009 1 commit
  10. 19 Jun, 2009 1 commit
    • Sergey Glukhov's avatar
      Bug#44834 strxnmov is expected to behave as you'd expect · 9347649c
      Sergey Glukhov authored
      The problem: described in the bug report.
      The fix:
      --increase buffers where it's necessary
        (buffers which are used in stxnmov)
      --decrease buffer lengths which are used
      
      
      client/mysql.cc:
        --increase buffers where it's necessary
          (buffers which are used in stxnmov)
        --decrease buffer lengths which are used
          as argument for strxnmov function
      sql/ha_ndbcluster.cc:
        --increase buffers where it's necessary
          (buffers which are used in stxnmov)
        --decrease buffer lengths which are used
          as argument for strxnmov function
      sql/ha_ndbcluster_binlog.cc:
        --increase buffers where it's necessary
          (buffers which are used in stxnmov)
        --decrease buffer lengths which are used
          as argument for strxnmov function
      sql/handler.cc:
        --increase buffers where it's necessary
          (buffers which are used in stxnmov)
        --decrease buffer lengths which are used
          as argument for strxnmov function
      sql/log.cc:
        --increase buffers where it's necessary
          (buffers which are used in stxnmov)
        --decrease buffer lengths which are used
          as argument for strxnmov function
      sql/mysqld.cc:
        removed unnecessary line
      sql/parse_file.cc:
        --increase buffers where it's necessary
          (buffers which are used in stxnmov)
        --decrease buffer lengths which are used
          as argument for strxnmov function
      sql/sql_acl.cc:
        --increase buffers where it's necessary
          (buffers which are used in stxnmov)
        --decrease buffer lengths which are used
          as argument for strxnmov function
      sql/sql_base.cc:
        --increase buffers where it's necessary
          (buffers which are used in stxnmov)
        --decrease buffer lengths which are used
          as argument for strxnmov function
      sql/sql_db.cc:
        --increase buffers where it's necessary
          (buffers which are used in stxnmov)
        --decrease buffer lengths which are used
          as argument for strxnmov function
      sql/sql_delete.cc:
        --increase buffers where it's necessary
          (buffers which are used in stxnmov)
        --decrease buffer lengths which are used
          as argument for strxnmov function
      sql/sql_partition.cc:
        --increase buffers where it's necessary
          (buffers which are used in stxnmov)
        --decrease buffer lengths which are used
          as argument for strxnmov function
      sql/sql_rename.cc:
        --increase buffers where it's necessary
          (buffers which are used in stxnmov)
        --decrease buffer lengths which are used
          as argument for strxnmov function
      sql/sql_show.cc:
        --increase buffers where it's necessary
          (buffers which are used in stxnmov)
        --decrease buffer lengths which are used
          as argument for strxnmov function
      sql/sql_table.cc:
        --increase buffers where it's necessary
          (buffers which are used in stxnmov)
        --decrease buffer lengths which are used
          as argument for strxnmov function
      sql/sql_view.cc:
        --increase buffers where it's necessary
          (buffers which are used in stxnmov)
        --decrease buffer lengths which are used
          as argument for strxnmov function
      9347649c
  11. 17 Jun, 2009 1 commit
    • Staale Smedseng's avatar
      Bug #43414 Parenthesis (and other) warnings compiling MySQL · 3b0e6e41
      Staale Smedseng authored
      with gcc 4.3.2
            
      Compiling MySQL with gcc 4.3.2 and later produces a number of 
      warnings, many of which are new with the recent compiler
      versions.
                        
      This bug will be resolved in more than one patch to limit the
      size of changesets. This is the second patch, fixing more
      of the warnings.
      3b0e6e41
  12. 10 Jun, 2009 1 commit
    • Staale Smedseng's avatar
      Bug #43414 Parenthesis (and other) warnings compiling MySQL · a1035097
      Staale Smedseng authored
      with gcc 4.3.2
      
      Compiling MySQL with gcc 4.3.2 and later produces a number of 
      warnings, many of which are new with the recent compiler
      versions.
                  
      This bug will be resolved in more than one patch to limit the
      size of changesets. This is the second patch, fixing more
      of the warnings.
      a1035097
  13. 05 May, 2009 1 commit
  14. 13 Mar, 2009 1 commit
    • Georgi Kodinov's avatar
      Bug #22047 : Time in SHOW PROCESSLIST for SQL thread in replication · f35b4218
      Georgi Kodinov authored
      seems to become negative
      
      THD::start_time has a dual meaning : it's either the time since the process
      entered a given state or is the transaction time returned by e.g. NOW().
      This causes problems, as sometimes THD::start_time may be set to a value
      that is correct and needed when used as a base for NOW(), but these times
      may be arbitrary (SET @@timestamp) or non-local (coming from the master 
      through the replication feed).
      If one such non-local time is set there's no way to return a correct value
      for e.g. SHOW PROCESSLIST or SELECT ... FROM INFORMATION_SCHEMA.PROCESSLIST.
      Fixed by making the Time column in SHOW PROCESSLIST SIGNED LONG instead of 
      UNSIGNED LONG and doing the correct conversions.
            
      Note that no reliable test suite can be constructed, since it would require
      knowing the local time and can't be achieved by the means of the current test
      suite.
      
      sql/sql_show.cc:
        Bug #22047: make the Time in SHOW PROCESSLIST LONG from 
        LONG UNSIGNED
      f35b4218
  15. 05 Mar, 2009 1 commit
    • Sergey Glukhov's avatar
      Bug#42758 INFORMATION_SCHEMA.COLUMNS is inconsistent · 326de495
      Sergey Glukhov authored
      remove 'unsigned', 'zerofill' attributes
      from DATA_TYPE column value.
      
      
      mysql-test/suite/funcs_1/r/is_columns_innodb.result:
        result fix
      mysql-test/suite/funcs_1/r/is_columns_memory.result:
        result fix
      mysql-test/suite/funcs_1/r/is_columns_myisam.result:
        result fix
      sql/sql_show.cc:
        remove 'unsigned', 'zerofill' attributes 
        from DATA_TYPE column value.
      326de495
  16. 25 Feb, 2009 2 commits
  17. 17 Feb, 2009 1 commit
  18. 10 Feb, 2009 1 commit
  19. 05 Jan, 2009 1 commit
  20. 29 Dec, 2008 1 commit
    • Sergey Glukhov's avatar
      Bug#41131 "Questions" fails to increment - ignores statements instead stored procs(5.0 ver) · 3b617acb
      Sergey Glukhov authored
      Added global status variable 'Queries' which represents
      total amount of queries executed by server including
      statements executed by SPs.
      note: It's old behaviour of 'Questions' variable.
      
      
      mysql-test/r/status.result:
        test result
      mysql-test/t/status.test:
        test case
      sql/mysqld.cc:
        Added global status variable 'Queries' which represents
        total amount of queries executed by server including
        statements executed by SPs.
        note: It's old behaviour of 'Questions' variable.
      sql/sql_show.cc:
        Added global status variable 'Queries' which represents
        total amount of queries executed by server including
        statements executed by SPs.
        note: It's old behaviour of 'Questions' variable.
      sql/structs.h:
        Added global status variable 'Queries' which represents
        total amount of queries executed by server including
        statements executed by SPs.
        note: It's old behaviour of 'Questions' variable.
      3b617acb
  21. 24 Dec, 2008 1 commit
    • Sergey Glukhov's avatar
      Bug#25830 SHOW TABLE STATUS behaves differently depending on table name · 65c3d371
      Sergey Glukhov authored
      replace wild_case_compare with my_wildcmp which is multibyte safe function
      
      
      mysql-test/r/lowercase_utf8.result:
        test result
      mysql-test/t/lowercase_utf8-master.opt:
        test case
      mysql-test/t/lowercase_utf8.test:
        test case
      sql/sql_show.cc:
        replace wild_case_compare with my_wildcmp which is multibyte safe function
      65c3d371
  22. 23 Dec, 2008 1 commit
    • Sergey Glukhov's avatar
      Bug#41079 information_schema.schema_privileges is limited to 7680 records. · e1383368
      Sergey Glukhov authored
      The problem is that we cannot insert new record into memory table
      when table size exceeds max memory table size.
      The fix is to use schema_table_store_record() function which
      converts memory table into MyISAM in case of table size exceeding.
      
      Note:
      There is no test case for this bug, the reason is that
      1. The code  that was added already is checked(i.e. works) with existing tests
      2. Correct work of schema_table_store_record() is checked with other test cases
         (information_schema tests)
      So new code is fully covered with existing test cases.
      
      
      sql/mysql_priv.h:
        make schema_table_store_record() function global
      sql/sql_acl.cc:
        The problem is that we cannot insert new record into memory table
        when table size exceeds max memory table size.
        The fix is to use schema_table_store_record() function which
        converts memory table into MyISAM in case of table size exceeding.
      sql/sql_show.cc:
        make schema_table_store_record() function global
      e1383368
  23. 17 Dec, 2008 1 commit
    • Sergey Glukhov's avatar
      Bug#29263 disabled storage engines omitted in SHOW ENGINES · 75344d3d
      Sergey Glukhov authored
      Static disabled plugins|engines and dynamic plugins which installed but disabled
      are not visible in I_S PLUGINS|ENGINES tables because they are not stored into
      global plugin array.
      The fix: add such plugins|engines to plugin array with PLUGIN_IS_DISABLED status.
      I_S.ENGINES 'Transactions', 'XA', 'Savepoints' fields have NULL value in this case.
      
      
      mysql-test/r/warnings_engine_disabled.result:
        test result
      mysql-test/suite/funcs_1/r/is_columns_is.result:
        result fix
      mysql-test/suite/funcs_1/r/is_engines.result:
        result fix
      mysql-test/t/warnings_engine_disabled.test:
        test case
      sql/sql_plugin.cc:
        store disabled plugins|engines into plugin array
      sql/sql_plugin.h:
        added PLUGIN_IS_DISABLED flag
      sql/sql_show.cc:
        added filling of 'engines'&'plugins' tables with disabled engines|plugins
      75344d3d
  24. 10 Dec, 2008 1 commit
  25. 09 Dec, 2008 1 commit
    • Sergey Glukhov's avatar
      Bug#35796 SHOW CREATE TABLE and default value for BIT field · cbb368aa
      Sergey Glukhov authored
      show default value for BIT field in printable format
      
      
      mysql-test/r/type_bit.result:
        Bug#35796 SHOW CREATE TABLE and default value for BIT field
        test result
      mysql-test/t/type_bit.test:
        Bug#35796 SHOW CREATE TABLE and default value for BIT field
        test case
      sql/item.cc:
        Bug#35796 SHOW CREATE TABLE and default value for BIT field
        issue an error if BIN|HEX deafult value is empty value
        (behaviour like for INT fields)
      cbb368aa
  26. 28 Nov, 2008 1 commit
    • Georgi Kodinov's avatar
      Bug #37339: SHOW VARIABLES not working properly with multi-byte datadir · 8e688a7a
      Georgi Kodinov authored
            
      The SHOW VARIABLES LIKE .../SELECT @@/SELECT ... FROM INFORMATION_SCHEMA.VARIABLES
      were assuming that all the system variables are in system charset (UTF-8).
      However the variables that are settable through command line will have a different
      character set (character_set_filesystem).
      Fixed the server to remember the correct character set of basedir, datadir, tmpdir,
      ssl, plugin_dir, slave_load_tmpdir, innodb variables; init_connect and init_slave 
      variables and use it when processing data.
      
      mysql-test/r/ctype_filesystem.result:
        Bug #37339: test case (should be in utf-8)
      mysql-test/t/ctype_filesystem-master.opt:
        Bug #37339: test case (should be in ISO-8859-1)
      mysql-test/t/ctype_filesystem.test:
        Bug #37339: test case
      sql/mysqld.cc:
        Bug #37339: remember the correct character set for init_slave and init_connect
      sql/set_var.cc:
        Bug #37339: 
          - remember the character set of the relevant variables
          - implement storing and using the correct 
            character set
      sql/set_var.h:
        Bug #37339: implement storing and using the correct 
        character set
      sql/sql_show.cc:
        Bug #37339: implement storing and using the correct 
        character set
      8e688a7a
  27. 13 Nov, 2008 3 commits
    • Sergey Glukhov's avatar
      Bug#38909 CREATE_OPTIONS in information_schema produces wrong results · fc27d038
      Sergey Glukhov authored
      table->partition_info is unitialized when we open frm file only.
      The fix is check share->partition_info_len which is set on
      frm opening stage.
      
      
      mysql-test/r/information_schema_part.result:
        test result
      mysql-test/t/information_schema_part.test:
        test case
      sql/sql_show.cc:
        table->partition_info is unitialized when we open frm file only.
        The fix is check share->partition_info_len which is set on
        frm opening stage.
      fc27d038
    • Sergey Glukhov's avatar
      Bug#39955 SELECT on INFORMATION_SCHEMA.GLOBAL_VARIABLES takes too long · 53b30523
      Sergey Glukhov authored
      VARIABLE_VALUE field is decreased to 1024 symbols.
      (affected I_S tables: GLOBAL_VARIABLES, SESSION_VARIABLES,
       GLOBAL_STATUS, SESSION_STATUS).
      The only variable which can be longer than 1024 is
      init_connect. The variable will be truncated with warning.
      Additional fix:
      Added where condition filter which speed up queries which
      have where condition with expressions which use VARIABLE_NAME
      field.
      
      
      mysql-test/r/information_schema.result:
        test result
      mysql-test/r/show_check.result:
        result fix
      mysql-test/suite/funcs_1/r/is_columns_is.result:
        result fix
      mysql-test/t/information_schema.test:
        test case
      sql/sql_show.cc:
        VARIABLE_VALUE field is decreased to 1024 symbols.
        (affected I_S tables: GLOBAL_VARIABLES, SESSION_VARIABLES,
         GLOBAL_STATUS, SESSION_STATUS).
        The only variable which can be longer than 1024 is
        init_connect. The variable will be truncated with warning.
        Additional fix:
        Added where condition filter which speed up queries which
        have where condition with expressions which use VARIABLE_NAME
        field.
      53b30523
    • Sergey Glukhov's avatar
      Bug#35789 wrong datatypes for collation and charset columns in EVENTS, ROUTINES, TRIGGERS · 0dff7272
      Sergey Glukhov authored
      changed 'charset', 'collation' field length from 64 to MY_CS_NAME_SIZE(32)
      in tables:
      SCHEMATA, TABLES, COLUMNS, CHARACTER_SETS,
      COLLATIONS, COLLATION_CHARACTER_SET_APPLICABILITY
      
      
      mysql-test/r/create.result:
        result fix
      mysql-test/r/information_schema.result:
        result fix
      mysql-test/r/show_check.result:
        result fix
      mysql-test/suite/funcs_1/r/is_character_sets.result:
        result fix
      mysql-test/suite/funcs_1/r/is_collation_character_set_applicability.result:
        result fix
      mysql-test/suite/funcs_1/r/is_collations.result:
        result fix
      mysql-test/suite/funcs_1/r/is_columns.result:
        result fix
      mysql-test/suite/funcs_1/r/is_columns_is.result:
        result fix
      mysql-test/suite/funcs_1/r/is_routines.result:
        result fix
      mysql-test/suite/funcs_1/r/is_schemata.result:
        result fix
      mysql-test/suite/funcs_1/r/is_tables.result:
        result fix
      sql/sql_show.cc:
        changed 'charset', 'collation' field length from 64 to MY_CS_NAME_SIZE(32)
        in tables:
        SCHEMATA, TABLES, COLUMNS, CHARACTER_SETS,
        COLLATIONS, COLLATION_CHARACTER_SET_APPLICABILITY
        additional fix: ROUTINES.SQL_MODE is changed to be VARCHAR(addon for Bug#29153)
      0dff7272
  28. 10 Nov, 2008 1 commit
  29. 04 Nov, 2008 1 commit
    • Mattias Jonsson's avatar
      Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output · bb1ad9ce
      Mattias Jonsson authored
      The partitioning clause is only a very long single line, which is very
      hard to interpret for a human. This patch breaks the partitioning
      syntax into one line for the partitioning type, and one line per
      partition/subpartition.
      
      mysql-test/r/information_schema_part.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/r/partition.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/r/partition_archive.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/r/partition_datatype.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/r/partition_innodb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/r/partition_mgm.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/r/partition_mgm_err.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/r/partition_not_windows.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/r/partition_range.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/r/partition_symlink.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/ndb/r/ndb_partition_key.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/ndb/r/ndb_partition_range.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/ndb_team/r/ndb_dd_backuprestore.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/inc/partition_directory.inc:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Changed partitioning clause format for verifying the new output format.
      mysql-test/suite/parts/r/ndb_dd_backuprestore.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/part_supported_sql_func_innodb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/part_supported_sql_func_myisam.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/part_supported_sql_func_ndb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_alter1_1_2_innodb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_alter1_1_2_myisam.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_alter1_1_innodb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_alter1_1_myisam.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_alter1_2_innodb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_alter1_2_myisam.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_alter2_1_innodb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_alter2_1_myisam.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_alter2_2_innodb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_alter2_2_myisam.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_alter3_innodb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_alter3_myisam.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_alter4_innodb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_alter4_myisam.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_auto_increment_archive.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_auto_increment_blackhole.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_auto_increment_innodb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_auto_increment_memory.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_auto_increment_myisam.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_auto_increment_ndb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_basic_innodb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_basic_myisam.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_basic_symlink_innodb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_basic_symlink_myisam.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_bit_innodb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_bit_myisam.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_bit_ndb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_char_innodb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_char_myisam.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_datetime_innodb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_datetime_myisam.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_decimal_innodb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_decimal_myisam.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_engine_innodb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_engine_myisam.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_engine_ndb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_float_innodb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_float_myisam.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_int_innodb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_int_myisam.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_int_ndb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_mgm_lc0_archive.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_mgm_lc0_innodb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_mgm_lc0_memory.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_mgm_lc0_myisam.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_mgm_lc0_ndb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_mgm_lc1_archive.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_mgm_lc1_innodb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_mgm_lc1_memory.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_mgm_lc1_myisam.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_mgm_lc1_ndb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_mgm_lc2_archive.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_mgm_lc2_innodb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_mgm_lc2_memory.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_mgm_lc2_myisam.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_mgm_lc2_ndb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_special_innodb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_special_myisam.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_syntax_innodb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/partition_syntax_myisam.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/parts/r/rpl_partition.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/rpl/r/rpl_extraCol_innodb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/rpl/r/rpl_extraCol_myisam.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/rpl/r/rpl_innodb_bug28430.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/rpl/r/rpl_row_basic_8partition.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/rpl_ndb/r/rpl_ndb_2innodb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/rpl_ndb/r/rpl_ndb_2myisam.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/rpl_ndb/r/rpl_ndb_dd_partitions.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/rpl_ndb/r/rpl_ndb_extraCol.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/rpl_ndb/r/rpl_ndb_innodb2ndb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/suite/rpl_ndb/r/rpl_ndb_myisam2ndb.result:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Updated test result due to the new partitioning clause output format.
      mysql-test/t/partition.test:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Added small tests for for the new partitioning clause output format.
      mysql-test/t/partition_mgm.test:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Added small tests for for the new partitioning clause output format.
      sql/sql_partition.cc:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Changed formatting of the partitioning clause from single line into
        multiple indented lines
      sql/sql_show.cc:
        Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output
        
        Changed formatting of the partitioning clause from single line into
        multiple indented lines
      bb1ad9ce
  30. 09 Oct, 2008 3 commits
    • Sergey Glukhov's avatar
      Bug#29153 SHOW and INFORMATION_SCHEMA commands increment Created_tmp_disk_tables · 169a65aa
      Sergey Glukhov authored
      TRIGGERS.SQL_MODE, EVENTS.SQL_MODE, TRIGGERS.DEFINER:
      field type is changed to VARCHAR.
      
      
      mysql-test/r/information_schema.result:
        result fix
      mysql-test/r/show_check.result:
        result fix
      mysql-test/suite/funcs_1/r/is_columns_is.result:
        result fix
      mysql-test/suite/funcs_1/r/is_events.result:
        result fix
      mysql-test/suite/funcs_1/r/is_triggers.result:
        result fix
      sql/sql_show.cc:
        TRIGGERS.SQL_MODE, EVENTS.SQL_MODE, TRIGGERS.DEFINER:
        field type is changed to VARCHAR.
      169a65aa
    • Sergey Glukhov's avatar
      Bug#38918 selecting from information_schema.columns is disproportionately slow · 95b721e6
      Sergey Glukhov authored
      The problem: table_open_method is not calculated properly if '*' is used in 'select'
      The fix: added table_open_method calculation for such case
      
      
      mysql-test/r/information_schema.result:
        test result
      mysql-test/t/information_schema.test:
        test case
      sql/sql_show.cc:
        The problem: table_open_method is not calculated properly if '*' is used in 'select'
        The fix: added table_open_method calculation for such case
      95b721e6
    • Kristofer Pettersson's avatar
      Bug#24289 Status Variable "Questions" gets wrong values with Stored Routines · f985e787
      Kristofer Pettersson authored
                       
      When running Stored Routines the Status Variable "Questions" was wrongly
      incremented. According to the manual it should contain the "number of
      statements that clients have sent to the server"
                    
      Introduced a new status variable 'questions' to replace the query_id
      variable which currently corresponds badly with the number of statements
      sent by the client.
                  
      The new behavior is ment to be backward compatible with 4.0 and at the
      same time work with new features in a similar way.
                  
      This is a backport from 6.0
      
      mysql-test/r/status2.result:
        Added test case
      mysql-test/t/status2.test:
        Added test case
      sql/mysqld.cc:
        Introduced a new status variable 'questions' to replace the query_id
        variable which currently corresponds badly with the number of statements
        sent by the client.
      sql/sql_class.h:
        Introduced a new status variable 'questions' to replace the query_id
        variable which currently corresponds badly with the number of statements
        sent by the client.
      sql/sql_parse.cc:
        To be backward compatible with 4.0 and at the same time extend the 
        interpretation of the Question variable, it should be increased on
        all COM-commands but COM_STATISTICS, COM_PING, COM_STMT_PREPARE,
        COM_STMT_CLOSE and COM_STMT_RESET.
        Since COM_QUERY can process multiple statements, there has to be an
        extra increase there as well.
      sql/sql_show.cc:
        Removed deprecated SHOW_QUESTION status code.
      sql/structs.h:
        Removed deprecated SHOW_QUESTION status code.
      f985e787
  31. 08 Oct, 2008 1 commit
    • Mats Kindahl's avatar
      Bug #34707: Row based replication: slave creates table within wrong database · dcd050c5
      Mats Kindahl authored
      The failure was caused by executing a CREATE-SELECT statement that creates a
      table in another database than the current one. In row-based logging, the
      CREATE statement was written to the binary log without the database, hence
      creating the table in the wrong database, causing the following inserts to
      fail since the table didn't exist in the given database.
      
      Fixed the bug by adding a parameter to store_create_info() that will make
      the function print the database name before the table name and used that
      in the calls that write the CREATE statement to the binary log. The database
      name is only printed if it is different than the currently selected database.
      
      The output of SHOW CREATE TABLE has not changed and is still printed without
      the database name.
      
      mysql-test/suite/rpl/t/rpl_row_create_table.test:
        Added test to check that CREATE-SELECT into another database than the
        current one replicates.
      sql/sql_insert.cc:
        Adding parameter to calls to store_create_info().
      sql/sql_show.cc:
        Adding parameter to calls to store_create_info().
        
        Extending store_create_info() with parameter 'show_database' that will cause
        the database to be written before the table name.
      sql/sql_show.h:
        Adding parameter to call to store_create_info() to tell if the database should be shown or not.
      sql/sql_table.cc:
        Adding parameter to calls to store_create_info().
      dcd050c5
  32. 02 Oct, 2008 1 commit
    • Sergey Glukhov's avatar
      Bug#22763 Disrepancy between SHOW CREATE VIEW and I_S.VIEWS · 7e60f710
      Sergey Glukhov authored
      The problem:
      I_S views table does not check the presence of SHOW_VIEW_ACL|SELECT_ACL
      privileges for a view. It leads to discrepancy between SHOW CREATE VIEW
      and I_S.VIEWS.
      The fix:
      added appropriate check.
      
      
      mysql-test/r/information_schema_db.result:
        test result
      mysql-test/t/information_schema_db.test:
        test case
      sql/sql_show.cc:
        The problem:
        I_S views table does not check the presence of SHOW_VIEW_ACL|SELECT_ACL
        privileges for a view. It leads to discrepancy between SHOW CREATE VIEW
        and I_S.VIEWS.
        The fix:
        added appropriate check.
      7e60f710
  33. 20 Aug, 2008 1 commit
  34. 19 Aug, 2008 1 commit
    • Mats Kindahl's avatar
      Bug #34707: Row based replication: slave creates table within wrong database · 5cd9d96a
      Mats Kindahl authored
      The failure was caused by executing a CREATE-SELECT statement that creates a
      table in another database than the current one. In row-based logging, the
      CREATE statement was written to the binary log without the database, hence
      creating the table in the wrong database, causing the following inserts to
      fail since the table didn't exist in the given database.
      
      Fixed the bug by adding a parameter to store_create_info() that will make
      the function print the database name before the table name and used that
      in the calls that write the CREATE statement to the binary log. The database
      name is only printed if it is different than the currently selected database.
      
      The output of SHOW CREATE TABLE has not changed and is still printed without
      the database name.
      
      mysql-test/suite/rpl/r/rpl_row_create_table.result:
        Result file change.
      mysql-test/suite/rpl/t/rpl_row_create_table.test:
        Added test to check that CREATE-SELECT into another database than the
        current one replicates.
      sql/sql_insert.cc:
        Adding parameter to calls to store_create_info().
      sql/sql_show.cc:
        Adding parameter to calls to store_create_info().
        
        Extending store_create_info() with parameter 'show_database' that will cause
        the database to be written before the table name.
      sql/sql_show.h:
        Adding parameter to call to store_create_info() to tell if the database should be shown or not.
      sql/sql_table.cc:
        Adding parameter to calls to store_create_info().
      5cd9d96a