1. 13 Mar, 2005 1 commit
    • unknown's avatar
      WL#926 "SUM(DISTINCT) and AVG(DISTINCT)": improvement of SUM(DISTINCT) and · 56012000
      unknown authored
       implementation of AVG(DISTINCT) which utilizes the approach with Fields.
      The patch implemented in October is portede to the up-to-date tree 
      containing DECIMAL type.
      Tests for AVG(DISTINCT) (although there is not much to test provided
      that SUM(DISTINCT) works), cleanups for COUNT(DISTINCT) and GROUP_CONCAT()
      will follow in another changeset.
      
      
      sql/field.cc:
        A handy way to init create_field used for use with virtual tmp tables.
        Feel free to extend it for your own needs.
      sql/field.h:
        Declaration for create_field::init_for_tmp_table()
      sql/item.cc:
        Implementation for a framework used to easily handle different result
        types of SQL expressions. Instead of having instances of each possible 
        result type (integer, decimal, double) in every item, variables
        of all used types are moved to struct Hybrid_type.
        Hybrid_type can change its dynamic type in runtime, and become,
        for instance, DECIMAL from INTEGER.
        All type-specific Item operations are moved to the class hierarchy
        Hybrid_type_traits. Item::decimals and Item::max_length can
        be moved to Hybrid_type as well.
      sql/item.h:
        Declaration for Hybrid_type framework. See also comments for item.cc
        in this changeset.
      sql/item_sum.cc:
        Rewritten implementation for Item_sum_sum_distinct (SUM(DISTINCT))
        and added implementation for Item_sum_avg_distinct (AVG(DISTINCT)).
        The classes utilize Hybrid_type class hierarchy and Fields to
        convert SUM/AVG arguments to binary representation and store in a RB-tree.
      sql/item_sum.h:
        Declarations for Item_sum_distinct (the new intermediate class used
        for SUM and AVG distinct), Item_sum_sum_distinct, Item_sum_avg_distinct.
      sql/sql_select.cc:
        Implementatio of create_virtual_tmp_table().
      sql/sql_select.h:
        Declaration for create_virtual_tmp_table.
      sql/sql_yacc.yy:
        Grammar support for Item_sum_avg_distinct.
      56012000
  2. 09 Mar, 2005 6 commits
  3. 08 Mar, 2005 19 commits
    • unknown's avatar
      Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-5.0 · ca4224b3
      unknown authored
      into quadita2.mysql.com:/nfstmp1/guilhem/mysql-5.0
      
      ca4224b3
    • unknown's avatar
      This code change has 0 effects as it's about the case where innobase_very_fast_shutdown!=0, · 9856fc62
      unknown authored
      which is always false. In a very fast InnoDB shutdown, we just ensure that
      no more transactions are running, flush InnoDB log, signal InnoDB threads to die,
      and then return from InnoDB (from innobase_end()) without waiting for those threads
      to actually die. I have tested on a 4CPU machine that even with --innodb_flush_log_at_trx_commit=0,
      this optimized InnoDB very fast shutdown loses no committed transactions. Patch pre-approved by Heikki.
      
      
      innobase/log/log0log.c:
        In an InnoDB very fast shutdown, we just need to wait for no more transactions to be happening
        and then we can flush the InnoDB log and don't need to wait for the
        signaled-to-die InnoDB threads to finish (saves seconds).
      innobase/srv/srv0start.c:
        In an InnoDB very fast shutdown, once we have forced a flush of the InnoDB
        log to disk, and signalled InnoDB threads to die, we needn't wait
        for these threads to die.
      9856fc62
    • unknown's avatar
      Merge in fix Bug#3788 · 443fdf7f
      unknown authored
      
      mysql-test/r/information_schema.result:
        Auto merged
      mysql-test/t/sp.test:
        Auto merged
      sql/item.cc:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/item_func.h:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/sp.cc:
        Auto merged
      sql/sp_head.cc:
        Auto merged
      sql/sp_head.h:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_table.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      mysql-test/r/sp.result:
        Merge
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      443fdf7f
    • unknown's avatar
      Fixing post-merge errors · 43b718bc
      unknown authored
      43b718bc
    • unknown's avatar
      post merge fixes · b58af12f
      unknown authored
      
      sql/sql_parse.cc:
        Auto merged
      b58af12f
    • unknown's avatar
      making a better test case for bug #8850 · 0109e31c
      unknown authored
      
      mysql-test/r/sp.result:
        fixing results for new test
      mysql-test/t/sp.test:
        making a new test with autocommit set to 0 and 1.
        Second CALL is in autocommit mode to prove that the relevant bug 
        (bug #8550) is fixed.
      0109e31c
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.0 · 577c691f
      unknown authored
      into poseidon.ndb.mysql.com:/home/tomas/mysql-5.0-ndb
      
      577c691f
    • unknown's avatar
      changelog-5.0.xml: · 8a9d5607
      unknown authored
        Add dummy changelog file. It should merge upward without conflict.
      
      8a9d5607
    • unknown's avatar
      Merge mysql.com:/usr/local/bk/mysql-5.0 · a99e3459
      unknown authored
      into mysql.com:/home/pem/work/mysql-5.0
      
      a99e3459
    • unknown's avatar
      Merge jbruehe@bk-internal.mysql.com:/home/bk/mysql-5.0 · 07ab0f08
      unknown authored
      into mysql.com:/M50/mysql-5.0
      
      
      include/my_sys.h:
        Auto merged
      07ab0f08
    • unknown's avatar
      Merge changes. · 78863ee8
      unknown authored
      
      Build-tools/Do-compile:
        Change already present in 5.0
      configure.in:
        Do not propagate a 4.0 version number to the 5.0 tree.
      include/my_sys.h:
        Change already present in 5.0.
      mysys/hash.c:
        For Sun compilers, 'static inline' is ok.
      mysys/my_bitmap.c:
        Change already present in 5.0
      sql/item_strfunc.cc:
        Change already present in 5.0
      sql/net_serv.cc:
        Change already present in 5.0
      78863ee8
    • unknown's avatar
      Merge mysql.com:/usr/local/bk/mysql-5.0 · 4e6fdaa2
      unknown authored
      into mysql.com:/home/pem/work/mysql-5.0
      
      4e6fdaa2
    • unknown's avatar
      Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-5.0 · 42e8d71d
      unknown authored
      into ua141d10.elisa.omakaista.fi:/home/my/bk/mysql-5.0
      
      42e8d71d
    • unknown's avatar
      Fixed Bug#8922. · 67ebe351
      unknown authored
      Reverted Jim's patch.
      
      
      client/mysql.cc:
        Fixed Bug#8922, The deilimeter cannot be reset after it is set as word 'delimiter'
      include/my_sys.h:
        Reverted Jim's patch.
      mysys/mf_iocache.c:
        Reverted Jim's patch.
      sql/sql_class.h:
        Reverted Jim's patch.
      67ebe351
    • unknown's avatar
      InnoDB: Win64 portability fixes · 890835d9
      unknown authored
      
      innobase/include/srv0srv.h:
        Declare those variables as ulong that are declared in ha_innodb.h
      innobase/srv/srv0srv.c:
        Define those variables as ulong that are declared in ha_innodb.h
      890835d9
    • unknown's avatar
      - bumped up version number in configure.in from 4.0.24 -> 4.0.25 (ChangeSet... · d4d5544c
      unknown authored
      - bumped up version number in configure.in from 4.0.24 -> 4.0.25 (ChangeSet 1.2073 was already tagged
        as 4.0.24)
      
      
      configure.in:
        - bumped up version number from 4.0.24 -> 4.0.25
      d4d5544c
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.0 · 16a70728
      unknown authored
      into poseidon.ndb.mysql.com:/home/tomas/mysql-5.0-ndb
      
      16a70728
    • unknown's avatar
      Merge mysql.com:/usr/local/bk/mysql-5.0 · 5e08d804
      unknown authored
      into mysql.com:/home/pem/work/mysql-5.0
      
      5e08d804
    • unknown's avatar
      Merge marko@bk-internal.mysql.com:/home/bk/mysql-5.0 · f69c62bf
      unknown authored
      into hundin.mysql.fi:/home/marko/mysql-5.0
      
      f69c62bf
  4. 07 Mar, 2005 14 commits