1. 01 Jul, 2003 3 commits
    • unknown's avatar
      Optimized old patches · 23a9a580
      unknown authored
      Don't set field to DEFAULT value when set to NULL
      
      
      mysql-test/r/insert.result:
        Updated results after patch
      sql/field_conv.cc:
        Revert patch: Don't set field to DEFAULT value when set to NULL
      sql/item_strfunc.cc:
        Optimized patch for null handling with elt
      sql/opt_range.cc:
        Safety fix for range with null patch
      23a9a580
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.0 · 0fe578f5
      unknown authored
      into mashka.mysql.fi:/home/my/mysql-4.0
      
      
      sql/item_strfunc.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      0fe578f5
    • unknown's avatar
      Code/testcase cleanups · bbf8ebe8
      unknown authored
      
      mysql-test/r/insert_select.result:
        Fixed results
      mysql-test/r/join_outer.result:
        New test case for inner join table dependency
      mysql-test/t/insert_select.test:
        Remove not used drop tables.
        Fixed table names
      mysql-test/t/join_outer.test:
        New test case for inner join table dependency
      sql/slave.cc:
        Simple optimizations
      bbf8ebe8
  2. 30 Jun, 2003 3 commits
  3. 29 Jun, 2003 1 commit
    • unknown's avatar
      SET CHARACTER SET DEFAULT didn't work (Bug #462) · e224c123
      unknown authored
      
      BUILD/compile-pentium-debug-max:
        Removed -DBIG_TABLES because of problems with gdb 5.3
      sql/set_var.cc:
        SET CHARACTER SET DEFAULT didn't work
      sql/set_var.h:
        SET CHARACTER SET DEFAULT didn't work
      e224c123
  4. 27 Jun, 2003 2 commits
    • unknown's avatar
      Fixed testcase after last changes · 5768f4a3
      unknown authored
      5768f4a3
    • unknown's avatar
      Added thread variable max_seeks_for_key · c2cb9b97
      unknown authored
      Change optimizer to prefer key lookups before table scan
      Change table scans to be done after tables with constrains on scanned table 
      
      
      mysql-test/r/distinct.result:
        Update results
      mysql-test/r/group_by.result:
        Update results
      mysql-test/r/heap.result:
        Update results
      mysql-test/r/join.result:
        Update results
      mysql-test/r/key_diff.result:
        Update results
      mysql-test/r/myisam.result:
        Update results
      mysql-test/r/order_by.result:
        Update results
      mysql-test/r/select_safe.result:
        Update results
      mysql-test/t/distinct.test:
        Change test to be repeatable
      mysql-test/t/join.test:
        Change test to be repeatable
      mysql-test/t/select_safe.test:
        Add tests for MAX_SEEKS_FOR_KEY
      sql/handler.h:
        Optimize structure for 64 bit machines (and to avoid problems with gdb)
      sql/item_cmpfunc.cc:
        Initialize not_null_tables_cache properly
      sql/mysqld.cc:
        Added max_seeks_for_key
      sql/set_var.cc:
        Added max_seeks_for_key
      sql/sql_class.h:
        Added max_seeks_for_key
      sql/sql_select.cc:
        Added max_seeks_for_key
        Change optimizer to prefer key lookups before table scan.
        Change table scans to be done after tables with constrains on scanned table
      c2cb9b97
  5. 26 Jun, 2003 7 commits
  6. 25 Jun, 2003 3 commits
    • unknown's avatar
      Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.0 · 349946b3
      unknown authored
      into deer.(none):/home/hf/work/mysql-4.0.674
      
      
      sql/sql_select.cc:
        Auto merged
      349946b3
    • unknown's avatar
      Testcase for #674 added · 8abad215
      unknown authored
      
      mysql-test/r/sel000100.result:
        Result of the testcase added
      mysql-test/t/sel000100.test:
        checking for bug #674 added
      8abad215
    • unknown's avatar
      - reverted change from AC_CONFIG_HEADERS to AM_CONFIG_HEADER in configure.in · 9354da21
      unknown authored
         again - even though the automake docs consider AM_CONFIG_HEADER obsolete, 
         it currently still breaks for too many people to justify this change
         at the moment.
      
      
      configure.in:
         - reverted change from AC_CONFIG_HEADERS to AM_CONFIG_HEADER again - even
           though the automake docs consider AM_CONFIG_HEADER obsolete, it currently
           still breaks for too many people to justify this change at the moment.
      9354da21
  7. 24 Jun, 2003 3 commits
    • unknown's avatar
      Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.0 · cfa509ac
      unknown authored
      into deer.(none):/home/hf/work/mysql-4.0.666
      
      
      cfa509ac
    • unknown's avatar
      Test case for bug #666 · 8bed69fa
      unknown authored
      
      mysql-test/r/func_str.result:
        test for bug #666 result
      mysql-test/t/func_str.test:
        test for bug #666
      8bed69fa
    • unknown's avatar
      Another bugfix for #615 · 3148d6f2
      unknown authored
      Looks a bit nicer than previous one
      
      
      mysql-test/r/insert.result:
        Test results added
      mysql-test/t/insert.test:
        testcase for the bug added
      sql/field.h:
        Field::set_default fixed
      sql/field_conv.cc:
        Now we can just replace field->reset() with field->set_default() here
      3148d6f2
  8. 23 Jun, 2003 9 commits
  9. 22 Jun, 2003 2 commits
    • unknown's avatar
      dict0dict.h, dict0dict.c, ha_innodb.cc: · e0be1a89
      unknown authored
        In ORDER BY MySQL seems to set the key read flag also in the case where the primary key contains only a prefix of a column - not the whole column; to prevent potential bugs retrieve the whole column if the index contains a prefix of it
      
      
      sql/ha_innodb.cc:
        In ORDER BY MySQL seems to set the key read flag also in the case where the primary key contains only a prefix of a column - not the whole column; to prevent potential bugs retrieve the whole column if the index contains a prefix of it
      innobase/dict/dict0dict.c:
        In ORDER BY MySQL seems to set the key read flag also in the case where the primary key contains only a prefix of a column - not the whole column; to prevent potential bugs retrieve the whole column if the index contains a prefix of it
      innobase/include/dict0dict.h:
        In ORDER BY MySQL seems to set the key read flag also in the case where the primary key contains only a prefix of a column - not the whole column; to prevent potential bugs retrieve the whole column if the index contains a prefix of it
      e0be1a89
    • unknown's avatar
      Fixed cleanup_load_tmpdir() which deleted nothing. · f403da4b
      unknown authored
      
      sql/log_event.cc:
        - cleanup_load_tmpdir() did not work at all because it forgot to indicate
        the directory part of the path when calling my_delete().
        - A misplaced R_POS_OFFSET (fortunately this was no bug as this constant is 0).
      sql/sql_repl.cc:
        - fix fake_rotate_event() for pos>4G (correction of a change I pushed yesterday).
      f403da4b
  10. 21 Jun, 2003 2 commits
    • unknown's avatar
      Always send a fake Rotate event (this is roughly 70 bytes) when starting binlog_dump. · 5c9b87ce
      unknown authored
      This way 3.23.58 slaves will always detect a 4.0.14 master (and stop)
      immediately. BUG#198.
      
      
      mysql-test/r/rpl_log.result:
        result update (the relay log now contains a fake Rotate_log_event).
      mysql-test/r/rpl_log_pos.result:
        result update (the relay log now contains a fake Rotate_log_event).
      5c9b87ce
    • unknown's avatar
      Proposed fix for #674 · 1688ada0
      unknown authored
      This crash happens in rather exotic case when we try to run 
      SELECT DISTINCT some_func(SUM(some_field)) GROUP BY another_field;
      on a table with single row.
      Optimizer marks this table as const, sets group=NULL (with remove_const)
      thus, create_tmp_table makes mistake collecting columns for temporary table
      and then crashes because the field_count gets less than hidden_columns_count.
      
      
      sql/sql_select.cc:
        There's several ways to fix this bug.
        This one looks easy and correct to me
      1688ada0
  11. 20 Jun, 2003 5 commits