1. 10 Mar, 2006 6 commits
    • unknown's avatar
      Improve mysqltest · 740e3459
      unknown authored
      Add comment's for enable/disable_query_log and enable/disable_result_log
      Update comment for "check_result"
      Add check in "handle_error" that detects if the server crashed when running a "require" query to check if a certain feature is available
      
      
      client/mysqltest.c:
        Add comment's for enable/disable_query_log and enable/disable_result_log
        Update comment for "check_result"
        Add check in "handle_error" that detects if the server crashed when running a "require" query to check if a certain feature is available
      740e3459
    • unknown's avatar
      Merge msvensson@devsrv-b:/space/magnus/bug17261/my50-bug17261 · 1e350370
      unknown authored
      into  neptunus.(none):/home/msvensson/mysql/bug11835/my50-bug11835
      
      
      sql/share/errmsg.txt:
        Auto merged
      sql/udf_example.cc:
        Auto merged
      1e350370
    • unknown's avatar
      Bug#17261 Passing a variable from a stored procedure to UDF crashes mysqld · 46b56fd0
      unknown authored
       - Update of test toolsand Makefiles to make it possible to test always test udf's as part 
      of the mysql test suite
      
      
      mysql-test/mysql-test-run.pl:
        Add the path where mysqld will udf_example.so used by the udf test
      mysql-test/r/udf.result:
        Update test results
      mysql-test/t/udf.test:
        Update tests
        The "--error 0" directives should actually be changed to the correct error number returned but that error  number is lost. W e do however get the right error message and that is checked in 
        the .result file.
      sql/Makefile.am:
        Build shared library udf_example.so
      sql/share/errmsg.txt:
        Update the max length of %s string from 64 to 128
      sql/sql_udf.cc:
        Add DBUG_PRINT just before dl_open
      sql/udf_example.cc:
        Use isalpha instade of my_isalpha
      46b56fd0
    • unknown's avatar
      Merge msvensson@devsrv-b:/space/magnus/bug17261/my50-bug17261 · d407cc5b
      unknown authored
      into  neptunus.(none):/home/msvensson/mysql/bug11835/my50-bug11835
      
      
      sql/udf_example.cc:
        Auto merged
      d407cc5b
    • unknown's avatar
      Merge neptunus.(none):/home/msvensson/mysql/bug11835/my41-bug11835 · 458e6f3a
      unknown authored
      into  neptunus.(none):/home/msvensson/mysql/bug11835/my50-bug11835
      
      
      configure.in:
        Auto merged
      458e6f3a
    • unknown's avatar
      Bug#11835 CREATE FUNCTION crashes server · 5203bbf4
      unknown authored
       - Don't look for 'dl_open' if mysqld is compiled with "-all-static" 
      
      
      configure.in:
        No need to check for dlopen when mysqld is linked with -all-static 
        as it won't be able to load any functions (and in some cases segfaults)
      5203bbf4
  2. 22 Feb, 2006 1 commit
  3. 21 Feb, 2006 5 commits
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 9af2e45c
      unknown authored
      into  mysql.com:/opt/local/work/mysql-5.0-runtime
      
      
      sql/sql_yacc.yy:
        Auto merged
      sql/share/errmsg.txt:
        SCCS merged
      9af2e45c
    • unknown's avatar
      Merge pchardin@bk-internal.mysql.com:/home/bk/mysql-5.0 · 45d4b1e9
      unknown authored
      into  mysql.com:/home/cps/mysql/devel/im/5.0-im-fix-race
      
      
      server-tools/instance-manager/instance_map.cc:
        Auto merged
      45d4b1e9
    • unknown's avatar
      Fix race condition: instance map wasn't locked for the · 0187c361
      unknown authored
      duration of the whole 'flush instances'. As a consequence,
      it was possible to query instance map, while it is in the
      inconsistent state. The patch was reworked after review.
      
      
      server-tools/instance-manager/guardian.cc:
        do not lock instance map in Guardian_thread::init()
      server-tools/instance-manager/instance_map.cc:
        Eliminate race condition: lock instance map and guardian
        for the duration of the whole "FLUSH INSTANCES" execution.
      server-tools/instance-manager/instance_map.h:
        add new method. cleanup interface. add comments.
      server-tools/instance-manager/manager.cc:
        use instance_map.flush_instances instead of instance_map.load() and guardian_thread.init()
      0187c361
    • unknown's avatar
      Merge pchardin@bk-internal.mysql.com:/home/bk/mysql-5.0 · f33bb66f
      unknown authored
      into  mysql.com:/home/cps/mysql/devel/im/5.0-im-add-error-message
      
      f33bb66f
    • unknown's avatar
      Fix for Bug #12674 "Instance Manager: IM doesn't handle client · 2dea6178
      unknown authored
      connections correctly".
      Recommit with the max timeout value in sync with the comment.
      
      
      server-tools/instance-manager/options.cc:
        add new option to set wait timeout
      server-tools/instance-manager/priv.h:
        add a const for max wait timeout
      2dea6178
  4. 20 Feb, 2006 5 commits
  5. 18 Feb, 2006 6 commits
    • unknown's avatar
      In previous push, a DROP TABLE at the end of test was missing. · 23e6848a
      unknown authored
      
      mysql-test/r/mix_innodb_myisam_binlog.result:
        result update
      mysql-test/t/mix_innodb_myisam_binlog.test:
        cleanup in the end
      23e6848a
    • unknown's avatar
      Fix for BUG#13897 "failure to do SET SQL_MODE=N where N is a number > 31" (the... · 10ce919b
      unknown authored
      Fix for BUG#13897 "failure to do SET SQL_MODE=N where N is a number > 31" (the original bug's title isn't the simplest
      symptom). sys_var::check_set() was wrong. mysqlbinlog makes use of such SET SQL_MODE=N
      (where N is interpreted like if SQL_MODE was a field of type SET), so
      this bug affected recovery from binlogs if the server was running with certain SQL_MODE values,
      for example the default values on Windows (STRICT_TRANS_TABLES); to work around this bug people
      had to edit mysqlbinlog's output.
      
      
      mysql-test/r/sql_mode.result:
        result update
      mysql-test/t/sql_mode.test:
        test for various numeric SQL_MODE values
      sql/set_var.cc:
        For a set, it does not make sense to test if the supplied argument exceeds the number of elements in the set
        (such test would make sense for an enum), but rather to check if it exceeds 2^this (to verify
        that only reasonable bits are set).
      10ce919b
    • unknown's avatar
      Fix for BUG#14769 "Function fails to replicate if fails half-way (slave stops)": · a6fe7f7c
      unknown authored
      if the function, invoked in a non-binlogged caller (e.g. SELECT, DO), failed half-way on the master,
      slave would stop and complain that error code between him and master mismatch. 
      To solve this, when a stored function is invoked in a non-binlogged caller (e.g. SELECT, DO), we binlog the function
      call as SELECT instead of as DO (see revision comment of sp_head.cc for more).
      And: minor wording change in the help text.
      This cset will cause conflicts in 5.1, I'll merge.
      
      
      mysql-test/r/rpl_sp.result:
        result update
      mysql-test/t/rpl_sp-slave.opt:
        bug just fixed so option not needed
      mysql-test/t/rpl_sp.test:
        test for more half-failed functions with DO and SELECT, to test the bug of this changeset.
        cleanup at the end.
      sql/mysqld.cc:
        function -> stored function (change suggested by Paul)
      sql/sp_head.cc:
        When a function updates data and is called from a non-binlogged statement (SELECT, DO), we binlog it 
        as SELECT myfunc(), and not DO myfunc() like before.
      a6fe7f7c
    • unknown's avatar
      Fix for BUG#16559 "Replication Problems with Non transactional tables inside... · 94beb83b
      unknown authored
      Fix for BUG#16559 "Replication Problems with Non transactional tables inside an interrupted trans.":
      problem was: when a connection disconnects having an open transaction affecting MyISAM and InnoDB, the ROLLBACK event stored in the binary log
      contained a non-zero error code (1053 because of the disconnection), so when slave applied the transaction, slave complained that its ROLLBACK succeeded
      (error_code=0) while master's had 1053, so slave stopped. But internally generated binlog events such as this ROLLBACK
      should always have 0 as error code, as is true in 4.1 and was accidentally broken in 5.0,
      so that there is no false alarm.
      
      
      mysql-test/r/mix_innodb_myisam_binlog.result:
        result update
      mysql-test/t/mix_innodb_myisam_binlog.test:
        test for BUG#16559
      sql/log.cc:
        Internally generated binlog events should always have an error code of zero (like in 4.1; in 5.0 this was accidentally broken).
      94beb83b
    • unknown's avatar
      --help option added to mysql_upgrade script · 8acb3a27
      unknown authored
      
      scripts/mysql_upgrade.sh:
        --help option implemented
      8acb3a27
    • unknown's avatar
      Add a shift in the parser. Forgotten in the previous commit. · 2b1e6bc3
      unknown authored
      
      server-tools/instance-manager/parse.cc:
        shift the second value for the log
      2b1e6bc3
  6. 17 Feb, 2006 8 commits
  7. 16 Feb, 2006 9 commits
    • unknown's avatar
      Merge mysql.com:/home/mydev/mysql-5.0 · 067cbaf8
      unknown authored
      into  mysql.com:/home/mydev/mysql-5.0-bug8841
      
      067cbaf8
    • unknown's avatar
      Merge · 23e6480d
      unknown authored
      
      sql/item.cc:
        Auto merged
      sql/item.h:
        Auto merged
      mysql-test/t/disabled.def:
        SCCS merged
      23e6480d
    • unknown's avatar
      mysqlcheck.c: · f5045543
      unknown authored
        Fix out of order options.
      
      
      client/mysqlcheck.c:
        Fix out of order options.
      f5045543
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0-runtime · cd77c46c
      unknown authored
      into  mysql.com:/home/dlenev/src/mysql-5.0-bg16593
      
      
      sql/sql_base.cc:
        Auto merged
      sql/sql_prepare.cc:
        Auto merged
      sql/sql_update.cc:
        Auto merged
      cd77c46c
    • unknown's avatar
      Fix for bug #16593 "Deadlock or crash in stress test for case where · 641faab7
      unknown authored
      trigger starts trigger".
      
      In short, the deadlock/crash happened when execution of statement, which used
      stored functions or activated triggers, coincided with alteration of the
      tables used by these functions or triggers (in highly concurrent environment).
      
      Bug was caused by the incorrect handling of tables from prelocked set in
      open_tables() functions in situations when refresh happened. This fix replaces
      old smart but not very robust way of handling tables after refresh (which was
      closing only old tables), with new one which simply closes all tables opened so
      far and restarts open_tables().
      Also fixed handling of temporary tables in close_tables_for_reopen().
      
      No test case present since bug manifests itself only in concurrent environment.
      
      
      sql/mysql_priv.h:
        In order to handle correctly case when table list completely consists from tables
        from prelocked set close_tables_for_reopen() have to accept table list as in/out
        parameter.
      sql/sql_base.cc:
        open_tables():
          Removed part of comment  which was out of date.
          Changed handling of case when refresh happens during opening of tables, now
          instead of having code which decides for each table if it should be closed
          we simply close all tables. Old code also incorrectly handled tables from
          prelocked set in this situation which resulted in bug #16593 "Deadlock or
          crash in stress test for case where triggers starting trigger".
        close_tables_for_reopen():
          Now we correctly handle the case when table list completely consists from
          tables from prelocked set. Also now we simply close all tables instead
          leaving temporary tables non-closed (such approach allows easily handle
          correctly tables from prelocked set).
      sql/sql_prepare.cc:
        In order to handle correctly case when table list completely consists from tables
        from prelocked set close_tables_for_reopen() have to accept table list as in/out
        parameter.
      sql/sql_update.cc:
        In order to handle correctly case when table list completely consists from tables
        from prelocked set close_tables_for_reopen() have to accept table list as in/out
        parameter.
      641faab7
    • unknown's avatar
      Merge mysql.com:/home/mydev/mysql-5.0 · 9c6870e3
      unknown authored
      into  mysql.com:/home/mydev/mysql-5.0-bug8841
      
      9c6870e3
    • unknown's avatar
      Merge neptunus.(none):/home/msvensson/mysql/bug16333/my50-bug16333 · 5478761a
      unknown authored
      into  neptunus.(none):/home/msvensson/mysql/mysql-5.0
      
      5478761a
    • unknown's avatar
      Merge mysql.com:/home/mydev/mysql-5.0 · 8ecbe786
      unknown authored
      into  mysql.com:/home/mydev/mysql-5.0-bug8841
      
      8ecbe786
    • unknown's avatar
      ndb_load disabled · 404f1ebc
      unknown authored
      
      mysql-test/t/disabled.def:
        Disable ndb_load again...
      404f1ebc