1. 10 Nov, 2004 1 commit
    • unknown's avatar
      select.result, select.test: · 2ef4c97e
      unknown authored
        Added test cases for bug #6474.
      sql_select.cc:
        Fixed bug #6474. A wrong result was returned when a query
        contained the same equality of the form field=const on
        different AND levels.
      
      
      sql/sql_select.cc:
        Fixed bug #6474. A wrong result was returned when a query
        contained the same equality of the form field=const on
        different AND levels.
      mysql-test/t/select.test:
        Added test cases for bug #6474.
      mysql-test/r/select.result:
        Added test cases for bug #6474.
      2ef4c97e
  2. 09 Nov, 2004 8 commits
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 96bd70c7
      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
      96bd70c7
    • unknown's avatar
      Merge abelkin@bk-internal.mysql.com:/home/bk/mysql-5.0 · 591feb1f
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0
      
      
      591feb1f
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 77b011c6
      unknown authored
      into sergbook.mylan:/usr/home/serg/Abk/mysql-5.0
      
      
      77b011c6
    • unknown's avatar
      Merge abelkin@bk-internal.mysql.com:/home/bk/mysql-5.0 · 753dc116
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0
      
      
      753dc116
    • unknown's avatar
      cd16e4c9
    • unknown's avatar
      After merge fixes · 8bddd448
      unknown authored
      8bddd448
    • unknown's avatar
      merge on pull · e0bf844c
      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
      e0bf844c
    • unknown's avatar
      After merge fixes · db676261
      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
      db676261
  3. 08 Nov, 2004 6 commits
    • unknown's avatar
      Merge with 4.1 to get new thd->mem_root handling · 47a5ac0e
      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
      47a5ac0e
    • unknown's avatar
      Fixed typo · 87abc13d
      unknown authored
      87abc13d
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 1ed91ab3
      unknown authored
      into sergbook.mylan:/usr/home/serg/Abk/mysql-5.0
      
      
      1ed91ab3
    • unknown's avatar
      Fixed a bug in UPDATE statement with no index column in where condition · 20c82f5c
      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().
      20c82f5c
    • unknown's avatar
      decimal.c: · 55e08c31
      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");
      55e08c31
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0 · adb6dcb9
      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
      adb6dcb9
  4. 07 Nov, 2004 9 commits
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0 · bff1d475
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-update-5.0
      
      
      sql/sql_prepare.cc:
        Auto merged
      bff1d475
    • unknown's avatar
      postreview fixes · f1b9bf69
      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
      f1b9bf69
    • unknown's avatar
      After merge fixes · a23fdf7f
      unknown authored
      a23fdf7f
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 8793e219
      unknown authored
      into mysql.com:/home/my/mysql-4.1
      
      
      sql/sql_select.cc:
        Auto merged
      tests/client_test.c:
        Auto merged
      8793e219
    • unknown's avatar
      Simpler arena swapping code · 435b20aa
      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'
      435b20aa
    • unknown's avatar
      don't return intg=frac=0 from mod · 7b30603b
      unknown authored
      7b30603b
    • unknown's avatar
      memory overrun in decimal_mod · fc99b521
      unknown authored
      fc99b521
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1 · d93ff572
      unknown authored
      into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1
      
      
      d93ff572
    • unknown's avatar
      wrong copyright · 28986c7f
      unknown authored
      28986c7f
  5. 06 Nov, 2004 5 commits
    • unknown's avatar
      mysql_test_run_new.c: · 7c927251
      unknown authored
        Included header fnmatch.h on Unix
        Changed C++ comments to C comments
        Corrected indentation of code written on Windows
        Split up lines to fit into 80 columns
        Initiated some variables to avoid warnings
        Added __attribute__((unused)) to unused function parameters
        Replace tab characters with space
        Put space after 'for', 'while' etc
        Added value to 'return' from non void function removef()
        On Unix strlwr() was incorrectly declared and a no op,
        replaced it with a macro that does nothing
        Split several statements on the same line
        Other minor changes to conform to coding standard
      
      
      mysql-test/mysql_test_run_new.c:
        Included header fnmatch.h on Unix
        Changed C++ comments to C comments
        Corrected indentation of code written on Windows
        Split up lines to fit into 80 columns
        Initiated some variables to avoid warnings
        Added __attribute__((unused)) to unused function parameters
        Replace tab characters with space
        Put space after 'for', 'while' etc
        Added value to 'return' from non void function removef()
        On Unix strlwr() was incorrectly declared and a no op,
        replaced it with a macro that does nothing
        Split several statements on the same line
        Other minor changes to conform to coding standard
      7c927251
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0 · 79a33fa2
      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/item_subselect.cc:
        Auto merged
      sql/sql_acl.cc:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_delete.cc:
        Auto merged
      sql/sql_insert.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_update.cc:
        Auto merged
      sql/sql_view.cc:
        Auto merged
      sql/table.h:
        Auto merged
      79a33fa2
    • unknown's avatar
      Merge baker@bk-internal.mysql.com:/home/bk/mysql-5.0 · 2c0e731c
      unknown authored
      into avenger.(none):/export/brian/mysql/archive-5.0
      
      
      2c0e731c
    • unknown's avatar
      Remove build errors introduced by 5.0 changes. · 97ab6b91
      unknown authored
      Removed duplicate code where defaults in handler.h will work just as well. 
      
      
      sql/examples/ha_archive.cc:
        Fixed build errors, and removed duplicate code.
      sql/examples/ha_archive.h:
        Removed duplicate code (we will let the default values in handler.h handle these cases).
      97ab6b91
    • unknown's avatar
      join_outer.result, join_outer.test: · 9bd7def3
      unknown authored
        Added cases for bugs #6307 and #6460.
      sql_select.cc:
        Fixed the problem of bug reports #6307 and #6460.
        The reported wrong result sets were due to the fact that
        the added call of the fix_fields method for the built
        AND condition that joined WHERE and ON conditions
        broke ON expression, as it removed extra AND levels
        in the built condition. 
        It looks like that no attributes of the built condition
        are needed, so we don't have to call fix_fields here.
      
      
      sql/sql_select.cc:
        Fixed the problem of bug report #6307 and #6460.
        The reported wrong result sets were due to the fact that
        the added call of the fix_fields method for the built
        AND condition that joined WHERE and ON conditions
        broke ON expression. 
        It looks like that no attributes of the built condition
        are needed, so we don't have to call fix_fields here.
      mysql-test/t/join_outer.test:
        Added cases for bugs #6307 and #6460.
      mysql-test/r/join_outer.result:
        Added cases for bugs #6307 and #6460.
      9bd7def3
  6. 05 Nov, 2004 11 commits
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1 · cf9e3745
      unknown authored
      into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1
      
      
      cf9e3745
    • unknown's avatar
      removed a bunch of "dead" files from the ndb src tree · e5b02acd
      unknown authored
      
      BitKeeper/deleted/.del-Makefile_mysql~13fd89716a05b953:
        Delete: ndb/test/odbc/tpcb/Makefile_mysql
      BitKeeper/deleted/.del-Makefile_ndb~6c74a0c6f8a79774:
        Delete: ndb/test/odbc/tpcb/Makefile_ndb
      BitKeeper/deleted/.del-Makefile~c02da49a787c2f6e:
        Delete: ndb/test/odbc/tpcb/Makefile
      BitKeeper/deleted/.del-readme.txt~3549c08b7818c64:
        Delete: ndb/test/odbc/tpcb/readme.txt
      BitKeeper/deleted/.del-timesten.h~24e85d9b33938c67:
        Delete: ndb/test/odbc/tpcb/timesten.h
      BitKeeper/deleted/.del-tpcb.cpp~7b670d738e1890ae:
        Delete: ndb/test/odbc/tpcb/tpcb.cpp
      BitKeeper/deleted/.del-ttTime.c~94f84fefd7be03f3:
        Delete: ndb/test/odbc/tpcb/ttTime.c
      BitKeeper/deleted/.del-ttTime.h~52ca967b5dfc48bc:
        Delete: ndb/test/odbc/tpcb/ttTime.h
      BitKeeper/deleted/.del-list.h~1329477d9fb820be:
        Delete: ndb/src/external/LINUX.x86/sci/include/list.h
      BitKeeper/deleted/.del-rmlib.h~1889009d4b47c498:
        Delete: ndb/src/external/LINUX.x86/sci/include/rmlib.h
      BitKeeper/deleted/.del-sci_errno.h~a1da22da939f627:
        Delete: ndb/src/external/LINUX.x86/sci/include/sci_errno.h
      BitKeeper/deleted/.del-sci_types.h~64136c0e5ac2ac5f:
        Delete: ndb/src/external/LINUX.x86/sci/include/sci_types.h
      BitKeeper/deleted/.del-sisci_api.h~67839b64a1235d51:
        Delete: ndb/src/external/LINUX.x86/sci/include/sisci_api.h
      BitKeeper/deleted/.del-sisci_demolib.h~ea5d3afd60121d20:
        Delete: ndb/src/external/LINUX.x86/sci/include/sisci_demolib.h
      BitKeeper/deleted/.del-sisci_error.h~c6771e123aa79c71:
        Delete: ndb/src/external/LINUX.x86/sci/include/sisci_error.h
      BitKeeper/deleted/.del-sisci_types.h~67a1a116970eb17f:
        Delete: ndb/src/external/LINUX.x86/sci/include/sisci_types.h
      BitKeeper/deleted/.del-sisci_version.h~d542bfa4c7633fc:
        Delete: ndb/src/external/LINUX.x86/sci/include/sisci_version.h
      BitKeeper/deleted/.del-version.h~b022e3a29d6d96ad:
        Delete: ndb/src/external/LINUX.x86/sci/include/version.h
      BitKeeper/deleted/.del-inttypes.h~c9dfa7f6273df1b1:
        Delete: ndb/src/external/LINUX.x86/sci/include/os/inttypes.h
      BitKeeper/deleted/.del-rmlib.h~61359201e51879bc:
        Delete: ndb/src/external/WIN32.x86/sci/include/rmlib.h
      BitKeeper/deleted/.del-sisci_api.h~3b78e2453819b68d:
        Delete: ndb/src/external/SOLARIS.SPARC/sci/include/sisci_api.h
      BitKeeper/deleted/.del-sisci_error.h~f48df70a324479a2:
        Delete: ndb/src/external/SOLARIS.SPARC/sci/include/sisci_error.h
      BitKeeper/deleted/.del-sisci_types.h~f97cdce73b27052d:
        Delete: ndb/src/external/SOLARIS.SPARC/sci/include/sisci_types.h
      BitKeeper/deleted/.del-sisci_version.h~fa5e2e6069bad028:
        Delete: ndb/src/external/SOLARIS.SPARC/sci/include/sisci_version.h
      BitKeeper/deleted/.del-scilib.h~144397858368aafd:
        Delete: ndb/src/external/WIN32.x86/sci/include/scilib.h
      BitKeeper/deleted/.del-sisci_api.h~23d9bf22685196be:
        Delete: ndb/src/external/WIN32.x86/sci/include/sisci_api.h
      BitKeeper/deleted/.del-sisci_demolib.h~c149b88ed12e698e:
        Delete: ndb/src/external/WIN32.x86/sci/include/sisci_demolib.h
      BitKeeper/deleted/.del-sisci_error.h~3118f4dbedb2eee0:
        Delete: ndb/src/external/WIN32.x86/sci/include/sisci_error.h
      BitKeeper/deleted/.del-sisci_types.h~3cf6f68a4de25d19:
        Delete: ndb/src/external/WIN32.x86/sci/include/sisci_types.h
      BitKeeper/deleted/.del-md5-rfc1321.txt~61f874f9cd434768:
        Delete: ndb/src/common/util/md5-rfc1321.txt
      BitKeeper/deleted/.del-getarg.3~3d3256e9714fadf1:
        Delete: ndb/src/common/util/getarg.3
      BitKeeper/deleted/.del-getarg.3.ps~bfb45b011e1164ae:
        Delete: ndb/src/common/util/getarg.3.ps
      BitKeeper/deleted/.del-cvschk~c63d92daa21ed311:
        Delete: ndb/home/bin/cvschk
      BitKeeper/deleted/.del-AssemblyInfo.cs~7632ee81b277625:
        Delete: ndb/src/cw/cpcc-win32/csharp/AssemblyInfo.cs
      BitKeeper/deleted/.del-frmSplash.frm~40b5877abca91856:
        Delete: ndb/src/cw/cpcc-win32/vb6/frmSplash.frm
      e5b02acd
    • unknown's avatar
      Fix the client_test failure (due to failing cursors tests after the merge). · 21f90d19
      unknown authored
      
      sql/sql_select.cc:
        Fix the client_test failure (due to failing cursors tests after the merge):
        move some code around, use set_n_backup calls instead of by-hand
        setup.
      21f90d19
    • unknown's avatar
      A fix and test case for Bug#6102 "Server crash with prepared statement · 714fc4b7
      unknown authored
      and blank after function name".
      Crop fruits of copy-paste programming: pre-caching of stored functions
      wasn't performed for prepared statements just because implementation
      of prepared statements is done as an add-on to the main execution flow, 
      and the preload was originally implemented for main execution branch
      only (mysql_execute_command).
      
      
      mysql-test/r/ps.result:
        Test results fixed: bug#6102
      mysql-test/t/ps.test:
        A test case for Bug#6102 "Server crash with prepared statement
         and blank after functionname"
      sql/sql_prepare.cc:
        A fix for Bug#6102 "Server crash with prepared statement and blank 
        after functionname": we need to preload stored functions from system tables
         before we open any other tables.
      714fc4b7
    • unknown's avatar
      A fix and test case for the bug reported by Reggie: if character set · b3d84df1
      unknown authored
      of client equals to character set of connection, possibly required
      conversion to character set of column is not performed
      (prepared statements, data is supplied using placeholders).
      
      
      sql/item.cc:
        Fix for the bug reported by Reggie: if character_set_connection
        is equal to character_set_client, placeholder's value is not converted
        furhter to character set of column when it's different.
        This is because the original implementation left placeholder's character
        set intact (binary) if there were no need for client->connection conversion.
      tests/client_test.c:
        A test case for the conversion bug.
      b3d84df1
    • unknown's avatar
      mysqldump.c: · 7bcd40bd
      unknown authored
        in 4.1: Dump only VARBINARY() in hex,
        while VARCHAR() COLLATE xxx_bin as a string.
      
      
      client/mysqldump.c:
        in 4.1: Dump only VARBINARY() in hex,
        while VARCHAR() COLLATE xxx_bin as a string.
      7bcd40bd
    • unknown's avatar
      new lock for multiupdate: · 8b0ece5e
      unknown authored
      - open and create derived tables
      - detect which tables should be locked for write
      - lock and fill derived tables
      some unitialized variables fixed
      
      
      mysql-test/r/lock_multi.result:
        correct results returned
      mysql-test/r/multi_update.result:
        correct results returned
      mysql-test/r/view.result:
        correct results returned
      mysql-test/t/multi_update.test:
        correct results returned
      mysql-test/t/view.test:
        correct results returned
      sql/mysql_priv.h:
        derived tables processing splited on table creation and table filling
      sql/sql_base.cc:
        derived tables processing splited on table creation and table filling
      sql/sql_class.h:
        function to detect when we need fill derived tables
      sql/sql_derived.cc:
        derived tables processing splited on table creation and table filling
      sql/sql_lex.cc:
        fixed uninitialized value
      sql/sql_load.cc:
        fixed uninitialized value
      sql/sql_parse.cc:
        initialization muved (will be done for all queries)
      sql/sql_prepare.cc:
        preparation of multiupdate changed a bit because new locking procedure
      sql/sql_update.cc:
        new lock for multiupdate:
        - open and create derived tables
        - detect which tables should be locked for write
        - lock and fill derived tables
      sql/table.h:
        place to store select_result between creation and filling tables
      8b0ece5e
    • unknown's avatar
      Ensure that even the (relatively new) "mysql-test/Makefile.am" gets into the source tar-ball. · 00d05c1e
      unknown authored
      
      BitKeeper/etc/ignore:
        Added mysql-test/mysql_test_run_new to the ignore list
      mysql-test/Makefile.am:
        All source files must be contained in their respective macros in order to be contained
        in the DISTFILES macro so that they get included in the source file tar-ball.
        "my_manage.h" was missing.
      00d05c1e
    • unknown's avatar
      Merge jbruehe@bk-internal.mysql.com:/home/bk/mysql-4.1 · 43c6c27c
      unknown authored
      into mysql.com:/M41/mysql-4.1
      
      
      43c6c27c
    • unknown's avatar
      user_var.result, user_var.test: · 6608e22d
      unknown authored
        My previous change that "set @A=NULL" doesn't change charset
        fixed 'Bug #6321' as well. Prove with a new test that
        FIELD(<uservariable content NULL>, ...) now works fine too.
      
      
      mysql-test/t/user_var.test:
        My previous change that "set @A=NULL" doesn't change charset
        fixed 'Bug #6321' as well. Prove with a new test that
        FIELD(<uservariable content NULL>, ...) now works fine too.
      mysql-test/r/user_var.result:
        My previous change that "set @A=NULL" doesn't change charset
        fixed 'Bug #6321' as well. Prove with a new test that
        FIELD(<uservariable content NULL>, ...) now works fine too.
      6608e22d
    • unknown's avatar
      The new "Bootstrap" pushed in 4.0 with changeset "joerg:1.2057" is used for building · ac391280
      unknown authored
      _all_ versions. It tries to remove "Docs/Images/Makefile*" as part of the actions to
      correct bug number 6350. If the source tree does not contain a dummy file matching
      that pattern, this "rm" will fail, and so "Bootstrap" will fail.
      The "Makefile.am" introduced with this changeset is identical to the one that will
      arrive here when "joerg:1.2057" is propagated from 4.0,
      so this separate introduction here is just to allow "Bootstraps" in the meantime.
      
      
      ac391280