1. 22 Jan, 2007 1 commit
    • unknown's avatar
      BUG#16590: Optimized does not do right "const" table pre-read · 2c6e678d
      unknown authored
       st_table::const_key_parts member is used in determining if
       certain key has a prefix that is compared to constant(s) in
       the query predicates.
       If there's such prefix the index can be used to get the data
       from the remaining suffix columns in sorted order.
       However if a field is compared to another field from a "const"
       table the const_key_parts is not amended.
       This makes the optimizer unable to detect that the key can be 
       used for sorting and adds an extra filesort.
       Fixed by updating const_key_parts after reading in the "const"
       table.
      
      
      mysql-test/r/order_by.result:
        BUG#16590: Optimized does not do right "const" table pre-read
         - test case
      mysql-test/t/order_by.test:
        BUG#16590: Optimized does not do right "const" table pre-read
         - test case
      sql/sql_select.cc:
        BUG#16590: Optimized does not do right "const" table pre-read
         - fill up the const_key_parts structure
      2c6e678d
  2. 10 Jan, 2007 3 commits
  3. 09 Jan, 2007 2 commits
  4. 08 Jan, 2007 2 commits
    • unknown's avatar
      mi_check.c: · 7990ec32
      unknown authored
        added a missing DBUG_RETURN
      
      
      storage/myisam/mi_check.c:
        added a missing DBUG_RETURN
      7990ec32
    • unknown's avatar
      Merge macbook.local:/Users/kgeorge/mysql/work/mysql-5.0-opt · cea66abf
      unknown authored
      into  macbook.local:/Users/kgeorge/mysql/work/merge-5.1-opt
      
      
      mysql-test/r/distinct.result:
        Auto merged
      mysql-test/r/gis-rtree.result:
        Auto merged
      mysql-test/r/ps.result:
        Auto merged
      mysql-test/r/subselect.result:
        Auto merged
      mysql-test/r/udf.result:
        Auto merged
      mysql-test/t/gis-rtree.test:
        Auto merged
      mysql-test/t/ps.test:
        Auto merged
      mysql-test/t/subselect.test:
        Auto merged
      mysql-test/t/udf.test:
        Auto merged
      sql/item_subselect.cc:
        Auto merged
      sql/item_subselect.h:
        Auto merged
      sql/sql_lex.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      storage/myisam/mi_check.c:
        Auto merged
      sql/sql_udf.cc:
        SCCS merged
      cea66abf
  5. 06 Jan, 2007 2 commits
  6. 05 Jan, 2007 1 commit
    • unknown's avatar
      Bug #15881: cast problems · 42e31f7a
      unknown authored
        The optimizer removes expressions from GROUP BY/DISTINCT
        if they happen to participate in a <expression> = <const>
        predicates of the WHERE clause (the idea being that if
        it's always equal to a constant it can't have multiple 
        values).
        However for predicates where the expression and the 
        constant item are of different result type this is not
        valid (e.g. a string column compared to 0).
        Fixed by additional check of the result types of the 
        expression and the constant and if they differ the 
        expression don't get removed from the group by list.
      
      
      mysql-test/r/distinct.result:
        Bug #15881: cast problems
          - test case
      mysql-test/t/distinct.test:
        Bug #15881: cast problems
          - test case
      sql/sql_select.cc:
        Bug #15881: cast problems
          - can't use <expr>=<const> to remove GROUP BY/DISTINCT cols
            if they're not of the same type.
      42e31f7a
  7. 04 Jan, 2007 4 commits
    • unknown's avatar
      Merge baker@bk-internal.mysql.com:/home/bk/mysql-5.1-arch · c56c14f5
      unknown authored
      into  zim.(none):/home/brian/mysql/merge-5.1
      
      
      c56c14f5
    • unknown's avatar
      The CSV format has always relied on numbers being quoted, which doesn't always... · 8bd11441
      unknown authored
      The CSV format has always relied on numbers being quoted, which doesn't always happen. This fixes that so that numbers can now be unquoted (and the output does this as well so that the log takes up less space). 
      
      
      mysql-test/r/csv.result:
        Fixed test case for format change. Added new test for floating point numbers.
      mysql-test/t/csv.test:
        Fixed test for format change. Added test case for floating point numbers.
      storage/csv/ha_tina.cc:
        Updated code to handle numbers as raw unquotes types in CSV
      8bd11441
    • unknown's avatar
      Merge bk-internal.mysql.com:/data0/bk/mysql-5.1 · 967b38a4
      unknown authored
      into  bk-internal.mysql.com:/data0/bk/mysql-5.1-arch
      
      
      storage/csv/CMakeLists.txt:
        Auto merged
      storage/csv/Makefile.am:
        Auto merged
      967b38a4
    • unknown's avatar
      Split out the hidden class from the ha_tina file (probably should have just... · 20f0c7a6
      unknown authored
      Split out the hidden class from the ha_tina file (probably should have just deleted it...) but this is a bit better. 
      
      
      storage/csv/transparent_file.cc:
        BitKeeper file /home/brian/mysql/merge-5.1/storage/csv/transparent_file.cc
      storage/csv/transparent_file.h:
        BitKeeper file /home/brian/mysql/merge-5.1/storage/csv/transparent_file.h
      storage/csv/CMakeLists.txt:
        Updated for windows
      storage/csv/Makefile.am:
        Updated to add new class
      storage/csv/ha_tina.cc:
        Removed hidden class
      storage/csv/ha_tina.h:
        Remove hidden class
      20f0c7a6
  8. 03 Jan, 2007 3 commits
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.0-opt · 5df7d39e
      unknown authored
      into  rakia.gmz:/home/kgeorge/mysql/work/B15439-5.0-opt
      
      
      sql/sql_udf.cc:
        Auto merged
      5df7d39e
    • unknown's avatar
      sql_udf.cc: · ea5557aa
      unknown authored
        Addendum to the fix for bug#15439 : valgrind pb failed
      
      
      sql/sql_udf.cc:
        Addendum to the fix for bug#15439 : valgrind pb failed
      ea5557aa
    • unknown's avatar
      Merge mysql.com:/d2/hf/common/my50-common · 6a4fbf09
      unknown authored
      into  mysql.com:/d2/hf/opt/my50-opt
      
      
      myisam/mi_check.c:
        Auto merged
      sql/item_subselect.cc:
        Auto merged
      sql/item_subselect.h:
        Auto merged
      sql/sql_lex.cc:
        Auto merged
      sql/sql_udf.cc:
        Auto merged
      6a4fbf09
  9. 02 Jan, 2007 19 commits
  10. 31 Dec, 2006 3 commits
    • unknown's avatar
      Merge mysql.com:/d2/hf/clean/my51-clean · cbff25d0
      unknown authored
      into  mysql.com:/d2/hf/common/my51-common
      
      
      libmysqld/Makefile.am:
        Auto merged
      libmysqld/lib_sql.cc:
        Auto merged
      mysql-test/mysql-test-run.pl:
        Auto merged
      mysql-test/t/ps.test:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/item_strfunc.cc:
        Auto merged
      sql/share/errmsg.txt:
        Auto merged
      sql/sql_insert.cc:
        Auto merged
      BitKeeper/deleted/.del-ps_not_windows.test:
        Auto merged
      storage/myisam/ha_myisam.cc:
        Auto merged
      cbff25d0
    • unknown's avatar
      Merge mysql.com:/d2/hf/clean/my50-clean · 84d0cda4
      unknown authored
      into  mysql.com:/d2/hf/common/my50-common
      
      
      mysql-test/mysql-test-run.pl:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/item_strfunc.cc:
        Auto merged
      84d0cda4
    • unknown's avatar
      Merge mysql.com:/d2/hf/clean/my41-clean · 62576974
      unknown authored
      into  mysql.com:/d2/hf/common/my41-common
      
      
      sql/item_func.cc:
        Auto merged
      62576974