1. 19 Jul, 2005 21 commits
    • unknown's avatar
      ha_ndbcluster.cc: · eaf32b07
      unknown authored
        BUG#12040 Fixed compile failure by using %p instead of %x to print a pointer in DBUG_PRINT
      
      
      sql/ha_ndbcluster.cc:
        BUG#12040 Fixed compile failure by using %p instead of %x to print a pointer in DBUG_PRINT
      eaf32b07
    • unknown's avatar
      .del-var~62c955ccf2da1a21: · ebfd1246
      unknown authored
        Delete: mysql-test/var
      
      
      BitKeeper/deleted/.del-var~62c955ccf2da1a21:
        Delete: mysql-test/var
      ebfd1246
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · d943bc15
      unknown authored
      into  mysql.com:/home/kostja/mysql/mysql-5.0-10760-new
      
      
      sql/handler.cc:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      d943bc15
    • unknown's avatar
      A fix and a test case for Bug#10760 and complementary cleanups. · 5f07c9d2
      unknown authored
      The idea of the patch
      is that every cursor gets its own lock id for table level locking.
      Thus cursors are protected from updates performed within the same 
      connection. Additionally a list of transient (must be closed at
      commit) cursors is maintained and all transient cursors are closed
      when necessary. Lastly, this patch adds support for deadlock
      timeouts to TLL locking when using cursors.
      + post-review fixes.
      
      
      include/thr_lock.h:
        - add a notion of lock owner to table level locking. When using
          cursors, lock owner can not be identified by a thread id any more, 
          as we must protect cursors from updates issued within the same 
          connection (thread). So, each cursor has its own lock identifier to 
          use with table level locking.
        - extend return values of thr_lock and thr_multi_lock with
          THR_LOCK_TIMEOUT and THR_LOCK_DEADLOCK, since these conditions
          are now possible (see comments to thr_lock.c)
      mysys/thr_lock.c:
        Better support for cursors:
        - use THR_LOCK_OWNER * as lock identifier, not pthread_t.
        - check and return an error for a trivial deadlock case, when an
          update statement is issued to a table locked by a cursor which has 
          been previously opened in the same connection.
        - add support for locking timeouts: with use of cursors, trivial 
          deadlocks can occur. For now the only remedy is the lock wait timeout,
          which is initialized from a new global variable 'table_lock_wait_timeout'
          Example of a deadlock (assuming the storage engine does not downgrade 
          locks):
          con1: open cursor for select * from t1;
          con2: open cursor for select * from t2;
          con1: update t2 set id=id*2;  -- blocked
          con2: update t1 set id=id*2;  -- deadlock
          Lock timeouts are active only if a connection is using cursors.
        - the check in the wait_for_lock loop has been changed from
          data->cond != cond to data->cond != 0. data->cond is zeroed
          in every place it's changed. 
        - added comments
      sql/examples/ha_archive.cc:
        - extend the handlerton with the info about cursor behaviour at commit.
      sql/examples/ha_archive.h:
        - ctor moved to .cc to make use of archive handlerton
      sql/examples/ha_example.cc:
        - add handlerton instance, init handler::ht with it
      sql/examples/ha_example.h:
        - ctor moved to .cc to make use of ha_example handlerton
      sql/examples/ha_tina.cc:
        - add handlerton instance, init handler::ht with it
      sql/examples/ha_tina.h:
        - ctor moved to .cc to make use of CSV handlerton
      sql/ha_berkeley.cc:
        - init handlerton::flags and handler::ht
      sql/ha_berkeley.h:
        - ctor moved to .cc to make use of BerkeleyDB handlerton
      sql/ha_blackhole.cc:
        - add handlerton instance, init handler::ht with it
      sql/ha_blackhole.h:
        - ctor moved to .cc to make use of blackhole handlerton
      sql/ha_federated.cc:
        - add handlerton instance, init handler::ht with it
      sql/ha_federated.h:
        - ctor moved to .cc to make use of federated handlerton
      sql/ha_heap.cc:
        - add handlerton instance, init handler::ht with it
      sql/ha_heap.h:
        - ctor moved to .cc to make use of ha_heap handlerton
      sql/ha_innodb.cc:
        - init handlerton::flags and handler::ht of innobase storage engine
      sql/ha_innodb.h:
        - ctor moved to .cc to make use of archive handlerton
      sql/ha_myisam.cc:
        - add handlerton instance, init handler::ht with it
      sql/ha_myisam.h:
        - ctor moved to .cc to make use of MyISAM handlerton
      sql/ha_myisammrg.cc:
        - init handler::ht in the ctor
      sql/ha_myisammrg.h:
        - ctor moved to .cc to make use of MyISAM MERGE handlerton
      sql/ha_ndbcluster.cc:
        - init handlerton::flags and handler::ht
      sql/handler.cc:
        - drop support for ISAM storage engine, which was removed from 5.0
        - close all "transient" cursors at COMMIT/ROLLBACK. A "transient"
          SQL level cursor is a cursor that uses tables that have a transaction-
          specific state.
      sql/handler.h:
        - extend struct handlerton with flags, add handlerton *ht to every
          handler instance.
      sql/lock.cc:
        - extend mysql_lock_tables to send error to the client if 
          thr_multi_lock returns a timeout or a deadlock error.
      sql/mysqld.cc:
        - add server option --table_lock_wait_timeout (in seconds)
      sql/set_var.cc:
        - add new global variable 'table_lock_wait_timeout' to specify
        a wait timeout for table-level locks of MySQL (in seconds). The default
        timeout is 50 seconds. The timeout is active only if the connection
        has open cursors.
      sql/sql_class.cc:
        - implement Statement_map::close_transient_cursors
        - safety suggests that we need an assert ensuring 
         llock_info->n_cursors is functioning properly, adjust destruction of
         the Statement_map to allow such assert in THD::~THD
      sql/sql_class.h:
        - add support for Cursors registry to Statement map.
      sql/sql_prepare.cc:
        - maintain a list of cursors that must be closed at commit/rollback.
      sql/sql_select.cc:
        - extend class Cursor to support specific at-COMMIT/ROLLBACK behavior.
        If a cursor uses tables of a storage engine that 
        invalidates all open tables at COMMIT/ROLLBACK, it must be closed
        before COMMIT/ROLLBACK is executed.
      sql/sql_select.h:
        - add an own lock_id and commit/rollback status flag to class Cursor
      tests/mysql_client_test.c:
        A test case for Bug#10760 and complementary issues: test a simple
        deadlock case too.
      mysql-test/var:
        New BitKeeper file ``mysql-test/var''
      5f07c9d2
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · edcdd6cf
      unknown authored
      into  mysql.com:/home/dlenev/src/mysql-5.0-tn
      
      edcdd6cf
    • unknown's avatar
      After merge fix. · de1b1108
      unknown authored
      de1b1108
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · bc1fb7e1
      unknown authored
      into  mysql.com:/home/dlenev/src/mysql-5.0-tn
      
      
      mysql-test/r/information_schema.result:
        Auto merged
      mysql-test/t/information_schema.test:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_show.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      sql/share/errmsg.txt:
        Manual merge.
      bc1fb7e1
    • unknown's avatar
      Merge mysql.com:/home/jimw/my/mysql-5.0-readline · 3b4d10a2
      unknown authored
      into  mysql.com:/home/jimw/my/mysql-5.0-clean
      
      3b4d10a2
    • unknown's avatar
      Fix for bugs #5892/6182/8751/8758/10994 (based on Antony's patch) · e4bbce4f
      unknown authored
        "Triggers have the wrong namespace"
        "Triggers: duplicate names allowed"
        "Triggers: CREATE TRIGGER does not accept fully qualified names"
        "SHOW TRIGGERS"
      
      
      mysql-test/r/information_schema.result:
        Added tests for new INFORMATION_SCHEMA.TRIGGERS view and SHOW TRIGGERS command.
      mysql-test/r/information_schema_db.result:
        INFORMATION_SCHEMA.TRIGGERS view was added.
      mysql-test/r/rpl_sp.result:
        Now DROP TRIGGER interprets first part of trigger identifier as database
        name and not as table name. Adjusted tests properly.
      mysql-test/r/trigger.result:
        Now DROP TRIGGER interprets first part of trigger identifier as database
        name and not as table name. Adjusted tests properly.
        Added test checking that triggers have database wide namespace.
        Added test for bug #8791 "Triggers: Allowed to create triggers on a subject
        table in a different DB".
      mysql-test/r/view.result:
        Now DROP TRIGGER interprets first part of trigger identifier as database
        name and not as table name. Adjusted tests properly.
      mysql-test/t/information_schema.test:
        Added tests for new INFORMATION_SCHEMA.TRIGGERS view and SHOW TRIGGERS command.
      mysql-test/t/rpl_sp.test:
        Now DROP TRIGGER interprets first part of trigger identifier as database
        name and not as table name. Adjusted tests properly.
      mysql-test/t/trigger.test:
        Now DROP TRIGGER interprets first part of trigger identifier as database
        name and not as table name. Adjusted tests properly.
        Added test checking that triggers have database wide namespace.
        Added test for bug #8791 "Triggers: Allowed to create triggers on a subject
        table in a different DB".
      mysql-test/t/view.test:
        Now DROP TRIGGER interprets first part of trigger identifier as database
        name and not as table name. Adjusted tests properly.
      sql/handler.cc:
        Added .TRN tho the list of known file extensions assoicated with tables.
      sql/item.h:
        trg_action_time_type/trg_event_type enums:
          Added TRG_ACTION_MAX/TRG_EVENT_MAX elements which should be used instead of
          magical values in various loops where we iterate through all types of trigger
          action times or/and trigger event types.
      sql/lex.h:
        Added new symbol "TRIGGERS".
      sql/mysql_priv.h:
        Added declaration of constant holding extension for trigger name (.TRN) files.
      sql/mysqld.cc:
        Added statistical variable for SHOW TRIGGERS command.
      sql/share/errmsg.txt:
        Added error message saying that one attempts to create trigger in wrong schema.
      sql/sp.cc:
        Replaced magical values with TRG_EVENT_MAX/TRG_ACTION_MAX constants.
      sql/sql_base.cc:
        open_unireg_entry():
          Now Table_triggers_list::check_n_load() has one more argument which
          controls whether we should prepare Table_triggers_list with fully functional
          triggers or load only their names.
      sql/sql_lex.h:
        Added element for new SHOW TRIGGERS command to enum_sql_command enum.
      sql/sql_parse.cc:
        prepare_schema_table():
          Added support for SHOW TRIGGERS statement.
      sql/sql_show.cc:
        Added new INFORMATION_SCHEMA.TRIGGERS view and SHOW TRIGGERS command.
      sql/sql_table.cc:
        mysql_rm_table_part2():
          Replaced simple deletion of .TRG file with call to
          Table_triggers_list::drop_all_triggers which will also delete .TRN files
          for all triggers associated with table.
      sql/sql_trigger.cc:
        Now triggers have database wide namespace. To support it we create special .TRN
        file with same name as trigger for each trigger. This file contains name of
        trigger's table so one does not need to specify it explicitly in DROP TRIGGER.
        Moreover DROP TRIGGER treats first part of trigger identifier as database name
        now. Updated mysql_create_or_drop_trigger() routine and
        Table_triggers_list::create_trigger()/drop_trigger()/check_n_load() methods
        accordingly. Added add_table_for_trigger() routine and
        Table_triggers_list::drop_all_triggers() method.
        
        Added Table_triggers_list::get_trigger_info() for obtaining trigger metadata.
      sql/sql_trigger.h:
        Table_triggers_list:
          Use TRG_EVENT_MAX, TRG_ACTION_MAX instead of magic values.
          Added get_trigger_info() method for obtaining trigger's meta-data.
          Added drop_all_triggers() method which drops all triggers for table.
          Added declarations of trg_action_time_type_names/trg_event_type_names
          arrays which hold names of triggers action time types  and event types.
      sql/sql_yacc.yy:
        Changed grammar for CREATE/DROP TRIGGER to support database wide trigger
        namespace. Added new SHOW TRIGGERS statement.
      sql/table.h:
        enum enum_schema_tables:
          Added constant for new INFORMATION_SCHEMA.TRIGGERS view.
      e4bbce4f
    • unknown's avatar
      Bug#10932 - Building server with key limit of 128, makes test cases fail · 42707b9e
      unknown authored
      This patch allows to configure MyISAM for 128 indexes per table.
      The main problem is the key_map, wich is implemented as an ulonglong.
      To get rid of the limit and keep the efficient and flexible
      implementation, the highest bit is now used for all upper keys.
      This means that the lower keys can be disabled and enabled 
      individually as usual and the high keys can only be disabled and
      enabled as a block. That way the existing test suite is still
      applicable, while more keys work, though slightly less efficient.
      To really get more than 64 keys, some defines need to be changed.
      Another patch will address this.
      
      
      include/my_bitmap.h:
        Bug#10932 - Building server with key limit of 128, makes test cases fail
        Added the declaration for a function that extends the highest bit value
        to all upper bits of a bigger bitmap.
      include/myisam.h:
        Bug#10932 - Building server with key limit of 128, makes test cases fail
        Changed MI_MAX_POSSIBLE_KEY to what it was meant for.
        Added a bunch of macros to handle the MyISAM key_map.
      myisam/mi_check.c:
        Bug#10932 - Building server with key limit of 128, makes test cases fail
        Changed key_map access to use the new macros.
      myisam/mi_create.c:
        Bug#10932 - Building server with key limit of 128, makes test cases fail
        Changed key_map access to use the new macros.
      myisam/mi_delete.c:
        Bug#10932 - Building server with key limit of 128, makes test cases fail
        Changed key_map access to use the new macros.
      myisam/mi_extra.c:
        Bug#10932 - Building server with key limit of 128, makes test cases fail
        Changed key_map access to use the new macros.
      myisam/mi_open.c:
        Bug#10932 - Building server with key limit of 128, makes test cases fail
        Changed key_map access to use the new macros.
        Changed pointer types from signed char* to unsigned char*.
      myisam/mi_preload.c:
        Bug#10932 - Building server with key limit of 128, makes test cases fail
        Changed key_map access to use the new macros.
      myisam/mi_rsame.c:
        Bug#10932 - Building server with key limit of 128, makes test cases fail
        Changed key_map access to use the new macros.
      myisam/mi_rsamepos.c:
        Bug#10932 - Building server with key limit of 128, makes test cases fail
        Changed key_map access to use the new macros.
      myisam/mi_search.c:
        Bug#10932 - Building server with key limit of 128, makes test cases fail
        Changed key_map access to use the new macros.
      myisam/mi_update.c:
        Bug#10932 - Building server with key limit of 128, makes test cases fail
        Changed key_map access to use the new macros.
      myisam/mi_write.c:
        Bug#10932 - Building server with key limit of 128, makes test cases fail
        Changed key_map access to use the new macros.
      myisam/myisamchk.c:
        Bug#10932 - Building server with key limit of 128, makes test cases fail
        Changed key_map access to use the new macros.
      myisam/myisamdef.h:
        Bug#10932 - Building server with key limit of 128, makes test cases fail
        Changed pointer types from signed char* to unsigned char*.
      myisam/myisamlog.c:
        Bug#10932 - Building server with key limit of 128, makes test cases fail
        Changed key_map access to use the new macros.
      myisam/myisampack.c:
        Bug#10932 - Building server with key limit of 128, makes test cases fail
        Changed key_map access to use the new macros.
      myisam/sort.c:
        Bug#10932 - Building server with key limit of 128, makes test cases fail
        Changed key_map access to use the new macros.
      mysys/my_bitmap.c:
        Bug#10932 - Building server with key limit of 128, makes test cases fail
        Added a function that extends the highest bit value
        to all upper bits of a bigger bitmap.
      sql/ha_myisam.cc:
        Bug#10932 - Building server with key limit of 128, makes test cases fail
        Changed key_map access to use the new macros.
      sql/sql_bitmap.h:
        Bug#10932 - Building server with key limit of 128, makes test cases fail
        Added a method that extends the highest bit value
        to all upper bits of a bigger bitmap.
      42707b9e
    • unknown's avatar
      Fix for bug#11057 information_schema: columns table has some questionable contents · 4aac980f
      unknown authored
        fixed BLOB, TEXT(wrong maximum length), BIT and integer types(wrong numeric_precision value)
      
      4aac980f
    • unknown's avatar
      Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-5.0 · 98f08e58
      unknown authored
      into mysql.com:/home/gluh/MySQL/Merge/5.0
      
      98f08e58
    • unknown's avatar
      Bug#11577 'show procedure/function status' doesn't work for user with limited access · 855aafe0
      unknown authored
         changed 'SHOW PROCEDURE' behavoiur to be like INFORMATION_SCHEMA.routines
      
      855aafe0
    • unknown's avatar
      Remove the ignored files. · ba9deb82
      unknown authored
      
      BitKeeper/deleted/.del-mkinstalldirs~6f3fb2535a57b49a:
        Delete: mkinstalldirs
      BitKeeper/deleted/.del-mkinstalldirs~cc63133db18af2f2:
        Delete: innobase/mkinstalldirs
      ba9deb82
    • unknown's avatar
      Added mkinstalldirs (an auxiliary autotools symlink) to the ignore · 2cc6a2ea
      unknown authored
      list.
      
      
      BitKeeper/etc/ignore:
        Added innobase/mkinstalldirs mkinstalldirs to the ignore list
      innobase/mkinstalldirs:
        Ignore
      mkinstalldirs:
        Ignore
      2cc6a2ea
    • unknown's avatar
      Merge mysql.com:/Users/emurphy/src/bk-clean/mysql-5.0 · adff81d3
      unknown authored
      into  mysql.com:/Users/emurphy/src/work/mysql-5.0-bug11567
      
      adff81d3
    • unknown's avatar
      Merge pgalbraith@bk-internal.mysql.com:/home/bk/mysql-5.0 · 685c3ac5
      unknown authored
      into  radha.local:/Users/patg/mysql-build/mysql-5.0
      
      685c3ac5
    • unknown's avatar
      Merge mysqldev@production.mysql.com:jimw/mysql-5.0-readline · f0bccc62
      unknown authored
      into  mysql.com:/home/jimw/my/mysql-5.0-readline
      
      f0bccc62
    • unknown's avatar
      Eric's implentation of OPTIMIZE TABLE and REPAIR TABLE, · 4dbde2ca
      unknown authored
      as well as changes to the test.
      
      
      mysql-test/r/federated.result:
        New test results
      mysql-test/t/federated.test:
        Removed explains per brian's suggestion since on his 64-bit amd, you get 
        different information, something to be ironed out later, as well as it 
        having nothing to do with federated.
      sql/ha_federated.cc:
        - Eric Herman's implementation of repair and optimize!!!
        - Eric's changes to 1EQ0 to FALSE
      sql/ha_federated.h:
        Eric's addition of LEN for each SQL string tokens.
      4dbde2ca
    • unknown's avatar
      Reimplement use of "config_readline.h" to get readline configuration. · 82474fa9
      unknown authored
      
      cmd-line-utils/readline/bind.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/callback.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/compat.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/complete.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/display.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/funmap.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/histexpand.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/histfile.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/history.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/histsearch.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/input.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/isearch.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/keymaps.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/kill.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/macro.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/mbutil.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/misc.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/nls.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/parens.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/readline.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/rltty.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/savestring.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/search.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/shell.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/signals.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/terminal.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/text.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/tilde.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/undo.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/util.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/vi_mode.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/xmalloc.c:
        Include local config_readline.h instead of config.h
      82474fa9
    • unknown's avatar
      Upgrade bundled readline to version 5.0. · ceb92f86
      unknown authored
      
      cmd-line-utils/readline/INSTALL:
        Import readline-5.0
      cmd-line-utils/readline/Makefile.am:
        Import readline-5.0
      cmd-line-utils/readline/README:
        Import readline-5.0
      cmd-line-utils/readline/bind.c:
        Import readline-5.0
      cmd-line-utils/readline/callback.c:
        Import readline-5.0
      cmd-line-utils/readline/chardefs.h:
        Import readline-5.0
      cmd-line-utils/readline/complete.c:
        Import readline-5.0
      cmd-line-utils/readline/configure.in:
        Import readline-5.0
      cmd-line-utils/readline/display.c:
        Import readline-5.0
      cmd-line-utils/readline/funmap.c:
        Import readline-5.0
      cmd-line-utils/readline/histexpand.c:
        Import readline-5.0
      cmd-line-utils/readline/histfile.c:
        Import readline-5.0
      cmd-line-utils/readline/history.c:
        Import readline-5.0
      cmd-line-utils/readline/history.h:
        Import readline-5.0
      cmd-line-utils/readline/histsearch.c:
        Import readline-5.0
      cmd-line-utils/readline/input.c:
        Import readline-5.0
      cmd-line-utils/readline/isearch.c:
        Import readline-5.0
      cmd-line-utils/readline/keymaps.c:
        Import readline-5.0
      cmd-line-utils/readline/kill.c:
        Import readline-5.0
      cmd-line-utils/readline/macro.c:
        Import readline-5.0
      cmd-line-utils/readline/mbutil.c:
        Import readline-5.0
      cmd-line-utils/readline/misc.c:
        Import readline-5.0
      cmd-line-utils/readline/nls.c:
        Import readline-5.0
      cmd-line-utils/readline/parens.c:
        Import readline-5.0
      cmd-line-utils/readline/posixdir.h:
        Import readline-5.0
      cmd-line-utils/readline/readline.c:
        Import readline-5.0
      cmd-line-utils/readline/readline.h:
        Import readline-5.0
      cmd-line-utils/readline/rldefs.h:
        Import readline-5.0
      cmd-line-utils/readline/rlmbutil.h:
        Import readline-5.0
      cmd-line-utils/readline/rlprivate.h:
        Import readline-5.0
      cmd-line-utils/readline/rlstdc.h:
        Import readline-5.0
      cmd-line-utils/readline/rltty.c:
        Import readline-5.0
      cmd-line-utils/readline/rltty.h:
        Import readline-5.0
      cmd-line-utils/readline/rltypedefs.h:
        Import readline-5.0
      cmd-line-utils/readline/search.c:
        Import readline-5.0
      cmd-line-utils/readline/shell.c:
        Import readline-5.0
      cmd-line-utils/readline/signals.c:
        Import readline-5.0
      cmd-line-utils/readline/terminal.c:
        Import readline-5.0
      cmd-line-utils/readline/text.c:
        Import readline-5.0
      cmd-line-utils/readline/tilde.c:
        Import readline-5.0
      cmd-line-utils/readline/undo.c:
        Import readline-5.0
      cmd-line-utils/readline/util.c:
        Import readline-5.0
      cmd-line-utils/readline/vi_mode.c:
        Import readline-5.0
      cmd-line-utils/readline/xmalloc.c:
        Import readline-5.0
      ceb92f86
  2. 18 Jul, 2005 19 commits
    • unknown's avatar
      After-merge fixes. · 67f4acba
      unknown authored
      
      configure.in:
        A hack to ensure that the tree compiles on SuSE 9.0 with -ansi -pedantic
      mysql-test/r/olap.result:
        More post-merge fixes.
      mysql-test/r/rpl_log.result:
        Post-merge fixes. Guilhem: please investigate.
      mysql-test/r/rpl_rotate_logs.result:
        Post-merge fixes. Guilhem: please investigate.
      mysql-test/t/olap.test:
        A post-merge fix.
      67f4acba
    • unknown's avatar
      Merge mysql.com:/Users/emurphy/src/bk-clean/mysql-5.0 · 5ec61874
      unknown authored
      into  mysql.com:/Users/emurphy/src/work/mysql-5.0-bug11567
      
      5ec61874
    • unknown's avatar
      BUG#11567 Fixed binlog tests on windows. · 27cd8320
      unknown authored
      
      sql/log_event.cc:
        BUG#11567 - mysqlbinlog tests failing on Windows.
        Cast was not working as intended with Windows compiler,
        the value of option was being printed instead. Reason
        is that config-win.h has '#define bool BOOL', and on
        Windows BOOL is a typedef for int, which means
        that all casts to bool are really a cast to int. Changed
        to explicitly print a 1 or 0 instead of using cast.
      27cd8320
    • unknown's avatar
      Merge mysql.com:/home/kostja/mysql/mysql-4.1-root · 5c7b9db0
      unknown authored
      into  mysql.com:/home/kostja/mysql/mysql-5.0-merge
      
      
      client/mysqltest.c:
        Auto merged
      mysql-test/r/rpl_log.result:
        Auto merged
      mysql-test/r/rpl_rotate_logs.result:
        Auto merged
      mysql-test/r/select.result:
        Auto merged
      mysql-test/r/timezone_grant.result:
        Auto merged
      mysql-test/t/ctype_utf8.test:
        Auto merged
      mysql-test/t/timezone_grant.test:
        Auto merged
      sql/sql_prepare.cc:
        Auto merged
      sql/sql_repl.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      tests/mysql_client_test.c:
        Auto merged
      configure.in:
        Manual merge
      mysql-test/r/olap.result:
        Manual merge
      mysql-test/t/olap.test:
        Manual merge
      mysql-test/t/select.test:
        Manual merge
      sql/mysqld.cc:
        Manual merge
      sql/sql_parse.cc:
        Manual merge
      5c7b9db0
    • unknown's avatar
      Fixed the ucs2 -> eucjpms conversion bug (bug#11717) · 1ffb2d6d
      unknown authored
      
      mysql-test/r/ctype_eucjpms.result:
        Added test for the bug#11717
      mysql-test/t/ctype_eucjpms.test:
        Added test for the bug#11717
      strings/ctype-eucjpms.c:
        Fixed the ucs2 -> eucjpms conversion bug
      1ffb2d6d
    • unknown's avatar
      Fix BUILD/autorun.sh to really bail out on error. · 21697831
      unknown authored
      
      BUILD/autorun.sh:
        Make exit on error actually work.
      21697831
    • unknown's avatar
      Fixes to previous changeset · f7687523
      unknown authored
      get_defaults_file() -> get_defaults_options()
      
      
      include/my_sys.h:
        Remove deleted function
      libmysql/libmysql.def:
        get_defaults_file() -> get_defaults_options()
      libmysqld/libmysqld.def:
        get_defaults_file() -> get_defaults_options()
      f7687523
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 2a860c06
      unknown authored
      into  mishka.local:/home/my/mysql-5.0
      
      
      client/mysqldump.c:
        Auto merged
      include/my_sys.h:
        Auto merged
      mysys/Makefile.am:
        Auto merged
      sql/ha_innodb.cc:
        Auto merged
      sql/ha_ndbcluster.cc:
        Auto merged
      sql/item_cmpfunc.cc:
        Auto merged
      sql/item_strfunc.cc:
        Auto merged
      sql/log.cc:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/opt_range.cc:
        Auto merged
      sql/sql_cache.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_prepare.cc:
        Auto merged
      sql/sql_show.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      tests/mysql_client_test.c:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      mysys/default.c:
        SCCS merged
      2a860c06
    • unknown's avatar
      Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0 · 4bf28e8c
      unknown authored
      into moonbone.local:/work/mysql-5.0-bug-11482
      
      4bf28e8c
    • unknown's avatar
      Merge moonbone.local:/work/mysql-4.1-bug-11868 · d82ce308
      unknown authored
      into moonbone.local:/work/mysql-5.0-bug-11482
      
      
      mysql-test/r/update.result:
        Auto merged
      mysql-test/t/update.test:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      d82ce308
    • unknown's avatar
      Merge grichter@bk-internal.mysql.com:/home/bk/mysql-5.0 · 79aa1bc6
      unknown authored
      into lmy002.wdf.sap.corp:/home/georg/work/mysql/prod/mysql-5.0
      
      79aa1bc6
    • unknown's avatar
      select.test: · 81eb0127
      unknown authored
        Changed test case comment to be more meaningful
      
      
      mysql-test/t/select.test:
        Changed test case comment to be more meaningful
      81eb0127
    • unknown's avatar
      Manual merge · 548bacd4
      unknown authored
      
      mysql-test/r/select.result:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      548bacd4
    • unknown's avatar
      Fix bug#11482 4.1.12 produces different resultset for a complex query · a77c2acf
      unknown authored
        than in previous 4.1.x
      
      Wrongly applied optimization were adding NOT NULL constraint which results in
      rejecting valid rows and reduced result set.
      
      The problem was that add_notnull_conds() while checking subquery were adding
      NOT NULL constraint to left joined table, to which, normally, optimization 
      don't have to be applied.
      
      
      sql/sql_select.cc:
        Fix bug #11482 Wrongly applied optimization was erroneously rejecting valid rows
        Constraint were added to optimization appliance test.
      mysql-test/t/select.test:
        Test case for bug #11482  Wrongly applied optimization was erroneously rejecting valid rows
      mysql-test/r/select.result:
        Test case for bug #11482  Wrongly applied optimization was erroneously rejecting valid rows
      a77c2acf
    • unknown's avatar
      Alleviate the autoconf requirement. · 85de918c
      unknown authored
      85de918c
    • unknown's avatar
      Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.1 · c985a743
      unknown authored
      into production.mysql.com:/nfstmp1/guilhem/mysql-4.1-prod
      
      c985a743
    • unknown's avatar
      Fix for BUG#12003 "assertion failure in testsuite (double lock of · 47edc3fb
      unknown authored
       LOCK_thread_count)" and for BUG#12004 "SHOW BINARY LOGS reports 0
      for the size of all binlogs but the current one".
      There are a lot of 4.1->5.0 unmerged changes (hardest are in the optimizer), can't merge; still pushing in 4.1 because my changes 
      are very small. Feel free to ask me if you have problems merging them.
      
      
      mysql-test/r/rpl_log.result:
        correcting binlog sizes
      mysql-test/r/rpl_rotate_logs.result:
        correcting binlog sizes
      sql/mysqld.cc:
        don't lock LOCK_thread_count when you already have it
      sql/sql_repl.cc:
        my_open() needs the complete name, not only the base name
      47edc3fb
    • unknown's avatar
      Cleanups during review · 2e9d6d7e
      unknown authored
      Changed defaults option --instance to --defaults-group-suffix
      Changed option handling to allow --defaults-file, --defaults-extra-file and --defaults-group-suffix to be given in any order
      Changed MYSQL_INSTANCE to MYSQL_GROUP_SUFFIX
      mysql_print_defaults now understands --defaults-group-suffix
      Remove usage of my_tempnam() (not safe function)
      if( -> if ( and while( to while (
      
      
      BitKeeper/deleted/.del-my_tempnam.c~a8562f15dad3012f:
        Delete: mysys/my_tempnam.c
      VC++Files/client/mysqlclient.dsp:
        Remove not used file my_tempnam.c
      VC++Files/client/mysqlclient_ia64.dsp:
        Remove not used file my_tempnam.c
      VC++Files/libmysql/libmysql.dsp:
        Remove not used file my_tempnam.c
      VC++Files/libmysql/libmysql_ia64.dsp:
        Remove not used file my_tempnam.c
      VC++Files/mysys/mysys.dsp:
        Remove not used file my_tempnam.c
      VC++Files/mysys/mysys_ia64.dsp:
        Remove not used file my_tempnam.c
      client/mysql.cc:
        Change to use get_defaults_options()
        Remove compiler warnings
      client/mysqldump.c:
        Indentation fixes
        Use quoted table name for 'primary_key_fields'
      extra/my_print_defaults.c:
        Add support for --defaults-group-suffix
        change to use get_default_options()
      extra/replace.c:
        Replace my_tempnam() with create_tmp_file() to allow us to remove my_tempnam.c
      include/config-win.h:
        Added DEFAULT_GROUP_SUFFIX_ENV
      include/my_sys.h:
        Change defaults_instance -> defaults_group_suffix
        Change get_defaults_files -> get_defaults_options
      libmysql/Makefile.shared:
        Added DEFAULT_GROUP_SUFFIX_ENV
      mysys/Makefile.am:
        Added DEFAULT_GROUP_SUFFIX_ENV
        Remove my_tempnam.c
      mysys/default.c:
        Changed --instance to --defaults-group-suffix
        Changed MYSQL_INSTANCE to MYSQL_GROUP_SUFFIX and moved the name to Makefile.am
        (mysys shouldn't by MySQL independent)
        Changed option handling to allow --defaults-file, --defaults-extra-file and --defaults-group-suffix to be given in any order
      mysys/default_modify.c:
        Optimized code to use allocated space more efficently
        Reduce code size
        Ensure that realloc() works independent of argument size
      mysys/my_bitmap.c:
        Added missing return
      sql/ha_innodb.cc:
        Change if( -> if (
      sql/ha_ndbcluster.cc:
        Change while( -> while (
      sql/item_cmpfunc.cc:
        Break loop early (simple optimization)
      sql/item_strfunc.cc:
        Change if( -> if (
      sql/log.cc:
        Fixed comment
      sql/mysqld.cc:
        Change if( -> if (
      sql/opt_range.cc:
        while( -> while (
        if( -> if (
      sql/parse_file.cc:
        Change if( -> if (
      sql/sql_cache.cc:
        while( -> while (
      sql/sql_parse.cc:
        Change if( -> if (
      sql/sql_prepare.cc:
        Added comment
      sql/sql_select.cc:
        while( -> while (
        Removed index variable by incrementing pointer
      sql/sql_show.cc:
        Change if( -> if (
      sql/sql_yacc.yy:
        Change if( -> if (
      tests/mysql_client_test.c:
        Added cast to first argument to bzero()
      2e9d6d7e
    • unknown's avatar