1. 12 Nov, 2004 1 commit
    • unknown's avatar
      Fix for bug #5890 "Triggers fail for DELETE without WHERE". · 6827c26f
      unknown authored
      If we have DELETE with always true WHERE clause we should not use 
      optimized delete_all_rows() method for tables with DELETE triggers,
      because in this case we will lose side-effect of deletion.
      
      
      mysql-test/r/trigger.result:
        Added test for bug #5890 "Triggers fail for DELETE without WHERE".
      mysql-test/t/trigger.test:
        Added test for bug #5890 "Triggers fail for DELETE without WHERE".
      sql/sql_delete.cc:
        mysql_delete(): 
          We should not use optimized delete_all_rows() method for tables
          with DELETE triggers, because in this case we will lose side-effect
          of deletion.
      sql/sql_trigger.h:
        Added new Table_triggers_list::has_delete_triggers() method which
        allows to understand quickly if we have some DELETE triggers in
        our list.
      6827c26f
  2. 11 Nov, 2004 7 commits
  3. 10 Nov, 2004 9 commits
  4. 09 Nov, 2004 8 commits
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 307b152c
      unknown authored
      into mysql.com:/home/my/mysql-5.0
      
      
      BitKeeper/etc/ignore:
        auto-union
      sql/item_subselect.cc:
        Auto merged
      sql/sql_acl.cc:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_insert.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_view.cc:
        Auto merged
      307b152c
    • unknown's avatar
      Merge abelkin@bk-internal.mysql.com:/home/bk/mysql-5.0 · 2205a00a
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0
      
      2205a00a
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · adeae5ed
      unknown authored
      into sergbook.mylan:/usr/home/serg/Abk/mysql-5.0
      
      adeae5ed
    • unknown's avatar
      Merge abelkin@bk-internal.mysql.com:/home/bk/mysql-5.0 · 46c5eb32
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0
      
      46c5eb32
    • unknown's avatar
      0b4dfe8b
    • unknown's avatar
      After merge fixes · 46dc1ad9
      unknown authored
      46dc1ad9
    • unknown's avatar
      merge on pull · 63877f64
      unknown authored
      
      BitKeeper/etc/logging_ok:
        auto-union
      BitKeeper/deleted/.del-Makefile.am:
        Delete: Docs/Images/Makefile.am
      configure.in:
        Auto merged
      innobase/include/row0mysql.h:
        Auto merged
      innobase/lock/lock0lock.c:
        Auto merged
      innobase/row/row0mysql.c:
        Auto merged
      mysql-test/r/ps.result:
        Auto merged
      mysql-test/t/ps.test:
        Auto merged
      sql/ha_innodb.cc:
        Auto merged
      sql/ha_innodb.h:
        Auto merged
      sql/item.cc:
        Auto merged
      sql/item.h:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_prepare.cc:
        Auto merged
      sql/table.cc:
        Auto merged
      63877f64
    • unknown's avatar
      After merge fixes · d4f78009
      unknown authored
      Added push_back(void *, MEM_ROOT *) to make some list-handling code easier that needs to be allocated in a different mem-root
      (Before one had to change thd->mem_root ; push_back(); restore mem_root.
      
      
      mysql-test/t/range.test:
        After merge fixRecR
      sql/item_func.cc:
        After merge fix
      sql/item_sum.cc:
        After merge fix
      sql/opt_range.cc:
        After merge fix
      sql/parse_file.cc:
        After merge fix
      sql/sp.cc:
        After merge fix
      sql/sp_head.cc:
        After merge fix
      sql/sp_head.h:
        After merge fix
      sql/sql_base.cc:
        After merge fix
      sql/sql_class.h:
        After merge fix
      sql/sql_list.h:
        Added push_back(void *, MEM_ROOT *) to make some list-handling code easier that needs to be allocated in a different mem-root
        (Before one had to change thd->mem_root ; push_back(); restore mem_root.
      sql/sql_prepare.cc:
        After merge fix
      sql/sql_select.cc:
        After merge fix
      sql/sql_table.cc:
        After merge fix
        Fixed problem with OPTIMIZE on INNODB tables
      sql/sql_trigger.cc:
        After merge fix
      sql/sql_union.cc:
        After merge fix
      sql/sql_view.cc:
        After merge fix
      sql/sql_yacc.yy:
        After merge fix
      sql/table.cc:
        After merge fix
      d4f78009
  5. 08 Nov, 2004 6 commits
    • unknown's avatar
      Merge with 4.1 to get new thd->mem_root handling · c6194d17
      unknown authored
      
      BitKeeper/etc/ignore:
        auto-union
      client/mysqldump.c:
        Auto merged
      client/mysqltest.c:
        Auto merged
      innobase/include/row0mysql.h:
        Auto merged
      libmysql/libmysql.c:
        Auto merged
      mysql-test/r/ctype_ucs.result:
        Auto merged
      mysql-test/r/fulltext.result:
        Auto merged
      mysql-test/r/func_in.result:
        Auto merged
      mysql-test/r/ps.result:
        Auto merged
      mysql-test/r/ps_2myisam.result:
        Auto merged
      mysql-test/r/ps_3innodb.result:
        Auto merged
      mysql-test/r/ps_4heap.result:
        Auto merged
      mysql-test/r/ps_5merge.result:
        Auto merged
      mysql-test/r/ps_6bdb.result:
        Auto merged
      mysql-test/r/type_float.result:
        Auto merged
      mysql-test/r/user_var.result:
        Auto merged
      mysql-test/t/innodb.test:
        Auto merged
      mysql-test/t/user_var.test:
        Auto merged
      mysql-test/t/variables.test:
        Auto merged
      sql/ha_berkeley.cc:
        Auto merged
      sql/ha_innodb.cc:
        Auto merged
      sql/ha_innodb.h:
        Auto merged
      sql/ha_ndbcluster.h:
        Auto merged
      sql/item.cc:
        Auto merged
      sql/item_cmpfunc.cc:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/item_sum.cc:
        Auto merged
      sql/item_timefunc.cc:
        Auto merged
      sql/log_event.cc:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/repl_failsafe.cc:
        Auto merged
      sql/set_var.cc:
        Auto merged
      sql/sql_acl.cc:
        Auto merged
      sql/sql_db.cc:
        Auto merged
      sql/sql_error.cc:
        Auto merged
      sql/sql_help.cc:
        Auto merged
      sql/sql_insert.cc:
        Auto merged
      sql/sql_prepare.cc:
        Auto merged
      sql/sql_select.h:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      c6194d17
    • unknown's avatar
      Fixed typo · 03ceff55
      unknown authored
      03ceff55
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · ec16154a
      unknown authored
      into sergbook.mylan:/usr/home/serg/Abk/mysql-5.0
      
      ec16154a
    • unknown's avatar
      Fixed a bug in UPDATE statement with no index column in where condition · 04ff81ae
      unknown authored
      locks all rows (BUG #3300). When using innobase_locks_unsafe_for_binlog
      option InnoDB does not take locks for those rows which do not
      belong to the result set or werent changed by the query. This fix removes
      unnecessary locks also from SELECT and DELETE queries.
      
      
      innobase/include/row0mysql.h:
        Added prototype for row_unlock_for_mysql() function which does an unlock of 
        a row for MySQL.
      innobase/include/trx0trx.h:
        Added a field trx_create_lock to a transaction structure. This field is
        TRUE if we have created a new lock for a record accessed.
      innobase/lock/lock0lock.c:
        Set lock create flag if lock is created and reset this flag before 
        transaction requests a lock.
      innobase/row/row0mysql.c:
        Add support for unlocking a row in InnoDB. If we are using 
        innobase_locks_unsafe_for_binlog option then all those record 
        locks obtained by SQL-query which do not belong to result set 
        or were not modified are unlocked i.e. we remove the lock from 
        those records.
      sql/ha_innodb.cc:
        Added support for a unlock_row interface in InnoDB.
      sql/ha_innodb.h:
        Added prototype for a function unlock_row().
      04ff81ae
    • unknown's avatar
      decimal.c: · c318656a
      unknown authored
          test_ro("999999999999999999999.999", 0, CEILING);
          test_da("5", "-6.0");
      ignore:
        added gdbinit
      
      
      BitKeeper/etc/ignore:
        added gdbinit
      strings/decimal.c:
          test_ro("999999999999999999999.999", 0, CEILING);
          test_da("5", "-6.0");
      c318656a
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0 · 105a6d9e
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-view-5.0
      
      
      mysql-test/r/view.result:
        Auto merged
      mysql-test/t/view.test:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_update.cc:
        Auto merged
      sql/table.h:
        Auto merged
      105a6d9e
  6. 07 Nov, 2004 9 commits
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0 · 621fa1cc
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-update-5.0
      
      
      sql/sql_prepare.cc:
        Auto merged
      621fa1cc
    • unknown's avatar
      postreview fixes · 77462222
      unknown authored
      
      mysql-test/r/multi_update.result:
        test with multiupdate reopening tables
      mysql-test/t/multi_update.test:
        test with multiupdate reopening tables
      sql/item.cc:
        processor for cleunuping items in item tree
      sql/item.h:
        processor for cleunuping items in item tree
      sql/sql_update.cc:
        fixed case when lock reopened tables
      sql/table.cc:
        methos for cleunup view itema of table if they are present
      sql/table.h:
        methos for cleunup view itema of table if they are present
      77462222
    • unknown's avatar
      After merge fixes · 0722ec13
      unknown authored
      0722ec13
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · fe6ea1aa
      unknown authored
      into mysql.com:/home/my/mysql-4.1
      
      
      sql/sql_select.cc:
        Auto merged
      tests/client_test.c:
        Auto merged
      fe6ea1aa
    • unknown's avatar
      Simpler arena swapping code · dda7a6a9
      unknown authored
      Now thd->mem_root is a pointer to thd->main_mem_root and THR_MALLOC is a pointer to thd->mem_root.
      This gives us the following benefits:
      - Allow us to easily detect if arena has already been swapped before (this fixes a bug in setup_conds() where arena was swaped twice in some cases)
      - Faster swaps of arenas (as we don't have to copy the whole MEM_ROOT)
      - We don't anymore have to call my_pthread_setspecific_ptr(THR_MALLOC,...) to change where memory is alloced. Now it's enough to set thd->mem_root
      
      
      
      client/mysqltest.c:
        Remove some not needed defines
        (Things like this should be done in config-win.h)
      include/config-win.h:
        Added popen() and pclose() compatibility macros
      mysql-test/t/rpl_failed_optimize-master.opt:
        Portability fix
      sql/ha_berkeley.cc:
        New thd->memroot handling
      sql/item_cmpfunc.cc:
        Simpler arena swapping code
      sql/item_func.cc:
        Simpler arena swapping code
      sql/item_subselect.cc:
        Simpler arena swapping code
        New thd->mem_root handling
      sql/item_sum.cc:
        New thd->mem_root handling
      sql/item_timefunc.cc:
        Fixed not-initalized usage errors found by valgrind
      sql/log_event.cc:
        New thd->mem_root handling
      sql/mysql_priv.h:
        New thd->mem_root handling
      sql/mysqld.cc:
        New thd->mem_root handling
      sql/opt_range.cc:
        New thd->mem_root handling
      sql/repl_failsafe.cc:
        New thd->mem_root handling
      sql/set_var.cc:
        New thd->mem_root handling
      sql/sql_acl.cc:
        New thd->mem_root handling
      sql/sql_base.cc:
        Simpler arena swapping code
        New thd->mem_root handling
      sql/sql_class.cc:
        New thd->mem_root handling
      sql/sql_class.h:
        Simpler arena swapping code
        New thd->mem_root handling
      sql/sql_db.cc:
        New thd->mem_root handling
      sql/sql_error.cc:
        New thd->mem_root handling
      sql/sql_help.cc:
        New thd->mem_root handling
      sql/sql_insert.cc:
        New thd->mem_root handling
      sql/sql_parse.cc:
        New thd->mem_root handling
        Added some extra checking of return value of new
      sql/sql_prepare.cc:
        New thd->mem_root handling
      sql/sql_select.cc:
        New thd->mem_root handling
      sql/sql_select.h:
        New thd->mem_root handling
      sql/sql_union.cc:
        Simpler arena swapping code
      sql/sql_yacc.yy:
        New thd->mem_root handling
      sql/table.cc:
        New thd->mem_root handling
      sql/thr_malloc.cc:
        New thd->mem_root handling
      tests/client_test.c:
        Added drop table to some tests
        Changed some table names to 't1'
      dda7a6a9
    • unknown's avatar
      don't return intg=frac=0 from mod · ee271317
      unknown authored
      ee271317
    • unknown's avatar
      memory overrun in decimal_mod · 8dba4a45
      unknown authored
      8dba4a45
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1 · 42cff02c
      unknown authored
      into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1
      
      42cff02c
    • unknown's avatar
      wrong copyright · fef44f40
      unknown authored
      fef44f40