1. 28 Dec, 2005 7 commits
    • unknown's avatar
      Merge moonbone.local:/work/14583-bug-5.0-mysql · 613253c4
      unknown authored
      into moonbone.local:/work/14583-bug-5.1-new-mysql
      
      
      BitKeeper/deleted/.del-ha_blackhole.cc~727c69ef7846623a:
        Auto merged
      mysql-test/r/ctype_ucs.result:
        Auto merged
      sql/mysql_priv.h:
        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
      strings/ctype-ucs2.c:
        Auto merged
      613253c4
    • unknown's avatar
      Manual merge · 8f29cc3e
      unknown authored
      
      mysql-test/t/ctype_ucs.test:
        Auto merged
      sql/sql_update.cc:
        Auto merged
      BitKeeper/deleted/.del-ha_blackhole.cc~727c69ef7846623a:
        Auto merged
      8f29cc3e
    • unknown's avatar
      Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-4.1 · c37389cf
      unknown authored
      into moonbone.local:/work/14583-bug-4.1-mysql
      
      
      c37389cf
    • unknown's avatar
      WL#2575 - Fulltext: Parser plugin for FTS · 38005eae
      unknown authored
      Manual merge.
      
      
      Makefile.am:
        Added new 'plugin' subdir.
      configure.in:
        Added plugin related makefiles.
      include/my_base.h:
        Added HA_OPEN_FROM_SQL_LAYER flag - indicates that a table was openned from the sql layer.
        Added HA_OPTION_RELIES_ON_SQL_LAYER flag - indicates that a table relies on the sql layer.
        Added HA_CREATE_RELIES_ON_SQL_LAYER flag - indicates that a table must be created with
        HA_OPTION_RELIES_ON_SQL_LAYER flag.
      include/myisam.h:
        Distinct fulltext parser number added.
      include/plugin.h:
        Revise comment.
      sql/ha_myisam.cc:
        Pass HA_OPEN_FROM_SQL_LAYER flag to mi_open().
        Pass HA_CREATE_RELIES_ON_SQL_LAYER flag to mi_create().
      sql/sql_plugin.cc:
        Reuse "unused" dynamic array elements.
        A check for plugin info interface version.
      sql/sql_plugin.h:
        Added plugin_type_names[] - string plugin type names.
      sql/sql_show.cc:
        Use plugin_type_names array instead of switch to find literal parser name representation.
      sql/sql_table.cc:
        Fixed that ALTER TABLE ... ADD INDEX loses WITH PARSER info.
      storage/myisam/ft_boolean_search.c:
        Call fulltext parser init() function, pass MYSQL_FTPARSER_PARAM, returned by
        ftparser_call_initializer(), to parser->parse().
      storage/myisam/ft_nlq_search.c:
        Call fulltext parser init() function, pass MYSQL_FTPARSER_PARAM, returned by
        ftparser_call_initializer(), to parser->parse().
      storage/myisam/ft_parser.c:
        Added two functions:
        ftparser_call_initializer() - calls parser->init() function if specified and parser is not yet
        initialized. Returns MYSQL_FTPARSER_PARAM *.
        ftparser_call_deinitializer() - calls parser->deinit() function if specified and parser was
        initialized. Deinitializes all parsers.
        ft_parse() accepts additional param now - MYSQL_FTPARSER_PARM and passes it to parser->parse().
      storage/myisam/ft_update.c:
        Call fulltext parser init() function, pass MYSQL_FTPARSER_PARAM, returned by
        ftparser_call_initializer(), to _mi_ft_parse().
        _mi_ft_parse() accepts additional param now - MYSQL_FTPARSER_PARAM and passes
        it to parser->parse().
      storage/myisam/ftdefs.h:
        Prototypes for new functions were added. MYSQL_FTPARSER_PARAM was added
        to ft_parse and _mi_ft_parse().
      storage/myisam/mi_close.c:
        Free ftparser_param allocated by ftparser_call_initializer().
      storage/myisam/mi_create.c:
        If a table relies on the sql layer, set HA_OPTION_RELIES_ON_SQL_LAYER.
      storage/myisam/mi_locking.c:
        Call deinitializer for each initialized parser.
      storage/myisam/mi_open.c:
        Set default values for share->ftparser and keydef->ftparser_nr.
        If a table is openned from the non-sql layer and HA_OPTION_RELIES_ON_SQL_LAYER is set, raise
        HA_ERR_UNSUPPORTED error.
      storage/myisam/myisamdef.h:
        Added number of distinct parsers to MYISAM_SHARE.
        Added ftparser_param to MI_INFO.
      plugin/Makefile.am:
        New BitKeeper file ``plugin/Makefile.am''
      plugin/fulltext/Makefile.am:
        New BitKeeper file ``plugin/fulltext/Makefile.am''
      plugin/fulltext/plugin_example.c:
        New BitKeeper file ``plugin/fulltext/plugin_example.c''
      38005eae
    • unknown's avatar
      Merge mysql.com:/home/mydev/mysql-5.0 · 4f5664f3
      unknown authored
      into  mysql.com:/home/mydev/mysql-5.0-bug5390
      
      
      4f5664f3
    • unknown's avatar
      build fixes for azio on systems without zutil.h · 5bfbfb24
      unknown authored
      
      storage/archive/azio.c:
        Build fixes for not having zutil.h
        
        use memset instead of zmemzero.
        
        use 8 as memory usage level (the default, which we were using anyway)
        
        in the .gz header, just say we're UNIX.
        
        use memcpy instead of zmemcpy.
      storage/archive/azlib.h:
        don't use zutil.h, it's private to zlib
      5bfbfb24
    • unknown's avatar
      Merge mysql.com:/home/stewart/Documents/MySQL/5.0/main · 94cbe6fd
      unknown authored
      into  mysql.com:/home/stewart/Documents/MySQL/5.1/new
      
      
      client/mysqltest.c:
        Auto merged
      sql/item.cc:
        Auto merged
      sql/sql_trigger.cc:
        Auto merged
      storage/myisam/mi_create.c:
        Auto merged
      storage/myisam/mi_delete.c:
        Auto merged
      storage/ndb/src/kernel/blocks/backup/Backup.cpp:
        Auto merged
      storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Auto merged
      storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp:
        Auto merged
      strings/decimal.c:
        Auto merged
      configure.in:
        remove 5.0 version increement
      sql/ha_archive.cc:
        merge
      sql/handler.cc:
        merge
      sql/mysqld.cc:
        merge
      94cbe6fd
  2. 27 Dec, 2005 12 commits
    • unknown's avatar
      Merge acurtis@bk-internal.mysql.com:/home/bk/mysql-5.1-new · 58175033
      unknown authored
      into  xiphis.org:/home/antony/work2/p4-bug15976
      
      
      58175033
    • unknown's avatar
      Merge istruewing@bk-internal.mysql.com:/home/bk/mysql-5.0 · 1c74210e
      unknown authored
      into  mysql.com:/home/mydev/mysql-5.0-bug5390
      
      
      1c74210e
    • unknown's avatar
      Merge pnousiainen@bk-internal.mysql.com:/home/bk/mysql-5.0 · 6706115c
      unknown authored
      into  mysql.com:/space/pekka/ndb/version/my50
      
      
      6706115c
    • unknown's avatar
      ndb - post merge fix · fe62853a
      unknown authored
      
      storage/ndb/test/ndbapi/test_event_merge.cpp:
        Rename: ndb/test/ndbapi/test_event_merge.cpp -> storage/ndb/test/ndbapi/test_event_merge.cpp
      storage/ndb/test/ndbapi/Makefile.am:
        post-merge fix
      fe62853a
    • unknown's avatar
      Merge mysql.com:/space/pekka/ndb/version/my50 · 4ba38085
      unknown authored
      into  mysql.com:/space/pekka/ndb/version/my51
      
      
      storage/ndb/src/kernel/blocks/dbtup/DbtupCommit.cpp:
        merge-ul
      storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp:
        merge-ul
      storage/ndb/test/ndbapi/Makefile.am:
        merge-ul
      4ba38085
    • unknown's avatar
      Fix bug#14583 · 9a128b97
      unknown authored
      When InnoDB compares varchar field in ucs2 with given key using bin collation,
      it calls my_strnncollsp_ucs2_bin() to perform comparison.
      Because field length was lesser than length of key field should be padded
      with trailing spaces in order to get correct result. 
      Because  my_strnncollsp_ucs2_bin() was calling my_strnncollp_ucs2_bin(), which
      doesn't pads field, wrong comparison result was returned. This results in
      wrong result set.
      
      my_strnncollsp_ucs2_bin() now compares fields like my_strnncollsp_ucs2 do,
      but using binary collation.
      
      
      mysql-test/t/ctype_ucs.test:
        Test case for bug#14583  Wrong my_strnncollsp_ucs2_bin() behaviour results in skipping
        correct records.
      mysql-test/r/ctype_ucs.result:
        Test case for bug#14583  Wrong my_strnncollsp_ucs2_bin() behaviour results in skipping correct records.
      strings/ctype-ucs2.c:
        Fix bug#14583 Wrong my_strnncollsp_ucs2_bin() behaviour results in skipping
        correct records.my_strnncollsp_ucs2_bin() now compares fields like my_strnncollsp_ucs2 do,
        but using binary collation.
      9a128b97
    • unknown's avatar
      ndb - wl#2972 (5.0) fix detached trigger opType + new pgm test_event_merge · b4d11507
      unknown authored
      
      ndb/src/ndbapi/NdbEventOperationImpl.cpp:
        error code 4709 was set outside if()
      ndb/src/kernel/blocks/dbtup/DbtupCommit.cpp:
        fix opType for detached triggers (accidental miss since v21x?)
      ndb/test/ndbapi/Makefile.am:
        test_event_merge v5.0
      ndb/test/ndbapi/test_event_merge.cpp:
        test_event_merge v5.0
      b4d11507
    • unknown's avatar
      5.0 ndb build fix. · f6910883
      unknown authored
      
      ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        build fix for 5.0
      f6910883
    • unknown's avatar
      Merge mysql.com:/home/stewart/Documents/MySQL/4.1/main · 88ef95ff
      unknown authored
      into  mysql.com:/home/stewart/Documents/MySQL/5.0/main
      
      
      client/mysql.cc:
        Auto merged
      myisam/mi_delete.c:
        Auto merged
      mysql-test/r/fulltext2.result:
        Auto merged
      ndb/src/kernel/blocks/backup/Backup.cpp:
        Auto merged
      ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Auto merged
      ndb/src/kernel/blocks/dblqh/DblqhMain.cpp:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      88ef95ff
    • unknown's avatar
      Merge mysql.com:/home/mydev/mysql-4.1 · 4b543591
      unknown authored
      into  mysql.com:/home/mydev/mysql-4.1-bug5390
      
      
      libmysqld/ha_blackhole.cc:
        Auto merged
      sql/sql_update.cc:
        Auto merged
      4b543591
    • unknown's avatar
      Merge mysql.com:/home/mydev/mysql-5.0 · d03d5a30
      unknown authored
      into  mysql.com:/home/mydev/mysql-5.0-bug5390
      
      
      BitKeeper/deleted/.del-ha_blackhole.cc~727c69ef7846623a:
        Auto merged
      sql/mysql_priv.h:
        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
      d03d5a30
    • unknown's avatar
  3. 26 Dec, 2005 15 commits
    • unknown's avatar
      Merge mysql.com:/home/mydev/mysql-5.1 · ceb41693
      unknown authored
      into  mysql.com:/home/mydev/mysql-5.1-bug5390
      
      
      ceb41693
    • unknown's avatar
      3862ee76
    • unknown's avatar
      Merge mysql.com:/home/mydev/mysql-5.1 · 78ac54aa
      unknown authored
      into  mysql.com:/home/mydev/mysql-5.1-bug5390
      
      
      sql/sql_parse.cc:
        Auto merged
      78ac54aa
    • unknown's avatar
      Fix for SQLCOM_BINLOG_BASE64_EVENT related code. · 5b35c715
      unknown authored
                                                 
      
      
      sql/sql_yacc.yy:
        Fix for SQLCOM_BINLOG_BASE64_EVENT related code.                                
        - added missing ';'                                                             
        - added binlog_base64_event
      5b35c715
    • unknown's avatar
      Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-5.1-new · 059aaa8e
      unknown authored
      into  pylon.mylan:/home/psergey/mysql-5.1-26dec-merge
      
      
      059aaa8e
    • unknown's avatar
      Merge newbox:mysql-5.1-ppruning-r4 · eb333f9b
      unknown authored
      into  mysql.com:/home/psergey/mysql-5.1-26dec-merge
      
      
      eb333f9b
    • unknown's avatar
      Merge newbox:mysql-5.1-ppruning-r4 · e6cf611f
      unknown authored
      into  pylon.mylan:/home/psergey/mysql-5.1-26dec-merge
      
      
      sql/ha_ndbcluster.cc:
        Auto merged
      sql/ha_partition.cc:
        Auto merged
      sql/item.h:
        Auto merged
      sql/sql_class.cc:
        Auto merged
      sql/sql_lex.h:
        Auto merged
      sql/sql_partition.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      sql/table.h:
        Auto merged
      sql/handler.h:
        Merge
      e6cf611f
    • unknown's avatar
      Merge mysql.com:/home/mydev/mysql-5.0-bug5390 · 73f2a1b3
      unknown authored
      into  mysql.com:/home/mydev/mysql-5.1-bug5390
      
      
      BitKeeper/deleted/.del-ha_blackhole.cc~727c69ef7846623a:
        Auto merged
      mysql-test/t/create.test:
        Auto merged
      mysql-test/r/create.result:
        BUG#5390 - problems with merge tables
        Manual merge: ul - use local changes made for 5.1
      mysql-test/r/merge.result:
        BUG#5390 - problems with merge tables
        Manual merge: ul - use local changes made for 5.1
      mysql-test/t/merge.test:
        BUG#5390 - problems with merge tables
        Manual merge: ul - use local changes made for 5.1
      sql/lock.cc:
        BUG#5390 - problems with merge tables
        Manual merge: ul - use local changes made for 5.1
      sql/mysql_priv.h:
        BUG#5390 - problems with merge tables
        Manual merge: ul - use local changes made for 5.1
      sql/sql_base.cc:
        BUG#5390 - problems with merge tables
        Manual merge: ul - use local changes made for 5.1
      sql/sql_delete.cc:
        BUG#5390 - problems with merge tables
        Manual merge: ul - use local changes made for 5.1
      sql/sql_insert.cc:
        BUG#5390 - problems with merge tables
        Manual merge: ul - use local changes made for 5.1
      sql/sql_load.cc:
        BUG#5390 - problems with merge tables
        Manual merge: ul - use local changes made for 5.1
      sql/sql_parse.cc:
        BUG#5390 - problems with merge tables
        Manual merge: ul - use local changes made for 5.1
      sql/sql_update.cc:
        BUG#5390 - problems with merge tables
        Manual merge: ul - use local changes made for 5.1
      73f2a1b3
    • unknown's avatar
      Merge mysql.com:/home/mydev/mysql-4.1-bug5390 · e049f2c8
      unknown authored
      into  mysql.com:/home/mydev/mysql-5.0-bug5390
      
      
      BitKeeper/deleted/.del-ha_blackhole.cc~727c69ef7846623a:
        Auto merged
      mysql-test/r/create.result:
        BUG#5390 - problems with merge tables
        Manual merge: ul - use local changes made for 5.0
      mysql-test/r/merge.result:
        BUG#5390 - problems with merge tables
        Manual merge: ul - use local changes made for 5.0
      mysql-test/t/create.test:
        BUG#5390 - problems with merge tables
        Manual merge: ul - use local changes made for 5.0
      mysql-test/t/merge.test:
        BUG#5390 - problems with merge tables
        Manual merge: ul - use local changes made for 5.0
      sql/lock.cc:
        BUG#5390 - problems with merge tables
        Manual merge: ul - use local changes made for 5.0
      sql/mysql_priv.h:
        BUG#5390 - problems with merge tables
        Manual merge: ul - use local changes made for 5.0
      sql/sql_parse.cc:
        BUG#5390 - problems with merge tables
        Manual merge: ul - use local changes made for 5.0
      sql/sql_update.cc:
        BUG#5390 - problems with merge tables
        Manual merge: ul - use local changes made for 5.0
      e049f2c8
    • unknown's avatar
      ignore: · b9e67f43
      unknown authored
        added item_xmlfunc.cc
      
      
      BitKeeper/etc/ignore:
        added item_xmlfunc.cc
      b9e67f43
    • unknown's avatar
      .del-item_xmlfunc.cc~565ad32584ed96d4: · 6f8d81e9
      unknown authored
        Delete: libmysqld/item_xmlfunc.cc
      
      
      BitKeeper/deleted/.del-item_xmlfunc.cc~565ad32584ed96d4:
        Delete: libmysqld/item_xmlfunc.cc
      6f8d81e9
    • unknown's avatar
      add missing DROP TABLE [IF EXISTS] clauses · 01e1d1a0
      unknown authored
      01e1d1a0
    • unknown's avatar
      WL#2985 "Partition pruning": fixes to post-review fixes: when modifying SEL_TREE::keys, · b3abc977
      unknown authored
      adjust SEL_TREE::keys_map appropriately.
      
      
      b3abc977
    • unknown's avatar
      Fix typo bug in previous cset · 32ff7d99
      unknown authored
      32ff7d99
    • unknown's avatar
      WL#2985 "Partition Pruning": post-review fixes: · a4a1bb0e
      unknown authored
      - Added more comments.
      - Added a RANGE_OPT_PARAM::remove_jump_scans flag that disables construction of index_merge
        SEL_TREEs that represent unusable conditions like "key1part1<c1 OR key2part2<c2"
      - make prune_partitions() function handle the case where range analysis produces a list of 
        index_merge trees (it turned out that this is possible, appropriate test case added).
      - Other small fixes.
      
      
      mysql-test/r/partition_pruning.result:
        WL#2985 "Partition Pruning": post-review fixes: more test cases
      mysql-test/t/partition_pruning.test:
        WL#2985 "Partition Pruning": post-review fixes: more test cases
      sql/opt_range.cc:
        WL#2985 "Partition Pruning": post-review fixes:
        - Added more comments.
        - Fix the debug printouts
        - Added a RANGE_OPT_PARAM::remove_jump_scans flag that disables construction of index_merge
          SEL_TREEs that represent unusable conditions like "key1part1<c1 OR key2part2<c2"
        - make prune_partitions() function handle the case where range analysis produces a list of 
          index_merge trees (it turned out that this is possible, appropriate test case added).
      sql/sql_partition.cc:
        WL#2985 "Partition Pruning": post-review fixes: make requested edits in comments.
      sql/table.h:
        WL#2985 "Partition Pruning": post-review fixes: added bool TABLE::no_partitions_used
        (this change was missed when making the original cset)
      a4a1bb0e
  4. 25 Dec, 2005 4 commits
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.1-new · 66f962d8
      unknown authored
      into  mysql.com:/home/my/mysql-5.1
      
      
      client/mysqlslap.c:
        Auto merged
      66f962d8
    • unknown's avatar
      Fixed compile errors (when compiling in debug mode) · c493d102
      unknown authored
      
      BitKeeper/etc/ignore:
        added storage/archive/archive_test
      c493d102
    • unknown's avatar
      Bug#15976: Multiply warnings about unfreed memory · 4019cbf6
      unknown authored
        leaks caused by Archive storage engine not closing files and
        storage engines not receiving panic() during shutdown
      
      
      sql/ha_archive.cc:
        surplus my_close() call not neccessary as azclose() should work
      sql/mysqld.cc:
        Make sure storage engines get panic() call by moving it before plugin_free()
      storage/archive/azio.c:
        typo perhaps. azio was not closing files.
      4019cbf6
    • unknown's avatar
      New option to run multiple engines through the same test: · 4348dc67
      unknown authored
      --engine="myisam,archive"
      
      --number-of-rows has been removed for the time being and replaced with
       option to allow you to just repeat multiple time all of the inserts you specifed with data. When number-of-rows-returns it will be instead used for averaging rows while growing concurrency. 
      
      Returned stats now has accurent row and query counts since it includes a multiple for the rows and queries added.
      
      Parser is now a touch smarter and understands end of file issues if you have a delimiter at the end of the file.  
      
      
      client/client_priv.h:
        New options
      client/mysqlslap.c:
        Modifications for doing repeated tests.
      mysql-test/r/mysqlslap.result:
        New result file
      mysql-test/t/mysqlslap.test:
        Changes in tests to make sure concurrency failures would not occur.
      4348dc67
  5. 24 Dec, 2005 2 commits
    • unknown's avatar
      Merge baker@bk-internal.mysql.com:/home/bk/mysql-5.1-new · a6ef1dc3
      unknown authored
      into  zim.(none):/home/brian/mysql/cluster-5.1
      
      
      mysql-test/r/information_schema.result:
        Auto merged
      a6ef1dc3
    • unknown's avatar
      See message in mysqlslap.c, but basically · ac270838
      unknown authored
      1) Parsing now works
      2) Options are safer, aka it doesn't kill the machine and it cleans up after itself
      3) Option of --only-print added so that you can see what it does.
      4) Tiny cleanup of the auto generate sql. A lot more needs to be done with this, for it to be very valuable. I suspect it doesn't work all that well.
      5) Delimeter is now a single character. No good escaping going on.
      6) You can now change which schema it is runninng against.
      
      Now I think I can go make use of it! 
      
      Though I need to add support for a "only run this many inserts, divide by the number of clients connecting, to really test scaling"
      
      
      
      client/client_priv.h:
        Added new options for mysqlslap
      client/mysqlslap.c:
        Lots of cleanup.
        
        Highlights:
        1) Parsing now works much better, though I suspect escaping issues still exist. All strings are parsed into a typedef called statement. This is a linked structure with each statement held in it. I added options for length so that when the time comes to fix this for binary data the guts of the main executing loop will not need to be changed
        2) Cleaned up options so that it will not destroy data by default and will clean up itself by default. So no leaving around of gobs of data.
        3) Added option of --only-print to see the SQL it would have executed
        4) Parsing handles whitespace trick (which will come back to bite someone I expect)
        5) Delimeter is now a single character
        6) All memory allocated should now be freed.
        7) Set defaults so that only a single run will occur if none are given.
        8) You can now change the schema that it runs against.
      mysql-test/r/information_schema.result:
        Fix for Antony's merge
      mysql-test/r/mysqlslap.result:
        New result set
        More testing
      mysql-test/t/mysqlslap.test:
        More testing
      ac270838