1. 26 Jun, 2003 2 commits
    • unknown's avatar
      Fixed memory allocation in Unique to not allocate too much memory · 2de2917b
      unknown authored
      
      myisam/mi_info.c:
        Updated comments
      mysys/tree.c:
        Added comment
      sql/net_serv.cc:
        Added comment
      2de2917b
    • unknown's avatar
      LEFT JOIN optimization: Change LEFT JOIN to normal join if possible · fc8d108f
      unknown authored
      
      mysql-test/r/select.result:
        Added test for LEFT JOIN optimization
      mysql-test/t/select.test:
        Added test for LEFT JOIN optimization
      sql/item.h:
        LEFT JOIN optimization
      sql/item_cmpfunc.cc:
        LEFT JOIN optimization
      sql/item_cmpfunc.h:
        LEFT JOIN optimization
      sql/item_func.cc:
        LEFT JOIN optimization
      sql/item_func.h:
        LEFT JOIN optimization
      sql/item_strfunc.cc:
        LEFT JOIN optimization
      sql/sql_base.cc:
        Heart of LEFT JOIN optimization
      fc8d108f
  2. 23 Jun, 2003 9 commits
  3. 22 Jun, 2003 2 commits
    • unknown's avatar
      dict0dict.h, dict0dict.c, ha_innodb.cc: · faad6382
      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
      faad6382
    • unknown's avatar
      Fixed cleanup_load_tmpdir() which deleted nothing. · 2de08709
      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).
      2de08709
  4. 21 Jun, 2003 1 commit
  5. 20 Jun, 2003 5 commits
  6. 19 Jun, 2003 3 commits
    • unknown's avatar
      Fix error msg. Bug #681 · 6c3a2a10
      unknown authored
      
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      6c3a2a10
    • unknown's avatar
      Fix for bug #616 mysqld crash / SSL with SQLyog · e6a603e8
      unknown authored
      e6a603e8
    • unknown's avatar
      SCRUM · c77b4615
      unknown authored
      Task ID 894:
      Backport default_week_format variable to 4.0
      
      
      mysql-test/r/func_time.result:
        Backport default_week_format variable to 4.0
      mysql-test/t/func_time.test:
        Backport default_week_format variable to 4.0
      sql/mysqld.cc:
        Backport default_week_format variable to 4.0
      sql/set_var.cc:
        Backport default_week_format variable to 4.0
      sql/sql_class.h:
        Backport default_week_format variable to 4.0
      sql/sql_yacc.yy:
        Backport default_week_format variable to 4.0
      c77b4615
  7. 18 Jun, 2003 6 commits
  8. 17 Jun, 2003 4 commits
    • unknown's avatar
      row0vers.c, row0sel.c, row0ins.c: · 22402f46
      unknown authored
        Fix bug: InnoDB could print that it cannot find a clustered index record if an update undo, purge, and a consistent read coincided, in rare cases it might also have returned a wrong row in a query
      
      
      innobase/row/row0ins.c:
        Fix bug: InnoDB could print that it cannot find a clustered index record if an update undo, purge, and a consistent read coincided, in rare cases it might also have returned a wrong row in a query
      innobase/row/row0sel.c:
        Fix bug: InnoDB could print that it cannot find a clustered index record if an update undo, purge, and a consistent read coincided, in rare cases it might also have returned a wrong row in a query
      innobase/row/row0vers.c:
        Fix bug: InnoDB could print that it cannot find a clustered index record if an update undo, purge, and a consistent read coincided, in rare cases it might also have returned a wrong row in a query
      22402f46
    • unknown's avatar
      Changed change_master() to use ER_MASTER_INFO (better display). · fe29b860
      unknown authored
      
      mysql-test/r/rpl_rotate_logs.result:
        result update
      mysql-test/t/rpl_rotate_logs.test:
        comments and test update with the error code
      sql/slave.cc:
        A DBUG_PRINT
      sql/sql_repl.cc:
        Use ER_MASTER_INFO instead of custom message and zero error code (which display
        badly).
      fe29b860
    • unknown's avatar
      Merge gbichot@213.136.52.20:/home/bk/mysql-4.0 · 2b7ea843
      unknown authored
      into mysql.com:/home/mysql_src/mysql-4.0
      
      2b7ea843
    • unknown's avatar
      Better error reporting in mysql-test-run (don't hide the important message · 6a6c9f6e
      unknown authored
      with 'head').
      Test fix (this sync_with_master was nonsense).
      Now all tests pass in 4.0 in autobuild.
      
      
      mysql-test/mysql-test-run.sh:
        Error reporting (how mysql-test-run filters the messages which mysqltest prints
        on stderr) is not reliable. It does a 'head the first line only' which in
        my case caused me to lose some time, because in fact the worrying message was
        on the second line (logically, the one which caused the die() is at the
        end of the $TIMEFILE file, not at the beginning).
        Doing a 'tail' is better but not perfect (depending on the build, one may get
        "Maximum memory usage" as the last line); it's always good to have all messages
        and spot the important one oneself. So we print all $TIMEFILE (that's a few lines
        at most).
      mysql-test/t/rpl_rotate_logs.test:
        Dont sync_with_master as the SQL slave thread may be stopped at this moment;
        just wait_for_slave_to_stop. Doing sync_with_master caused a non-deterministic
        behaviour, because (note that save_master_pos was called to early) sometimes
        MASTER_POS_WAIT() started before the SQL thread died (because of unique
        violation) so returned 0, other times it started after the SQL thread died
        so returned NULL (which is reported by mysqltest as an error, on stderr).
      6a6c9f6e
  9. 16 Jun, 2003 4 commits
    • unknown's avatar
      fulltext and left join bug fixed · 4d2b80d1
      unknown authored
      
      mysql-test/t/fulltext.test:
        explain select fulltext test
      mysql-test/t/fulltext_left_join.test:
        explain select fulltext test
      4d2b80d1
    • unknown's avatar
      863deeb7
    • unknown's avatar
      Merge gbichot@213.136.52.20:/home/bk/mysql-4.0 · f0ee916a
      unknown authored
      into mysql.com:/home/mysql_src/mysql-4.0
      
      f0ee916a
    • unknown's avatar
      Fix for nightly build test failure (test update). · 3e3f26ed
      unknown authored
      More messages.
      Testcase for bug 651.
      
      
      client/mysqltest.c:
        More explicit error message if MASTER_POS_WAIT() returns NULL.
      mysql-test/r/rpl_loaddata.result:
        result update
      mysql-test/r/rpl_master_pos_wait.result:
        result update
      mysql-test/t/rpl000001.test:
        sync_with_master (=MASTER_POS_WAIT()) was called when we could expect the SQL slave thread had stopped.
        As I yesterday changed code so that "SQL thread stops => MASTER_POS_WAIT() returns NULL immediately" (bugfix),
        sync_with_master received NULL (on build.mysql.com, not on my machine; this is a question of milliseconds,
        if the slave server will process MASTER_POS_WAIT() before or after the slave SQL thread has stopped), and
        in mysqltest.c, sync_with_master complained that it could not sync.
        So I just remove this sync_with_master, which does not make sense anymore: we just wait for the slave SQL
        thread to stop.
      mysql-test/t/rpl_loaddata.test:
        Discovered we had wait_for_slave_to_stop, so used it as it automates things.
      mysql-test/t/rpl_master_pos_wait.test:
        Discovered we had 'send' to send a query without waiting for the resultn so could had a testcase for bug 651.
        Shorter timeouts as there is no risk the position is reached.
      sql/slave.cc:
        A longer DBUG_PRINT.
      3e3f26ed
  10. 15 Jun, 2003 4 commits
    • unknown's avatar
      row0mysql.c, dict0dict.ic: · 7ee4c918
      unknown authored
        Cleanup
      ha_innodb.cc, data0type.h:
        Make sure non-latin1 users can downgrade from 4.0.14 to an earlier version if they have not created DATA_BLOB column prefix indexes
      
      
      innobase/include/data0type.h:
        Make sure non-latin1 users can downgrade from 4.0.14 to an earlier version if they have not created DATA_BLOB column prefix indexes
      sql/ha_innodb.cc:
        Make sure non-latin1 users can downgrade from 4.0.14 to an earlier version if they have not created DATA_BLOB column prefix indexes
      innobase/include/dict0dict.ic:
        Cleanup
      innobase/row/row0mysql.c:
        Cleanup
      7ee4c918
    • unknown's avatar
      handler.h, ha_innodb.h, ha_innodb.cc: · db484899
      unknown authored
        Cleanup; remove compiler warning on Windows
      
      
      sql/ha_innodb.cc:
        Cleanup; remove compiler warning on Windows
      sql/ha_innodb.h:
        Cleanup; remove compiler warning on Windows
      sql/handler.h:
        Cleanup; remove compiler warning on Windows
      db484899
    • unknown's avatar
      Merge gbichot@213.136.52.20:/home/bk/mysql-4.0 · ba68d937
      unknown authored
      into mysql.com:/home/mysql_src/mysql-4.0
      
      ba68d937
    • unknown's avatar
      Simplified a test. · 2dc65a0a
      unknown authored
      thd->enter_cond() and exit_cond(), so that the I/O thread accepts to stop
      when it's waiting for relay log space.
      Reset ignore_log_space_limit to 0 when the SQL thread terminates.
      
      
      mysql-test/r/rpl_relayspace.result:
        result update
      mysql-test/t/rpl_relayspace-slave.opt:
        smaller relay_log_space_limit to speed up things.
      mysql-test/t/rpl_relayspace.test:
        Less queries in the test, to make it simpler.
        Testcase if the IO thread blocked in wait_for_relay_log_space
        accepts to stop when STOP SLAVE.
      sql/slave.cc:
        thd->enter_cond() and exit_cond(), so that the I/O thread accepts to stop
        when it's waiting on cond (waiting for relay log space).
        Reset ignore_log_space_limit to 0 when the SQL thread terminates.
      2dc65a0a