1. 09 Nov, 2007 1 commit
    • unknown's avatar
      Rewrite profiler code to be easier to maintain and less buggy. · 69aee073
      unknown authored
      Between 5.0 and 5.1, the step of incrementing the global query id
      changed, which broke how the profiler noticed when a new query had
      started.  That reset the state list and caused all but the last 
      five (or so) states to be thrown away.
      
      Now, don't watch for query_id changes in the lower level.
      
      Add a bogus state change at the end of profiling so that the last 
      real state change is timed.
      
      Emit source reference for the start of the span of time instead of
      the end of it.
      
      
      mysql-test/r/profiling.result:
        Add a test that shows continuation of execution with multi-statement
        packets.
      mysql-test/t/profiling.test:
        Add a test that shows continuation of execution with multi-statement
        packets.
      sql/sql_parse.cc:
        Insert profiling calls at beginnings and ends of each query.
        
        Remove the old way of keeping or discarding profiles, and flipping 
        to new query profiles.
      sql/sql_profile.cc:
        No longer use the thread's query_id to determine when we flip
        to a new statement.
        
        Some status statements are set to be NULL in the server.  We don't
        log those, as it doesn't fit this style of profiling yet.
        
        Rewrite the parser code to be more active and legible.  
        
        Relying on passive/lazy discovery of new queries was buggy.
        
        Add a bogus status change before ending a profile, so that the 
        previous real status has a endpoint.
        
        Emit source reference of the start of the span-of-time instead of
        the end of it.
      sql/sql_profile.h:
        Store the server_query_id at instantiation time for a new query.
        
        Rewrite the parser code to be more active.  Relying on passive/lazy
        discovery of new queries was buggy.
        
        Name first state to more honestly describe the state.  We don't 
        really know of initialization that will follow.
      sql/sql_show.cc:
        Update comment to note the decidedly weird field_length behavior
        on Decimal types in information_schema.
      69aee073
  2. 02 Nov, 2007 2 commits
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.1-community · 6dbc0c5a
      unknown authored
      into  zippy.cornsilk.net:/home/cmiller/work/mysql/mysql-5.1
      
      
      CMakeLists.txt:
        Auto merged
      configure.in:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/sql_cache.cc:
        Auto merged
      6dbc0c5a
    • unknown's avatar
      Fix several merge problems. There are many changes in 5.1 from 5.0 · b01c89ed
      unknown authored
      that affect profiling.
      
      
      mysql-test/r/information_schema.result:
        Merge fixed.  This result moved to a new file.
      sql/sql_parse.cc:
        Include profiling in statistics.
        
        Add hook for SHOW_PROFILE in execution.
      sql/sql_profile.cc:
        Move/add the FEATURE_DISABLED warning to the I_S filling func.
        
        Fix merge, where a new member was added to ST_FIELD_INFO.
        
        orig_sql_command method was removed from Lex structure.
      sql/sql_show.cc:
        Fix merge problem.
      sql/sql_yacc.yy:
        orig_sql_command member removed from Lex structure in 5.1 .
      b01c89ed
  3. 31 Oct, 2007 4 commits
    • unknown's avatar
      Merge zippy.cornsilk.net:/home/cmiller/work/mysql/mysql-5.0-community · cca4ea27
      unknown authored
      into  zippy.cornsilk.net:/home/cmiller/work/mysql/mysql-5.1
      
      
      CMakeLists.txt:
        Auto merged
      BitKeeper/deleted/.del-Makefile.am~2:
        Auto merged
      BitKeeper/deleted/.del-README~1:
        Auto merged
      BitKeeper/deleted/.del-configure.js:
        Auto merged
      BitKeeper/deleted/.del-ha_berkeley.cc:
        Auto merged
      BitKeeper/triggers/post-commit:
        Auto merged
      client/CMakeLists.txt:
        Auto merged
      extra/CMakeLists.txt:
        Auto merged
      include/config-win.h:
        Auto merged
      libmysql/CMakeLists.txt:
        Auto merged
      libmysqld/Makefile.am:
        Auto merged
      mysql-test/r/func_in.result:
        Auto merged
      mysql-test/r/information_schema_db.result:
        Auto merged
      mysql-test/t/func_in.test:
        Auto merged
      mysql-test/t/information_schema.test:
        Auto merged
      server-tools/instance-manager/CMakeLists.txt:
        Auto merged
      sql/CMakeLists.txt:
        Auto merged
      sql/Makefile.am:
        Auto merged
      sql/ha_ndbcluster.cc:
        Auto merged
      sql/item_cmpfunc.cc:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/lex.h:
        Auto merged
      sql/lock.cc:
        Auto merged
      sql/log_event.cc:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/slave.cc:
        Auto merged
      sql/sp_head.cc:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_cache.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_lex.cc:
        Auto merged
      sql/sql_lex.h:
        Auto merged
      sql/sql_prepare.cc:
        Auto merged
      sql/sql_repl.cc:
        Auto merged
      sql/sql_table.cc:
        Auto merged
      sql/sql_update.cc:
        Auto merged
      sql/sql_view.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      sql/structs.h:
        Auto merged
      storage/archive/ha_archive.cc:
        Auto merged
      storage/myisam/CMakeLists.txt:
        Auto merged
      storage/myisam/ha_myisam.cc:
        Auto merged
      storage/myisam/mi_open.c:
        Auto merged
      storage/myisammrg/ha_myisammrg.cc:
        Auto merged
      storage/ndb/src/ndbapi/DictCache.cpp:
        Auto merged
      BitKeeper/deleted/.del-mysqld.vcproj~6aa7b3f9c3e28fcb:
        Manual merge.
      configure.in:
        Manual merge.
      mysql-test/r/information_schema.result:
        Manual merge.
      mysql-test/t/profiling.test:
        Manual merge.
      sql/set_var.cc:
        Manual merge.
      sql/sql_parse.cc:
        Manual merge.
      sql/sql_profile.cc:
        Manual merge.
      sql/sql_profile.h:
        Manual merge.
      sql/sql_select.cc:
        Manual merge.
      sql/sql_show.cc:
        Manual merge.
      sql/table.h:
        Manual merge.
      storage/ndb/src/common/util/File.cpp:
        Manual merge.
      support-files/mysql.spec.sh:
        Manual merge.
      cca4ea27
    • unknown's avatar
      Sundry changes to fix merge problems. Most of these are duplicated · fc70ac46
      unknown authored
      in 5.0-community, but pulling to merge was very hard.
      
      
      sql/mysql_priv.h:
        Add new extern "C" qualification to set_thd_proc_info().
        
        Fix typo in merge.
      sql/mysqld.cc:
        Replace obselete gptr with uchar* .
        
        Add missing #endif from merge problem.
      sql/set_var.cc:
        Include new parameter to user variable contruction.
      sql/sql_cache.cc:
        Remove duplicate line from merge problem.
      sql/sql_profile.cc:
        struct st_table_list is now typedef'd to a new name.
        
        ST_FIELD_INFO now includes a new member, a pointer to an open_table
        function.
      sql/sql_profile.h:
        struct st_table_list is now typedef'd to a new name.
      fc70ac46
    • unknown's avatar
      Push history-limiting code until after the code that adds new · 4c007885
      unknown authored
      history entries.  Lazy deletion isn't smart or useful here.
      
      
      4c007885
    • unknown's avatar
      Merge mysql.com:/home/kent/bk/bug24809/mysql-5.0-build · 41c2a2c4
      unknown authored
      into  mysql.com:/home/kent/bk/bug24809/mysql-5.1-build
      
      
      cmd-line-utils/libedit/Makefile.am:
        Auto merged
      41c2a2c4
  4. 30 Oct, 2007 8 commits
  5. 29 Oct, 2007 14 commits
    • unknown's avatar
      Merge jbruehe@bk-internal.mysql.com:/home/bk/mysql-5.1-build · bd00ccb7
      unknown authored
      into  trift2.:/MySQL/M51/push-5.1
      
      
      bd00ccb7
    • unknown's avatar
      autorun.sh: · 7752cee4
      unknown authored
        After review changes
      
      
      BUILD/autorun.sh:
        After review changes
      7752cee4
    • unknown's avatar
      autorun.sh: · 1b261d3d
      unknown authored
        Removed innobase from compile-dist, and let it use autorun.sh to avoid
        code duplication. Also corrected a problem when searching for one of
        "libtoolize" and "glibtoolize", now it honors the PATH setting (Bug#31405)
      
      
      BUILD/autorun.sh:
        Removed innobase from compile-dist, and let it use autorun.sh to avoid
        code duplication. Also corrected a problem when searching for one of
        "libtoolize" and "glibtoolize", now it honors the PATH setting (Bug#31405)
      1b261d3d
    • unknown's avatar
      5.1 has been promoted to "rc" status. · 16c621d3
      unknown authored
      16c621d3
    • unknown's avatar
      Remove easily-changed and prominent variable that toggled · 41a9bb8c
      unknown authored
      community-server features.
      
      Community server features should be fully integrated into 5.1, but
      disabled by default.  We never toggle that they're disabled based
      on the version number, in the 5.1 line and later.
      
      
      configure.in:
        Remove easily-changed and prominent variable that toggled
        community-server features.
      41a9bb8c
    • unknown's avatar
      Merge zippy.cornsilk.net:/home/cmiller/work/mysql/mysql-5.1-recentcommmerge · 38ed305e
      unknown authored
      into  zippy.cornsilk.net:/home/cmiller/work/mysql/mysql-5.1
      
      
      client/mysqlcheck.c:
        Auto merged
      configure.in:
        Auto merged
      include/config-win.h:
        Auto merged
      mysql-test/r/func_in.result:
        Auto merged
      mysql-test/r/information_schema.result:
        Auto merged
      mysql-test/t/func_in.test:
        Auto merged
      mysql-test/t/information_schema.test:
        Auto merged
      sql/item_cmpfunc.cc:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/log_event.cc:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/set_var.cc:
        Auto merged
      sql/sp_head.cc:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_cache.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_lex.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_prepare.cc:
        Auto merged
      sql/sql_repl.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_show.cc:
        Auto merged
      sql/sql_table.cc:
        Auto merged
      sql/sql_update.cc:
        Auto merged
      sql/sql_view.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      sql/table.h:
        Auto merged
      storage/myisam/ha_myisam.cc:
        Auto merged
      sql/sql_lex.h:
        SCCS merged
      38ed305e
    • unknown's avatar
      Merge trift2.:/MySQL/M50/push-5.0 · ede89c64
      unknown authored
      into  trift2.:/MySQL/M51/push-5.1
      
      
      mysql-test/r/derived.result:
        Auto merged
      mysql-test/r/ps_2myisam.result:
        Auto merged
      mysql-test/r/ps_3innodb.result:
        Auto merged
      mysql-test/r/ps_4heap.result:
        Auto merged
      mysql-test/r/ps_5merge.result:
        Auto merged
      BitKeeper/deleted/.del-ps_6bdb.result:
        Auto merged
      mysql-test/r/sp.result:
        Auto merged
      mysql-test/r/type_date.result:
        Auto merged
      mysql-test/r/type_datetime.result:
        Auto merged
      mysql-test/suite/ndb/r/ps_7ndb.result:
        Auto merged
      mysql-test/t/sp.test:
        Auto merged
      mysql-test/t/type_date.test:
        Auto merged
      sql/field.cc:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/item_timefunc.cc:
        Auto merged
      sql/sql_cache.cc:
        Null merge of a 5.0 patch, by order of the original author via IRC.
      ede89c64
    • unknown's avatar
      Merge trift2.:/MySQL/M51/mysql-5.1 · a861c70d
      unknown authored
      into  trift2.:/MySQL/M51/push-5.1
      
      
      configure.in:
        Auto merged
      mysql-test/suite/funcs_1/r/innodb__datadict.result:
        Auto merged
      mysql-test/suite/funcs_1/r/memory__datadict.result:
        Auto merged
      mysql-test/suite/funcs_1/r/myisam__datadict.result:
        Auto merged
      mysql-test/r/partition.result:
        Ensure test for bug number 27816 is in the merged tree.
      mysql-test/t/partition.test:
        Ensure test for bug number 27816 is in the merged tree.
      a861c70d
    • unknown's avatar
      Merge trift2.:/MySQL/M41/push-4.1 · a2f5911b
      unknown authored
      into  trift2.:/MySQL/M50/push-5.0
      
      
      a2f5911b
    • unknown's avatar
      Merge trift2.:/MySQL/M50/clone-5.0 · b63ae73d
      unknown authored
      into  trift2.:/MySQL/M50/push-5.0
      
      
      mysql-test/r/derived.result:
        Auto merged
      mysql-test/r/ps_2myisam.result:
        Auto merged
      mysql-test/r/ps_3innodb.result:
        Auto merged
      mysql-test/r/ps_4heap.result:
        Auto merged
      mysql-test/r/ps_5merge.result:
        Auto merged
      mysql-test/r/ps_6bdb.result:
        Auto merged
      mysql-test/r/ps_7ndb.result:
        Auto merged
      mysql-test/r/sp.result:
        Auto merged
      mysql-test/r/type_datetime.result:
        Auto merged
      mysql-test/t/derived.test:
        Auto merged
      mysql-test/t/sp.test:
        Auto merged
      sql/field.cc:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/item_timefunc.cc:
        Auto merged
      mysql-test/r/type_date.result:
        Null-merge 5.0.50 build clone:
        The test for bug#31221 is already in the receiving tree.
      mysql-test/t/type_date.test:
        Null-merge 5.0.50 build clone:
        The test for bug#31221 is already in the receiving tree.
      b63ae73d
    • unknown's avatar
      Merge trift2.:/MySQL/M50/mysql-5.0 · 93265192
      unknown authored
      into  trift2.:/MySQL/M50/push-5.0
      
      
      93265192
    • unknown's avatar
      Merge trift2.:/MySQL/M41/mysql-4.1 · afa5d5a6
      unknown authored
      into  trift2.:/MySQL/M41/push-4.1
      
      
      afa5d5a6
    • unknown's avatar
      Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-5.1 · 7d9c59b7
      unknown authored
      into  mysql.com:/home/gluh/MySQL/Merge/5.1-opt
      
      
      7d9c59b7
    • unknown's avatar
      Fix for · dfdcaf5f
      unknown authored
        Bug#31857 funcs_1: a_processlist_priv_no_prot and b_processlist_priv_ps fail
        
      Reason for the changes is:
        WL4007 Deprecate RENAME DATABASE: replace with ALTER DATABASE <name> UPGRADE
      
      
      mysql-test/suite/funcs_1/datadict/datadict_priv.inc:
        1. Adjustment to new server response (ER_PARSE_ERROR instead of ER_DBACCESS_DENIED_ERROR)
        2. Add missing subtest with ALTER DATABASE ... UPGRADE ...
      mysql-test/suite/funcs_1/r/a_processlist_priv_no_prot.result:
        Updated results
      mysql-test/suite/funcs_1/r/b_processlist_priv_ps.result:
        Updated results
      dfdcaf5f
  6. 26 Oct, 2007 1 commit
    • unknown's avatar
      Fix for · 9d4e4249
      unknown authored
         Bug#31408 funcs_1: <engine>_trig_03e test fail
      Modification:
         The TRIGGER PRIVILEGE is now needed for getting informations about TRIGGERs.
         Therefore after REVOKE TRIGGER privilege the 
         - SHOW TRIGGERS
         - SELECT * FROM INFORMATION_SCHEMA.TRIGGERS
         result sets are now empty.
      
      
      mysql-test/suite/funcs_1/r/innodb_trig_03e.result:
        Updated results
      mysql-test/suite/funcs_1/r/memory_trig_03e.result:
        Updated results
      mysql-test/suite/funcs_1/r/myisam_trig_03e.result:
        Updated results
      mysql-test/suite/funcs_1/r/ndb_trig_03e.result:
        Updated results
      9d4e4249
  7. 25 Oct, 2007 4 commits
  8. 24 Oct, 2007 1 commit
  9. 23 Oct, 2007 5 commits
    • unknown's avatar
      result fix · b987945d
      unknown authored
      b987945d
    • unknown's avatar
      Merge mysql.com:/home/gluh/MySQL/Merge/5.0-opt · e085211d
      unknown authored
      into  mysql.com:/home/gluh/MySQL/Merge/5.1-opt
      
      
      client/mysqldump.c:
        Auto merged
      include/config-win.h:
        Auto merged
      libmysql/libmysql.c:
        Auto merged
      mysql-test/r/func_sapdb.result:
        Auto merged
      mysql-test/r/type_decimal.result:
        Auto merged
      mysql-test/r/variables.result:
        Auto merged
      mysql-test/t/type_datetime.test:
        Auto merged
      mysql-test/t/type_decimal.test:
        Auto merged
      mysql-test/t/variables.test:
        Auto merged
      sql/field.cc:
        Auto merged
      sql/item.cc:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/item_sum.cc:
        Auto merged
      sql/item_timefunc.h:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/set_var.cc:
        Auto merged
      sql/sql_acl.cc:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      storage/innobase/handler/ha_innodb.cc:
        Auto merged
      storage/myisam/sort.c:
        Auto merged
      tests/mysql_client_test.c:
        Auto merged
      mysql-test/r/type_datetime.result:
        after merge fix
      e085211d
    • unknown's avatar
      Merge mysql.com:/home/gluh/MySQL/Merge/4.1-opt · fa0e1d6b
      unknown authored
      into  mysql.com:/home/gluh/MySQL/Merge/5.0-opt
      
      
      fa0e1d6b
    • unknown's avatar
      after merge fix · 985e4a64
      unknown authored
      985e4a64
    • unknown's avatar
      Merge mysql.com:/home/gluh/MySQL/Merge/5.1 · 95a8bb20
      unknown authored
      into  mysql.com:/home/gluh/MySQL/Merge/5.1-opt
      
      
      client/client_priv.h:
        Auto merged
      client/mysqldump.c:
        Auto merged
      include/config-win.h:
        Auto merged
      libmysql/libmysql.c:
        Auto merged
      mysql-test/mysql-test-run.pl:
        Auto merged
      mysql-test/r/create.result:
        Auto merged
      mysql-test/r/func_sapdb.result:
        Auto merged
      mysql-test/r/information_schema.result:
        Auto merged
      mysql-test/r/variables.result:
        Auto merged
      mysql-test/t/information_schema.test:
        Auto merged
      mysql-test/t/variables.test:
        Auto merged
      sql/field.cc:
        Auto merged
      sql/ha_partition.cc:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/item_func.h:
        Auto merged
      sql/item_sum.cc:
        Auto merged
      sql/item_timefunc.h:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/protocol.cc:
        Auto merged
      sql/set_var.cc:
        Auto merged
      sql/sql_acl.cc:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      sql/sql_insert.cc:
        Auto merged
      sql/sql_lex.h:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      sql/table.cc:
        Auto merged
      storage/innobase/handler/ha_innodb.cc:
        Auto merged
      storage/myisam/sort.c:
        Auto merged
      tests/mysql_client_test.c:
        Auto merged
      mysql-test/r/query_cache.result:
        manual merge
      mysql-test/include/mix1.inc:
        manual merge
      mysql-test/r/innodb_mysql.result:
        manual merge
      mysql-test/r/type_datetime.result:
        manual merge
      mysql-test/r/type_decimal.result:
        manual merge
      mysql-test/t/query_cache.test:
        manual merge
      mysql-test/t/type_datetime.test:
        manual merge
      mysql-test/t/type_decimal.test:
        manual merge
      sql/item.cc:
        manual merge
      95a8bb20