1. 08 Dec, 2003 2 commits
    • unknown's avatar
      Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.0 · c121a735
      unknown authored
      into mysql.com:/home/mysql_src/mysql-4.0
      
      
      c121a735
    • unknown's avatar
      Fix for BUG#2045 "Sending SIGHUP to mysqld crashes it if running with --log-bin". · a50761a5
      unknown authored
      The constructor of Rotate_log_event used when we are rotating our binlog or
      relay log, should not assume that there is a nonzero THD available.
      For example, when we are reacting to SIGHUP, the THD is 0.
      In fact we don't need to use the THD in this constructor;
      we can do like for Stop_log_event, and use the minimal Log_event
      constructor.
      If we were allowed to put Unix-specific commands in the testsuite,
      I'd add a test for this (<sigh>).
      
      
      sql/log.cc:
        A comment to warn that thd can be 0.
        The part about LOG_EVENT_FORCED_ROTATE_F is just to avoid segfault;
        this flag is already removed in 4.1 anyway.
      sql/log_event.cc:
        A comment.
      sql/log_event.h:
        The constructor of Rotate_log_event used when we are rotating our binlog or
        relay log, should not assume that there is a nonzero THD available.
        For example, when we are reacting to SIGHUP, the THD is 0.
        In fact we don't need to use the THD in this constructor;
        we can do like for Stop_log_event, and use the minimal Log_event
        constructor.
        This fixes BUG#2045 
        "Sending SIGHUP to mysqld crashes it if running with --log-bin"
      a50761a5
  2. 07 Dec, 2003 3 commits
    • unknown's avatar
      Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-4.0 · da3e63e1
      unknown authored
      into gluh.mysql.r18.ru:/home/gluh/mysql-4.0.defweek
      
      
      sql/mysqld.cc:
        Auto merged
      da3e63e1
    • unknown's avatar
      WL#1175: more default_week_formats for iso compatibility · 468dcb60
      unknown authored
      New formats added for 'week()' function and 'default_week_format' option(4 - 7).
      Next formats is supported now:
      *Value* *Meaning*
        `0'     Week starts on Sunday; First Sunday of the year starts week 1.
        	  Week() returns 0-53.
        `1'     Week starts on Monday; Weeks numbered according to ISO 8601:1988.
      	  Week() returns 0-53.
        `2'     Week starts on Sunday; First Sunday of the year starts week 1.
        	  Week() returns 1-53.
        `3'     Week starts on Monday; Weeks numbered according to ISO 8601:1988.
      	  Week() returns 1-53.
        `4'     Week starts on Sunday; Weeks numbered according to ISO 8601:1988.
      	  Week() returns 0-53.
        `5'     Week starts on Monday;  First Monday of the year starts week 1.
        	  Week() returns 0-53.
        `6'     Week starts on Sunday; Weeks numbered according to ISO 8601:1988.
      	  Week() returns 1-53.
        `7'     Week starts on Monday;  First Monday of the year starts week 1.
        	  Week() returns 1-53.
      
      
      mysql-test/r/func_time.result:
        Test for 'default_week_format' option and 'week' function
      mysql-test/t/func_time.test:
        Test for 'default_week_format' option and 'week' function
      sql/item_timefunc.cc:
        WL#1175 more default_week_formats for iso compatibility
      sql/mysql_priv.h:
        WL#1175 more default_week_formats for iso compatibility
      sql/mysqld.cc:
        WL#1175 more default_week_formats for iso compatibility
      sql/time.cc:
        WL#1175 more default_week_formats for iso compatibility
      468dcb60
    • unknown's avatar
      Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-4.0 · f35c834d
      unknown authored
      into gluh.mysql.r18.ru:/home/gluh/mysql-4.0.pass
      
      
      sql/sql_parse.cc:
        Auto merged
      f35c834d
  3. 05 Dec, 2003 2 commits
  4. 04 Dec, 2003 14 commits
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.0 · cea764f3
      unknown authored
      into mysql.com:/home/kostja/mysql/mysql-4.0-root
      
      
      cea764f3
    • unknown's avatar
      Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.0 · 1057ca54
      unknown authored
      into mysql.com:/home/mysql_src/mysql-4.0
      
      
      1057ca54
    • unknown's avatar
      - Fix for BUG#1858 "SQL-Thread stops working when using optimize table": · 66927c51
      unknown authored
      we change THD::system_thread from a 'bool' to a bitmap to be able to
      distinguish between delayed-insert threads and slave threads.
      - Fix for BUG#1701 "Update from multiple tables" (one line in sql_parse.cc,
      plus a new test rpl_multi_update.test). That's just adding an initialization.
      
      
      sql/repl_failsafe.cc:
        comment to warn about this unused code
      sql/slave.cc:
        Now thd->system_thread is a bitmap, not a bool.
      sql/sql_class.h:
        'bool' for THD::system_thread is not accurate enough; sometimes we need
        to distinguish between delayed-insert threads and slave threads;
        so changing THD::system_thread to a bitmap (uint).
      sql/sql_insert.cc:
        thd.system_thread is now a bitmap
      sql/sql_parse.cc:
        We need to initialize thd->lex.select_lex.options in mysql_init_query();
        it's already initialized in dispatch_command() but replication calls
        mysql_parse() directly, thus bypassing dispatch_command().
        Not initing it here leads to a query influencing the next query,
        in the slave SQL thread.
        The initialization in dispatch_command() must be kept as this
        command uses the variable in tests, even when the command was not a
        query (i.e. when mysql_init_query() was not called).
      66927c51
    • unknown's avatar
      Merge mysql.com:/home/kostja/mysql/mysql-4.0-root · 0cc52bc7
      unknown authored
      into mysql.com:/home/kostja/mysql/mysql-4.0-1790
      
      
      0cc52bc7
    • unknown's avatar
      Merge gweir@bk-internal.mysql.com:/home/bk/mysql-4.0 · e101f8b6
      unknown authored
      into mysql.com:/bk/mysql-4.0
      
      
      e101f8b6
    • unknown's avatar
      Fix InstallShield 'String Tables could not be loaded' issue · dbd810e0
      unknown authored
      
      VC++Files/InstallShield/4.0.XX-classic/String Tables/0009-English/value.shl:
        This should not be the product version; it must match Default.shl
      VC++Files/InstallShield/4.0.XX-gpl/String Tables/0009-English/value.shl:
        This should not be the product version; it must match Default.shl
      VC++Files/InstallShield/4.0.XX-pro/String Tables/0009-English/value.shl:
        This should not be the product version; it must match Default.shl
      dbd810e0
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.0 · 3db325cb
      unknown authored
      into mysql.com:/my/mysql-4.0
      
      
      3db325cb
    • unknown's avatar
      Allow space in service names · ee52d292
      unknown authored
      move bdb/innodb tests to right places
      
      
      mysql-test/r/bdb.result:
        Update results after test changes
      mysql-test/r/innodb.result:
        Update results after test changes
      mysql-test/r/multi_update.result:
        Update results after test changes
      mysql-test/t/bdb.test:
        Move bdb tests here
      mysql-test/t/innodb.test:
        Move innodb test here
      mysql-test/t/multi_update.test:
        move bdb/innodb tests to repective test
      sql/mysqld.cc:
        Allow space in service names
      ee52d292
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.0 · 9d85f991
      unknown authored
      into mysql.com:/home/dlenev/src/mysql-4.0-tsbug
      
      
      9d85f991
    • unknown's avatar
      Fix undeterministic behaviour of year check · 8f4ed1d7
      unknown authored
      if we failed to classify integer as datetime 
      in Field_datetime::store().
      Stylistic clean-ups.
      
      
      sql/field.cc:
        Fix undeterministic behaviour of year check 
        if we failed to classify integer as datetime
        Stylistic clean-ups.
      8f4ed1d7
    • unknown's avatar
      Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.0 · 0a9ae10f
      unknown authored
      into mysql.com:/home/mysql_src/mysql-4.0
      
      
      0a9ae10f
    • unknown's avatar
      Fix for BUG#2011 "rare race condition producing "binlog has bad magic number" error in slave". · 8479e5a3
      unknown authored
      The problem was that when the slave SQL thread reads a hot relay log (hot = the one being written to by the
      slave I/O thread), it must have the LOCK_log. It already took it for read_log_event(), but needs
      it also for check_binlog_magic().
      This should fix all recently reported failures of the rpl_max_relay_size test in 4.1 and 5.0
      (though the bug exists since 4.0, it showed up first in 5.0).
      
      
      sql/slave.cc:
        Fix for BUG#2011 "rare race condition producing "binlog has bad magic number" error in slave".
        The problem was that when the slave SQL thread reads a hot relay log (hot = the one being written to by the
        slave I/O thread), it must have the LOCK_log. It already took it for read_log_event(), but needs
        it also for check_binlog_magic().
      8479e5a3
    • unknown's avatar
      Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-4.0 · 8f9baee6
      unknown authored
      into gluh.mysql.r18.ru:/home/gluh/mysql-4.0.bugfssl
      
      
      8f9baee6
    • unknown's avatar
  5. 03 Dec, 2003 3 commits
  6. 02 Dec, 2003 8 commits
    • unknown's avatar
      Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.0 · e8fc6d46
      unknown authored
      into mysql.com:/home/mysql_src/mysql-4.0
      
      
      e8fc6d46
    • unknown's avatar
      Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-4.0 · 25be07f0
      unknown authored
      into mysql.com:/home/psergey/mysql-4.0
      
      
      25be07f0
    • unknown's avatar
      Fix for bug #1980 · 8be4234f
      unknown authored
      
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      8be4234f
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.0 · 465881c2
      unknown authored
      into mysql.com:/home/dlenev/src/mysql-4.0-tsbg
      
      
      465881c2
    • unknown's avatar
      Fix for Bug #1448 "Date parsing fails, and fails to complain · f5d72297
      unknown authored
      about it". Now numbers representing illegal timestamps are 
      converted to 0 value if they are stored as timestamp or 
      datetime. This behaviour is consistent with manual and with 
      behaviour of string -> timestamp conversion.
      
      
      mysql-test/r/type_datetime.result:
        Added test if ranges are checked during 
        integer, string -> timestamp conversion
      mysql-test/r/type_timestamp.result:
        Added test if ranges are checked during 
        integer, string -> datetime conversion
      mysql-test/t/type_datetime.test:
        Added test if ranges are checked during 
        integer, string -> datetime conversion
      mysql-test/t/type_timestamp.test:
        Added test if ranges are checked during 
        integer, string -> timestamp conversion
      sql/field.cc:
        Checks of month, day, hour, minute and second ranges were added
        to storing of integer into Field_datetime and Field_timestamp
        and so for integer -> datetime, timestamp conversion.
      f5d72297
    • unknown's avatar
      Post-review fixes for bug #1790 'BIT_AND() result in GROUP BY different when · a2bdd621
      unknown authored
       SQL_BIG_RESULT used':
      - BIT_AND now returns BIGINT UNSIGNED
      - in case there were no matching rows BIT_AND returns 18446744073709551615 
      (but not NULL), BIT_OR returns 0 (but not NULL). That's how Monty wants it
      and how is described in our docs.
      
      
      
      
      include/my_global.h:
        Added definition for ULONGLONG_MAX.
        This is also a check that ULL type specifier
        can be used on all supported platforms.
      mysql-test/r/func_group.result:
        bug #1790, post-review work: test results fixed
      sql/item_sum.cc:
        small cleanup
      sql/item_sum.h:
        few style fixes.
        BIT_AND and BIT_OR now are both BIGINT UNSIGNED
      a2bdd621
    • unknown's avatar
      There is no reason that Intvar_log_event's constructor calls Log_event::Log_event() · b9418600
      unknown authored
      instead of Log_event::Log_event(THD*, ...) when the event is built in the master
      to be written in the binlog.
      Rand_log_event already used the good constructor, so there really is no reason
      for Intvar_log_event to be an exception.
      This fixes a test failure of last night (which appeared after I removed a useless
      e.server_id=thd->server_id in log.cc; in fact this line was not useless because
      it hid the bad constructor).
      Replication tests pass, with Valgrind too.
      
      
      sql/log_event.h:
        There is no reason that Intvar_log_event's constructor calls Log_event::Log_event()
        instead of Log_event::Log_event(THD*, ...) when the event is built in the master
        to be written in the binlog.
        Rand_log_event already used the good constructor, so there really is no reason
        for Intvar_log_event to be an exception.
        This fixes a test failure of last night (which appeared after I removed a useless
        e.server_id=thd->server_id in log.cc; in fact this line was not useless because
        it hid the bad constructor).
      b9418600
    • unknown's avatar
      Merge mysql.com:/home/kostja/mysql/mysql-4.0-root · 363c4e8a
      unknown authored
      into mysql.com:/home/kostja/mysql/mysql-4.0-1790
      
      
      363c4e8a
  7. 01 Dec, 2003 2 commits
  8. 28 Nov, 2003 6 commits