1. 03 Aug, 2007 5 commits
    • unknown's avatar
      powermacg5 problem fix · bfe229f2
      unknown authored
      we need a copy of I_S name because the name can be changed in case of lowercase_table_name!=0
      
      bfe229f2
    • unknown's avatar
      Merge jbruehe@bk-internal.mysql.com:/home/bk/mysql-5.1-build · a2e81682
      unknown authored
      into  trift2.:/MySQL/M51/cmake-5.1
      
      a2e81682
    • unknown's avatar
      Re-apply fixes originally made by Kent, · 7a5ee066
      unknown authored
      they got lost because of a merge conflict with the CMakeLists.txt 
      dependency fix (numer 29982 in our bugs DB).
      
      These changes are for bug#30118.
      
      
      client/CMakeLists.txt:
        Manual merge from 5.0 (bug#30118)
      libmysql/CMakeLists.txt:
        Manual merge from 5.0 (bug#30118)
      mysys/CMakeLists.txt:
        Manual merge from 5.0 (bug#30118)
      sql/CMakeLists.txt:
        Added missing '${MYSQLD_EXE_SUFFIX}' to "mysqld" targets new in 5.1
      zlib/CMakeLists.txt:
        Manual merge from 5.0 (bug#30118)
      7a5ee066
    • unknown's avatar
      README.txt-1: · 3bbbe7a0
      unknown authored
        Rename: mysql-test/suite/funcs_1/README.txt -> mysql-test/suite/funcs_1/README.txt-1
      README.txt:
        Rename: BitKeeper/deleted/.del-README.txt -> mysql-test/suite/funcs_1/README.txt
      README.txt-old-delete:
        Rename: mysql-test/suite/funcs_1/README.txt -> mysql-test/suite/funcs_1/README.txt-old-delete
      README.txt:
        Rename: mysql-test/suite/funcs_1/README.txt-1 -> mysql-test/suite/funcs_1/README.txt
      .del-README.txt-old-delete:
        Delete: mysql-test/suite/funcs_1/README.txt-old-delete
      
      
      BitKeeper/deleted/.del-README.txt-old-delete:
        Delete: mysql-test/suite/funcs_1/README.txt-old-delete
      mysql-test/suite/funcs_1/README.txt:
        Rename: mysql-test/suite/funcs_1/README.txt-1 -> mysql-test/suite/funcs_1/README.txt
      3bbbe7a0
    • unknown's avatar
      Merge jbruehe@bk-internal.mysql.com:/home/bk/mysql-5.1-build · 8e3a4066
      unknown authored
      into  trift2.:/MySQL/M51/push-5.1
      
      8e3a4066
  2. 02 Aug, 2007 35 commits
    • unknown's avatar
      WL#3732 Information schema optimization · 6cc8d986
      unknown authored
      
      client/mysqldump.c:
        table type compare is changed to case insensitive
      mysql-test/r/information_schema.result:
        test result
      mysql-test/r/information_schema_db.result:
        result fix
      mysql-test/suite/ndb/r/ndb_alter_table.result:
        result fix
      mysql-test/suite/ndb/r/ndb_temporary.result:
        result fix
      mysql-test/t/information_schema.test:
        test case
      sql/ha_ndbcluster.cc:
        char* variables are changed to LEX_STRING
      sql/ha_ndbcluster.h:
        char* variables are changed to LEX_STRING
      sql/ha_ndbcluster_binlog.cc:
        char* variables are changed to LEX_STRING
      sql/handler.cc:
        char* variables are changed to LEX_STRING
      sql/handler.h:
        char* variables are changed to LEX_STRING
      sql/sql_base.cc:
        Modified functions which are used during open table process
        according to table opening method and requested_object.
      sql/sql_select.cc:
        Add support for I_S tables into select_describe() function
      sql/sql_show.cc:
        1. Added initialization of 'open_method' to 'st_field_info' structs.
        2. Added initialization of 'i_s_requested_object' to 'ST_SCHEMA_TABLE' structs.
        3. New function which calculates database name and table name values 
           from 'where' condition if it's possible
           void get_lookup_field_values(THD *thd, COND *cond, TABLE_LIST *table,
                                        LOOKUP_FIELD_VALUES *lookup_field_vals);
        4. New function which set table open method
           setup_table_open_method(TABLE_LIST *tables,
                                   ST_SCHEMA_TABLE *schema_table,
                                   enum enum_schema_tables schema_table_idx)
        5. New function
           int make_db_list(THD *thd, List<LEX_STRING> *files,
                            LOOKUP_FIELD_VALUES *lookup_field_vals,
                            bool *with_i_schema)
        6. New function
           int make_table_name_list(THD *thd, List<LEX_STRING> *files, LEX *lex,
                                    LOOKUP_FIELD_VALUES *lookup_field_vals,
                                    bool with_i_schema, LEX_STRING *db_name)
        7. Modified 'get_all_tables' function according to new schema(see wl#3732).
      sql/sql_show.h:
        char* variables are changed to LEX_STRING
      sql/table.cc:
        Modified functions which are used during open table process
        according to table opening method and requested_object.
      sql/table.h:
        1. added new constants(open_method)
        #define SKIP_OPEN_TABLE 0
        #define OPEN_FRM_ONLY   1
        #define OPEN_FULL_TABLE 2
            
        2. Added new field 'open_method' into struct st_field_info;
           uint open_method;
            
        3. Added new field into ST_SCHEMA_TABLE struct
           uint i_s_requested_object;  /* the object we need to open(TABLE | VIEW) */.
        4. Added new field to TABLE_LIST struct.
           uint i_s_requested_object;
           This field is set from ST_SCHEMA_TABLE.i_s_requested_object
           for processed table before opening.
            
        5. Added new fields to TABLE_LIST struct, used for 'explain select' for I_S table
           bool has_db_lookup_value;
           bool has_table_lookup_value;
           uint table_open_method;
      sql/unireg.h:
        added new constants
      6cc8d986
    • unknown's avatar
      Merge trift2.:/MySQL/M50/push-5.0 · 1a75136f
      unknown authored
      into  trift2.:/MySQL/M51/push-5.1
      
      1a75136f
    • unknown's avatar
      Merge trift2.:/MySQL/M41/push-4.1 · 29659ec3
      unknown authored
      into  trift2.:/MySQL/M50/push-5.0
      
      29659ec3
    • unknown's avatar
      Merge jbruehe@bk-internal.mysql.com:/home/bk/mysql-4.1-build · 74a79a51
      unknown authored
      into  trift2.:/MySQL/M41/push-4.1
      
      74a79a51
    • unknown's avatar
      Limit stack size of the server to 1 MB. · 3801579b
      unknown authored
          
      Manual transfer of the fix for bug#20815 from 5.0 to 5.1
      
      
      CMakeLists.txt:
        Limit stack size of the server to 1 MB.
        
        Manual transfer of the fix for bug#20815 from 5.0 to 5.1
      3801579b
    • unknown's avatar
      Merge trift2.:/MySQL/M50/push-5.0 · ea907b3c
      unknown authored
      into  trift2.:/MySQL/M51/push-5.1
      
      
      sql/CMakeLists.txt:
        Auto merged
      ea907b3c
    • unknown's avatar
      Merge jbruehe@bk-internal.mysql.com:/home/bk/mysql-5.0-build · 8d8fea45
      unknown authored
      into  trift2.:/MySQL/M50/push-5.0
      
      
      sql/CMakeLists.txt:
        Auto merged
      8d8fea45
    • unknown's avatar
      Merge trift2.:/MySQL/M50/push-5.0 · fb19fd37
      unknown authored
      into  trift2.:/MySQL/M51/push-5.1
      
      
      mysql-test/r/show_check.result:
        Auto merged
      mysql-test/t/show_check.test:
        Auto merged
      fb19fd37
    • unknown's avatar
      Merge trift2.:/MySQL/M50/mysql-5.0 · 68c9af42
      unknown authored
      into  trift2.:/MySQL/M50/push-5.0
      
      68c9af42
    • unknown's avatar
      Merge jbruehe@bk-internal.mysql.com:/home/bk/mysql-5.1-build · 81e07e43
      unknown authored
      into  trift2.:/MySQL/M51/push-5.1
      
      
      BitKeeper/deleted/.del-CMakeLists.txt~2eb9019b:
        Auto merged
      BitKeeper/deleted/.del-CMakeLists.txt~86a68ea1:
        Auto merged
      BitKeeper/deleted/.del-CMakeLists.txt~99a50df6:
        Auto merged
      BitKeeper/deleted/.del-CMakeLists.txt~ef945345:
        Auto merged
      BitKeeper/deleted/.del-CMakeLists.txt~fdec1f01:
        Auto merged
      dbug/CMakeLists.txt:
        Auto merged
      tests/CMakeLists.txt:
        Auto merged
      zlib/CMakeLists.txt:
        Auto merged
      client/CMakeLists.txt:
        Will be re-applied using "patch".
      libmysql/CMakeLists.txt:
        Will be re-applied using "patch".
      mysys/CMakeLists.txt:
        Will be re-applied using "patch".
      sql/CMakeLists.txt:
        Will be re-applied using "patch".
      81e07e43
    • unknown's avatar
      Merge mysql.com:/home/kent/bk/cmake-tls/mysql-5.0-build · 032d8646
      unknown authored
      into  mysql.com:/home/kent/bk/cmake-tls/mysql-5.1-build
      
      
      BitKeeper/deleted/.del-CMakeLists.txt~5:
        Auto merged
      storage/myisam/myisamchk.c:
        Auto merged
      032d8646
    • unknown's avatar
      make_win_bin_dist: · a523a68c
      unknown authored
        Simplified copying of 'mysql-test' directory
      
      
      scripts/make_win_bin_dist:
        Simplified copying of 'mysql-test' directory
      a523a68c
    • unknown's avatar
      Merge trift2.:/MySQL/M51/bug29982-5.1 · 638de07f
      unknown authored
      into  trift2.:/MySQL/M51/push-5.1
      
      
      BitKeeper/deleted/.del-CMakeLists.txt~5b8836e4:
        Auto merged
      BitKeeper/deleted/.del-CMakeLists.txt~fc201a06:
        Auto merged
      CMakeLists.txt:
        Auto merged
      tests/CMakeLists.txt:
        Auto merged
      638de07f
    • unknown's avatar
      Merge jbruehe@bk-internal.mysql.com:/home/bk/mysql-5.1-new-maint · 10f98395
      unknown authored
      into  trift2.:/MySQL/M51/push-5.1
      
      
      sql/sql_parse.cc:
        Auto merged
      10f98395
    • unknown's avatar
      Merge production.mysql.com:/usersnfs/jperkin/bk/trees/build/mysql-4.1 · 1adaa4d1
      unknown authored
      into  production.mysql.com:/usersnfs/jperkin/bk/trees/build/mysql-5.0
      
      
      myisam/myisamchk.c:
        Auto merged
      1adaa4d1
    • unknown's avatar
      Merge jperkin@bk-internal.mysql.com:/home/bk/mysql-4.1-build · 221b4509
      unknown authored
      into  production.mysql.com:/usersnfs/jperkin/bk/trees/build/mysql-4.1
      
      221b4509
    • unknown's avatar
      myisamchk.c: · 43d7f5a5
      unknown authored
        Fix typo in usage.
      
      
      myisam/myisamchk.c:
        Fix typo in usage.
      43d7f5a5
    • unknown's avatar
      Merge kboortz@bk-internal.mysql.com:/home/bk/mysql-5.0-build · d5e20365
      unknown authored
      into  mysql.com:/home/kent/bk/cmake-tls/mysql-5.0-build
      
      d5e20365
    • unknown's avatar
      Makefile.am: · e6cf3535
      unknown authored
        Add CMakeLists.txt to source distribution
      CMakeLists.txt:
        Added missing '${MYSQLD_EXE_SUFFIX}' to "mysqld" targets new in 5.1
        Manual merge from 5.0 (bug#30118)
      CMakeLists.txt, mysqlbinlog.cc, lib_sql.cc:
        No need to test on USING_CMAKE, it is the only Windows build
      
      
      client/mysqlbinlog.cc:
        No need to test on USING_CMAKE, it is the only Windows build
      libmysqld/CMakeLists.txt:
        No need to test on USING_CMAKE, it is the only Windows build
      libmysqld/lib_sql.cc:
        No need to test on USING_CMAKE, it is the only Windows build
      libmysqld/Makefile.am:
        Add CMakeLists.txt to source distribution
      libmysqld/examples/Makefile.am:
        Add CMakeLists.txt to source distribution
      sql/CMakeLists.txt:
        Added missing '${MYSQLD_EXE_SUFFIX}' to "mysqld" targets new in 5.1
      client/CMakeLists.txt:
        Manual merge from 5.0 (bug#30118)
      libmysql/CMakeLists.txt:
        Manual merge from 5.0 (bug#30118)
      mysys/CMakeLists.txt:
        Manual merge from 5.0 (bug#30118)
      zlib/CMakeLists.txt:
        Manual merge from 5.0 (bug#30118)
      e6cf3535
    • unknown's avatar
      Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-5.0-maint · b71b835e
      unknown authored
      into  mysql.com:/home/ram/work/b30088/b30088.5.0
      
      
      mysql-test/r/show_check.result:
        Auto merged
      mysql-test/t/show_check.test:
        Auto merged
      b71b835e
    • unknown's avatar
      After-merge fix: result adjusted. · 55b216c7
      unknown authored
      55b216c7
    • unknown's avatar
      Merge mysql.com:/home/ram/work/b30088/b30088.5.0 · ab9e6ca5
      unknown authored
      into  mysql.com:/home/ram/work/b30088/b30088.5.1
      
      
      sql/mysqld.cc:
        Auto merged
      mysql-test/t/show_check.test:
        SCCS merged
      ab9e6ca5
    • unknown's avatar
      Merge mysql.com:/home/kent/bk/cmake-tls/mysql-5.0-build · 18b1828e
      unknown authored
      into  mysql.com:/home/kent/bk/cmake-tls/mysql-5.1-build
      
      
      BitKeeper/deleted/.del-CMakeLists.txt~13:
        Auto merged
      BitKeeper/deleted/.del-CMakeLists.txt~14:
        Auto merged
      BitKeeper/deleted/.del-CMakeLists.txt~3:
        Auto merged
      BitKeeper/deleted/.del-CMakeLists.txt~8:
        Auto merged
      BitKeeper/deleted/.del-CMakeLists.txt~9:
        Auto merged
      scripts/make_win_bin_dist:
        SCCS merged
      18b1828e
    • unknown's avatar
      CMakeLists.txt (several), make_win_bin_dist: · 7bd93758
      unknown authored
        Aligned client library build and use with the Unix version when it
        comes to what source to include directly in the builds, and what
        libraries to link with (bug#30118).
      
        Also reviewed, corrected and made more clear when static or dynamic
        Thread Local Storage is to be used. Some code duplication was removed,
        and some redundant library usage were removed, reducing the risk of
        incorrect TLS usage.
      
      
      client/CMakeLists.txt:
        - Removed code duplication by moving build of "mysqlclient" to
          the "libmysql" directory
        - Link clients with the new "mysqlclient_notls", to protect for
          the case the clients use more than the client API, and access
          thread data directly.
        - Synced explicit target addition of sources with Unix.
      dbug/CMakeLists.txt:
        No need to set CXX flags, no C++ code
      libmysql/CMakeLists.txt:
        - Aligned more with Unix version when it comes to included source files
        - Build both DLL and static library in this directory
        - Produce separe static TLS version of the static client library, for
           use when building clients in this build that might access TLS
           storage directly.
      mysys/CMakeLists.txt:
        We only have to build the static TLS version, as no clients are
        linking directly with the "mysys" library.
      scripts/make_win_bin_dist:
        Ajusted paths to new "mysqlclient.lib" location in source tree
      sql/CMakeLists.txt:
        Removed duplicate "ha_blackhole.cc" in file listing
        Removed explicit link to "dbug.lib" not needed
        Link with the static TLS "mysqlclient_notls"
      tests/CMakeLists.txt:
        Removed explicit link to "dbug", "mysys", "yassl", "taocrypt" and
        "zlib" not needed.
        Added explicit source addition "../mysys/my_memmem.c".
        No need for setting CXX flags, no C++ code.
        Use the static TLS "mysqlclient_notls" for linkage.
      zlib/CMakeLists.txt:
        No need for a dynamic TLS version of this library, no access to thread
        storage is done from it. Also no need to define MYSQL_CLIENT, not used,
        or __WIN32__ that is handled by the library header without this define.
      7bd93758
    • unknown's avatar
      Merge mysql.com:/home/ram/work/b30200/b30200.5.0 · 06bcb53c
      unknown authored
      into  mysql.com:/home/ram/work/b30200/b30200.5.1
      
      
      sql/item_func.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/item_create.cc:
        manual merge.
      06bcb53c
    • unknown's avatar
      Fix for bug #30200: mysqlbinlog.test: connection_id() not restored under ps-protocol · 49e8f218
      unknown authored
      Problem: thd->thread_specific_used flag is not set executing a statement
      containig connection_id() function using PS protocol, that leads to 
      improper binlog event creation.
      
      Fix: set the flag in the Item_func_connection_id::fix_fields().
      
      
      sql/item_create.cc:
        Fix for bug #30200: mysqlbinlog.test: connection_id() not restored under ps-protocol
          - set the thd->thread_specific_used flag in the Item_func_connection_id::fix_fields()
            to have it properly set using PS protocol as well.
      sql/item_func.cc:
        Fix for bug #30200: mysqlbinlog.test: connection_id() not restored under ps-protocol
          - set the thd->thread_specific_used flag in the Item_func_connection_id::fix_fields()
            to have it properly set using PS protocol as well.
      sql/sql_parse.cc:
        Fix for bug #30200: mysqlbinlog.test: connection_id() not restored under ps-protocol
          - reset the thd->thread_specific_used flag in the mysql_reset_thd_for_next_command().
      49e8f218
    • unknown's avatar
      Merge trift2.:/MySQL/M50/push-5.0 · 348114d7
      unknown authored
      into  trift2.:/MySQL/M51/push-5.1
      
      348114d7
    • unknown's avatar
      Merge trift2.:/MySQL/M51/mysql-5.1 · e2bf11a3
      unknown authored
      into  trift2.:/MySQL/M51/push-5.1
      
      
      sql/sql_parse.cc:
        Auto merged
      e2bf11a3
    • unknown's avatar
      Merge trift2.:/MySQL/M50/mysql-5.0 · 1f287084
      unknown authored
      into  trift2.:/MySQL/M50/push-5.0
      
      1f287084
    • unknown's avatar
      Post-merge fix. Update some test results, and add an InnoDB-only · 1d9d767c
      unknown authored
      compatibility hook, thd_mark_transaction_to_rollback().
      
      
      mysql-test/r/ps.result:
        Post-merge fix.   Changes for WL 3984 (Revise locking
        of mysql.general_log and mysql.slow_log) cause some test
        result differences.
      mysql-test/r/show_check.result:
        Post-merge fix.   Changes for WL 3984 (Revise locking
        of mysql.general_log and mysql.slow_log) cause some test
        result differences.
      sql/sql_class.cc:
        Post-merge fix, add InnoDB compatibility hook (defined for
        InnoDB only), thd_mark_transaction_to_rollback().
      storage/innobase/handler/ha_innodb.cc:
        Post-merge fix, add InnoDB compatibility hook (defined for
        InnoDB only), thd_mark_transaction_to_rollback().
      storage/innobase/handler/ha_innodb.h:
        Post-merge fix, add InnoDB compatibility hook (defined for
        InnoDB only), thd_mark_transaction_to_rollback().
      1d9d767c
    • unknown's avatar
      Merge 50 -> 51 (-opt changesets) · 699fab66
      unknown authored
      
      sql/handler.cc:
        Auto merged
      sql/handler.h:
        Auto merged
      sql/sp_head.cc:
        Auto merged
      sql/sp_rcontext.cc:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_select.h:
        Auto merged
      sql/sql_table.cc:
        Auto merged
      sql/sql_union.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      sql/table.cc:
        Auto merged
      mysql-test/include/read_many_rows.inc:
        Manual merge
      mysql-test/r/read_many_rows_innodb.result:
        Manual merge
      sql/sql_class.cc:
        Manual merge
      sql/sql_class.h:
        Manual merge
      storage/innobase/handler/ha_innodb.cc:
        Manual merge
      699fab66
    • unknown's avatar
      Merge ramayana.hindu.god:/home/tsmith/m/bk/maint/41 · 1de2317b
      unknown authored
      into  ramayana.hindu.god:/home/tsmith/m/bk/maint/50
      
      1de2317b
    • unknown's avatar
      Merge tsmith@bk-internal.mysql.com:/home/bk/mysql-5.1-opt · 81802f4c
      unknown authored
      into  ramayana.hindu.god:/home/tsmith/m/bk/maint/51
      
      
      mysql-test/r/show_check.result:
        Auto merged
      mysql-test/t/disabled.def:
        Auto merged
      mysql-test/t/show_check.test:
        Auto merged
      sql/handler.cc:
        Auto merged
      sql/handler.h:
        Auto merged
      sql/log.cc:
        Auto merged
      sql/set_var.cc:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_class.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      sql/sql_delete.cc:
        Auto merged
      sql/sql_insert.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_show.cc:
        Auto merged
      sql/sql_table.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      sql/table.cc:
        Auto merged
      81802f4c
    • unknown's avatar
      Merge tsmith@bk-internal.mysql.com:/home/bk/mysql-5.0-opt · ed248848
      unknown authored
      into  ramayana.hindu.god:/home/tsmith/m/bk/maint/50
      
      
      sql/handler.h:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_class.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      sql/sql_table.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      sql/table.cc:
        Auto merged
      ed248848
    • unknown's avatar
      Merge tsmith@bk-internal.mysql.com:/home/bk/mysql-4.1-opt · 5e1fe56e
      unknown authored
      into  ramayana.hindu.god:/home/tsmith/m/bk/maint/41
      
      5e1fe56e