1. 13 Mar, 2005 1 commit
    • unknown's avatar
      WL#926 "SUM(DISTINCT) and AVG(DISTINCT)": improvement of SUM(DISTINCT) and · 1534ed8e
      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.
      1534ed8e
  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 · 430b16ee
      unknown authored
      into quadita2.mysql.com:/nfstmp1/guilhem/mysql-5.0
      
      
      430b16ee
    • unknown's avatar
      This code change has 0 effects as it's about the case where innobase_very_fast_shutdown!=0, · b0e1389b
      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.
      b0e1389b
    • unknown's avatar
      Merge in fix Bug#3788 · ce16c895
      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
      ce16c895
    • unknown's avatar
      Fixing post-merge errors · 1250899c
      unknown authored
      1250899c
    • unknown's avatar
      post merge fixes · 12c6eb3b
      unknown authored
      
      sql/sql_parse.cc:
        Auto merged
      12c6eb3b
    • unknown's avatar
      making a better test case for bug #8850 · 39c32324
      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.
      39c32324
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.0 · 7adae6b3
      unknown authored
      into poseidon.ndb.mysql.com:/home/tomas/mysql-5.0-ndb
      
      
      7adae6b3
    • unknown's avatar
      changelog-5.0.xml: · 50985b67
      unknown authored
        Add dummy changelog file. It should merge upward without conflict.
      
      
      50985b67
    • unknown's avatar
      Merge mysql.com:/usr/local/bk/mysql-5.0 · fe3a425a
      unknown authored
      into mysql.com:/home/pem/work/mysql-5.0
      
      
      fe3a425a
    • unknown's avatar
      Merge jbruehe@bk-internal.mysql.com:/home/bk/mysql-5.0 · 50914ba7
      unknown authored
      into mysql.com:/M50/mysql-5.0
      
      
      include/my_sys.h:
        Auto merged
      50914ba7
    • unknown's avatar
      Merge changes. · d8222c03
      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
      d8222c03
    • unknown's avatar
      Merge mysql.com:/usr/local/bk/mysql-5.0 · 9d01d512
      unknown authored
      into mysql.com:/home/pem/work/mysql-5.0
      
      
      9d01d512
    • unknown's avatar
      Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-5.0 · 8ab73b4c
      unknown authored
      into ua141d10.elisa.omakaista.fi:/home/my/bk/mysql-5.0
      
      
      8ab73b4c
    • unknown's avatar
      Fixed Bug#8922. · 0fdd650f
      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.
      0fdd650f
    • unknown's avatar
      InnoDB: Win64 portability fixes · 88c893cb
      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
      88c893cb
    • unknown's avatar
      - bumped up version number in configure.in from 4.0.24 -> 4.0.25 (ChangeSet... · 395618a6
      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
      395618a6
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.0 · a66165ce
      unknown authored
      into poseidon.ndb.mysql.com:/home/tomas/mysql-5.0-ndb
      
      
      a66165ce
    • unknown's avatar
      Merge mysql.com:/usr/local/bk/mysql-5.0 · 45b5e513
      unknown authored
      into mysql.com:/home/pem/work/mysql-5.0
      
      
      45b5e513
    • unknown's avatar
      Merge marko@bk-internal.mysql.com:/home/bk/mysql-5.0 · 30f0b316
      unknown authored
      into hundin.mysql.fi:/home/marko/mysql-5.0
      
      
      30f0b316
  4. 07 Mar, 2005 14 commits