1. 15 Sep, 2003 4 commits
    • unknown's avatar
      Accept SLAVE START and STOP, even if deprecated. · cc17035d
      unknown authored
      
      sql/log_event.cc:
        undoing a wrong change (the case is handled in Rotate_log_event::exec_event)
      cc17035d
    • unknown's avatar
      Merge gbichot@213.136.52.20:/home/bk/mysql-4.1 · 7385c498
      unknown authored
      into mysql.com:/home/mysql_src/mysql-4.1
      
      
      7385c498
    • unknown's avatar
      type_nchar.result: · e0c70de4
      unknown authored
        I forgot to push it in the previous changeset.
      
      
      mysql-test/r/type_nchar.result:
        I forgot to push it in the previous changeset.
      e0c70de4
    • unknown's avatar
      New syntax: · bf6480ba
      unknown authored
      CREATE TABLE t1(a NVARCHAR(10))
      This is for compatibility with MSSQL, DB2, Informix and some other DBMSs.
      
      Note, standard SQL doesn't have "NVARCHAR" syntax.
      There are only these syntaxes in SQL2003:
       NATIONAL VARCHAR
       NCHAR VARCHAR
       NATIONAL CHARACTER VARYING 
       NCHAR VARYING
      
      - Tests were added for all the above syntaxes.
      
      
      sql/lex.h:
        New syntax:
        
        CREATE TABLE t1(a NVARCHAR(10))
        This is for compatibility with MSSQL, DB2, Informix and some other DBMSs.
        
        Note, standard SQL doesn't have "NVARCHAR" syntax.
        There are only these syntaxes in SQL2003:
         NATIONAL VARCHAR
         NCHAR VARCHAR
         NATIONAL CHARACTER VARYING 
         NCHAR VARYING
      sql/sql_yacc.yy:
        New syntax:
        
        CREATE TABLE t1(a NVARCHAR(10))
        This is for compatibility with MSSQL, DB2, Informix and some other DBMSs.
        
        Note, standard SQL doesn't have "NVARCHAR" syntax.
        There are only these syntaxes in SQL2003:
         NATIONAL VARCHAR
         NCHAR VARCHAR
         NATIONAL CHARACTER VARYING 
         NCHAR VARYING
      bf6480ba
  2. 14 Sep, 2003 3 commits
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 5d1b299f
      unknown authored
      into mysql.com:/home/dlenev/src/mysql-4.1-868
      
      
      5d1b299f
    • unknown's avatar
      Post merge fixes. Fixed tests after adding UNTIL conditions · b15eba88
      unknown authored
      to SHOW SLAVE STATUS.
      
      
      mysql-test/r/rpl000015.result:
        Fixed test after adding UNTIL conditions to SHOW SLAVE STATUS
      mysql-test/r/rpl_empty_master_crash.result:
        Fixed test after adding UNTIL conditions to SHOW SLAVE STATUS
      mysql-test/r/rpl_error_ignored_table.result:
        Fixed test after adding UNTIL conditions to SHOW SLAVE STATUS
      mysql-test/r/rpl_flush_log_loop.result:
        Fixed test after adding UNTIL conditions to SHOW SLAVE STATUS
      mysql-test/r/rpl_loaddata.result:
        Fixed test after adding UNTIL conditions to SHOW SLAVE STATUS
      mysql-test/r/rpl_log.result:
        Fixed test after adding UNTIL conditions to SHOW SLAVE STATUS
      mysql-test/r/rpl_log_pos.result:
        Fixed test after adding UNTIL conditions to SHOW SLAVE STATUS
      mysql-test/r/rpl_max_relay_size.result:
        Fixed test after adding UNTIL conditions to SHOW SLAVE STATUS
      mysql-test/r/rpl_openssl.result:
        Fixed test after adding UNTIL conditions to SHOW SLAVE STATUS
      mysql-test/r/rpl_redirect.result:
        Fixed test after adding UNTIL conditions to SHOW SLAVE STATUS
      mysql-test/r/rpl_replicate_do.result:
        Fixed test after adding UNTIL conditions to SHOW SLAVE STATUS
      mysql-test/r/rpl_reset_slave.result:
        Fixed test after adding UNTIL conditions to SHOW SLAVE STATUS
      mysql-test/r/rpl_rotate_logs.result:
        Fixed test after adding UNTIL conditions to SHOW SLAVE STATUS
      mysql-test/r/rpl_until.result:
        Post merge fix
      mysql-test/t/rpl_until.test:
        Post merge fix
      b15eba88
    • unknown's avatar
      e3b11b1d
  3. 13 Sep, 2003 7 commits
    • unknown's avatar
      Manual merge after commiting START SLAVE UNTIL · 1f82a0de
      unknown authored
      
      sql/lex.h:
        Auto merged
      sql/log.cc:
        Auto merged
      sql/log_event.cc:
        Auto merged
      sql/repl_failsafe.cc:
        Auto merged
      include/mysqld_error.h:
        Manual merge
      mysql-test/r/rpl000015.result:
        Manual merge
      mysql-test/r/rpl_empty_master_crash.result:
        Manual merge
      mysql-test/r/rpl_flush_log_loop.result:
        Manual merge
      mysql-test/r/rpl_log.result:
        Manual merge
      mysql-test/r/rpl_log_pos.result:
        Manual merge
      mysql-test/r/rpl_redirect.result:
        Manual merge
      mysql-test/r/rpl_replicate_do.result:
        Manual merge
      mysql-test/r/rpl_rotate_logs.result:
        Manual merge
      sql/share/czech/errmsg.txt:
        Manual merge
      sql/share/danish/errmsg.txt:
        Manual merge
      sql/share/dutch/errmsg.txt:
        Manual merge
      sql/share/english/errmsg.txt:
        Manual merge
      sql/share/estonian/errmsg.txt:
        Manual merge
      sql/share/french/errmsg.txt:
        Manual merge
      sql/share/german/errmsg.txt:
        Manual merge
      sql/share/greek/errmsg.txt:
        Manual merge
      sql/share/hungarian/errmsg.txt:
        Manual merge
      sql/share/italian/errmsg.txt:
        Manual merge
      sql/share/japanese/errmsg.txt:
        Manual merge
      sql/share/korean/errmsg.txt:
        Manual merge
      sql/share/norwegian-ny/errmsg.txt:
        Manual merge
      sql/share/norwegian/errmsg.txt:
        Manual merge
      sql/share/polish/errmsg.txt:
        Manual merge
      sql/share/portuguese/errmsg.txt:
        Manual merge
      sql/share/romanian/errmsg.txt:
        Manual merge
      sql/share/russian/errmsg.txt:
        Manual merge
      sql/share/serbian/errmsg.txt:
        Manual merge
      sql/share/slovak/errmsg.txt:
        Manual merge
      sql/share/spanish/errmsg.txt:
        Manual merge
      sql/share/swedish/errmsg.txt:
        Manual merge
      sql/share/ukrainian/errmsg.txt:
        Manual merge
      sql/slave.cc:
        Manual merge
      sql/slave.h:
        Manual merge
      sql/sql_repl.cc:
        Manual merge
      sql/sql_yacc.yy:
        Manual merge
      1f82a0de
    • unknown's avatar
      Implemented support for START SLAVE UNTIL (WL#868) · 2f8f0a7e
      unknown authored
      
      include/mysqld_error.h:
        Added error codes for warnings and error messages for START SLAVE UNTIL
      mysql-test/r/rpl000015.result:
        Fixed test because 3 new columns to SHOW SLAVE STATUS output were added
      mysql-test/r/rpl_empty_master_crash.result:
        Fixed test because 3 new columns to SHOW SLAVE STATUS output were added
      mysql-test/r/rpl_flush_log_loop.result:
        Fixed test because 3 new columns to SHOW SLAVE STATUS output were added
      mysql-test/r/rpl_log.result:
        Fixed test because 3 new columns to SHOW SLAVE STATUS output were added
      mysql-test/r/rpl_log_pos.result:
        Fixed test because 3 new columns to SHOW SLAVE STATUS output were added
      mysql-test/r/rpl_redirect.result:
        Fixed test because 3 new columns to SHOW SLAVE STATUS output were added
      mysql-test/r/rpl_replicate_do.result:
        Fixed test because 3 new columns to SHOW SLAVE STATUS output were added
      mysql-test/r/rpl_rotate_logs.result:
        Fixed test because 3 new columns to SHOW SLAVE STATUS output were added
      sql/lex.h:
        Added UNTIL symbol
      sql/log.cc:
        Invalidating until_log_name comparison result if group_relay_log_name is changed
      sql/log_event.cc:
        Invalidating until_log_name comparison result if group_master_log_name is changed
      sql/repl_failsafe.cc:
        Cancel until condition if LOAD MASTER DATA is executed
      sql/share/czech/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/danish/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/dutch/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/english/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/estonian/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/french/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/german/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/greek/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/hungarian/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/italian/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/japanese/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/korean/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/norwegian-ny/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/norwegian/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/polish/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/portuguese/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/romanian/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/russian/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/serbian/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/slovak/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/spanish/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/swedish/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/share/ukrainian/errmsg.txt:
        Added error and warning message for START SLAVE UNTIL
      sql/slave.cc:
        Fixed wrong locking order in init_relay_log_pos()
        Added until condition fields to SHOW SLAVE STATUS
        Added checking if UNTIL condition is reached 
        (added proper method, added its invocation, reorganized locking 
        in exec_relay_log_event() and next_event())
      sql/slave.h:
        Members in RELAY_LOG_INFO for storing UNTIL condition. Also 
        methods for for invalidation of cached UNTIL condition comparison
        results
      sql/sql_repl.cc:
        Now honoring UNTIL clause then starting slave thread. Proper 
        errors and warnings.
      sql/sql_yacc.yy:
        Added support for UNTIL clause in START SLAVE. This involved 
        extraction of some of master_defs to separate master_file_def
        non-terminal.
      2f8f0a7e
    • unknown's avatar
      Merge sinisa@bk-internal.mysql.com:/home/bk/mysql-4.1 · df8b036d
      unknown authored
      into sinisa.nasamreza.org:/mnt/work/mysql-4.1
      
      
      df8b036d
    • unknown's avatar
      Fixes for OPTION_FOUND_ROWS in UNION's · aedc0ab0
      unknown authored
      
      mysql-test/r/subselect.result:
        A warning added to subselect test due to the recent changes.
        
        UNION in sub-select returns the empty set, which is why this warning is
        a mistery to me.
      mysql-test/r/union.result:
        two changes.
        
        First one is due to the proper handling of LIMIT offset, limit in 
        UNION without all.
        
        Second is a change in behaviour due to the fact that ORDER by in a 
        UNION without braces is not now applicable to the last SELECT node.
        
        It can not be applied until one bug is fixed (after my vacation).
        
        Should be documented.
      aedc0ab0
    • unknown's avatar
      "normal" warning in test suite disabled · 7eb9d41c
      unknown authored
      bad merge fixed
      
      
      mysql-test/t/isam.test:
        bad merge fixed
      mysql-test/t/lock_tables_lost_commit.test:
        "normal" warning in test suite disabled
      mysql-test/t/subselect.test:
        "normal" warning in test suite disabled
      7eb9d41c
    • unknown's avatar
      error messages from english/errmsg.txt added to other languages. · 80206632
      unknown authored
      bug#1269
      
      
      sql/share/czech/errmsg.txt:
        error messages from english/errmsg.txt added to other languages.
        bug##1269
      sql/share/danish/errmsg.txt:
        error messages from english/errmsg.txt added to other languages.
        bug##1269
      sql/share/dutch/errmsg.txt:
        error messages from english/errmsg.txt added to other languages.
        bug##1269
      sql/share/estonian/errmsg.txt:
        error messages from english/errmsg.txt added to other languages.
        bug##1269
      sql/share/french/errmsg.txt:
        error messages from english/errmsg.txt added to other languages.
        bug##1269
      sql/share/german/errmsg.txt:
        error messages from english/errmsg.txt added to other languages.
        bug##1269
      sql/share/greek/errmsg.txt:
        error messages from english/errmsg.txt added to other languages.
        bug##1269
      sql/share/hungarian/errmsg.txt:
        error messages from english/errmsg.txt added to other languages.
        bug##1269
      sql/share/italian/errmsg.txt:
        error messages from english/errmsg.txt added to other languages.
        bug##1269
      sql/share/japanese/errmsg.txt:
        error messages from english/errmsg.txt added to other languages.
        bug##1269
      sql/share/korean/errmsg.txt:
        error messages from english/errmsg.txt added to other languages.
        bug##1269
      sql/share/norwegian-ny/errmsg.txt:
        error messages from english/errmsg.txt added to other languages.
        bug##1269
      sql/share/norwegian/errmsg.txt:
        error messages from english/errmsg.txt added to other languages.
        bug##1269
      sql/share/polish/errmsg.txt:
        error messages from english/errmsg.txt added to other languages.
        bug##1269
      sql/share/portuguese/errmsg.txt:
        error messages from english/errmsg.txt added to other languages.
        bug##1269
      sql/share/romanian/errmsg.txt:
        error messages from english/errmsg.txt added to other languages.
        bug##1269
      sql/share/russian/errmsg.txt:
        error messages from english/errmsg.txt added to other languages.
        bug##1269
      sql/share/serbian/errmsg.txt:
        error messages from english/errmsg.txt added to other languages.
        bug##1269
      sql/share/slovak/errmsg.txt:
        error messages from english/errmsg.txt added to other languages.
        bug##1269
      sql/share/spanish/errmsg.txt:
        error messages from english/errmsg.txt added to other languages.
        bug##1269
      sql/share/swedish/errmsg.txt:
        error messages from english/errmsg.txt added to other languages.
        bug##1269
      sql/share/ukrainian/errmsg.txt:
        error messages from english/errmsg.txt added to other languages.
        bug##1269
      80206632
    • unknown's avatar
      removed double procedure deletetion · 434faadc
      unknown authored
      434faadc
  4. 12 Sep, 2003 6 commits
    • unknown's avatar
      fixed memory leak (now JOIN cleaning procedure always called) · 5b0c15a4
      unknown authored
      
      sql/sql_select.cc:
        always clean JOIN
      5b0c15a4
    • unknown's avatar
      Merge sinisa@bk-internal.mysql.com:/home/bk/mysql-4.1 · 61663eaa
      unknown authored
      into sinisa.nasamreza.org:/mnt/work/mysql-4.1
      
      
      sql/sql_yacc.yy:
        Auto merged
      61663eaa
    • unknown's avatar
      Fix for a bug #1231 · 67dafb01
      unknown authored
      Parse error caused global ORDER BY to be initialized although it should
      not have been.
      
      
      67dafb01
    • unknown's avatar
      Monty's merge bug fixed · 11930efb
      unknown authored
      
      libmysqld/lib_sql.cc:
        these definitions moved to be after my_bool declaration
      11930efb
    • unknown's avatar
      Fix results for mix_innodb_myisam_binlog · 32a4e783
      unknown authored
      Optimize calls to current_thd
      
      
      mysql-test/r/mix_innodb_myisam_binlog.result:
        updated results
      mysql-test/t/mix_innodb_myisam_binlog.test:
        Fix for 4.1
      sql/ha_innodb.cc:
        Don't call current_thd in an assert that is not deleted in release version
        (Because current_thd is slow)
      32a4e783
    • unknown's avatar
      Optimize thai character handling · 3500763b
      unknown authored
      Remove sel000xxxx tests
      After merge fixes
      
      
      BitKeeper/deleted/.del-sel000033.test~3971fbe746eec069:
        Delete: mysql-test/t/sel000033.test
      BitKeeper/deleted/.del-sel000033.result~56d1d02d72b94602:
        Delete: mysql-test/r/sel000033.result
      BitKeeper/deleted/.del-sel000100.result~84ed46856cb3a69f:
        Delete: mysql-test/r/sel000100.result
      BitKeeper/deleted/.del-sel000100.test~548501cad19a1a59:
        Delete: mysql-test/t/sel000100.test
      mysql-test/r/distinct.result:
        Merge test with sel000100
      mysql-test/r/grant.result:
        Update result after merge
      mysql-test/r/range.result:
        After merge fix
        Merge test with sel000033
      mysql-test/t/distinct.test:
        Merge test with sel000100
      mysql-test/t/range.test:
        Merge test with sel000033
      sql/log_event.cc:
        Remove duplicate allocation
      sql/sql_select.cc:
        After merge fixes
      strings/ctype-tis620.c:
        Remove usage of strnlen
        Optimize code and make it \0 safe
      3500763b
  5. 11 Sep, 2003 8 commits
    • unknown's avatar
      Merge gbichot@213.136.52.20:/home/bk/mysql-4.1 · d410f851
      unknown authored
      into mysql.com:/home/mysql_src/mysql-4.1
      
      
      d410f851
    • unknown's avatar
      merge with 4.1 tree · 41824a35
      unknown authored
      
      client/mysqltest.c:
        Auto merged
      include/mysql.h:
        Auto merged
      libmysql/errmsg.c:
        Auto merged
      libmysql/libmysql.c:
        Auto merged
      mysql-test/mysql-test-run.sh:
        Auto merged
      sql/field.cc:
        Auto merged
      sql/item.cc:
        Auto merged
      sql/item.h:
        Auto merged
      sql/item_cmpfunc.cc:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/item_func.h:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/share/portuguese/errmsg.txt:
        Auto merged
      sql/share/spanish/errmsg.txt:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_table.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      tests/client_test.c:
        Auto merged
      41824a35
    • unknown's avatar
      merge with 4.0.15 · d32bdcb1
      unknown authored
      
      BitKeeper/etc/logging_ok:
        auto-union
      BitKeeper/deleted/.del-mysql_fix_privilege_tables.sql:
        Delete: scripts/mysql_fix_privilege_tables.sql
      include/mysql.h:
        Auto merged
      myisam/mi_open.c:
        Auto merged
      myisam/mi_update.c:
        Auto merged
      myisam/myisampack.c:
        Auto merged
      mysql-test/r/bdb.result:
        Auto merged
      mysql-test/r/grant.result:
        Auto merged
      mysql-test/t/bdb.test:
        Auto merged
      mysql-test/t/grant.test:
        Auto merged
      mysql-test/t/range.test:
        Auto merged
      scripts/make_win_src_distribution.sh:
        Auto merged
      sql/ha_berkeley.cc:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/opt_range.cc:
        Auto merged
      support-files/mysql.spec.sh:
        Auto merged
      d32bdcb1
    • unknown's avatar
      After merge fixes. · dd0d199e
      unknown authored
      Note that mix_innodb_myisam_binlog and union fails after this patch (Will be fixed shortly by maintaners of this code)
      
      
      client/mysql.cc:
        After merge fix
      include/mysql.h:
        Some additions to MYSQL_BIND for cleaner prepared statement code
      libmysql/libmysql.c:
        mysql_prepare_result -> mysql_get_metadata()
        Added test for offset overflow when using mysql_fetch_column()
        Cleaned up mysql_fetch_column()
        Optimized fetch_result() usage
      mysql-test/r/func_group.result:
        Updated results after merge
      mysql-test/r/func_test.result:
        Updated results after merge
      mysql-test/r/grant.result:
        Updated results after merge
      mysql-test/r/loaddata.result:
        Updated results after merge
      mysql-test/r/lowercase_table.result:
        Updated results after merge
      mysql-test/r/mix_innodb_myisam_binlog.result:
        Updated results after merge (note that this is still not correct; Need patch to mysqld to fix this properly)
      mysql-test/r/myisam.result:
        Updated results after merge
      mysql-test/r/range.result:
        Updated results after merge
      mysql-test/r/rpl_loaddata.result:
        Updated results after merge
      mysql-test/r/rpl_loaddata_rule_m.result:
        Updated results after merge
      mysql-test/r/rpl_loaddata_rule_s.result:
        Updated results after merge
      mysql-test/r/rpl_log.result:
        Updated results after merge
      mysql-test/r/union.result:
        Updated results after merge
      mysql-test/t/lowercase_table.test:
        Update after merge
      mysql-test/t/myisam.test:
        Update after merge
      mysql-test/t/union.test:
        Update after merge
      sql-bench/compare-results.sh:
        Fix for now output format
      sql/field.h:
        Added is_null_in_record() to make ha_innodb.cc code more general
      sql/ha_innodb.cc:
        Removed some functions that uses inernal (private) MySQL information
      sql/item_cmpfunc.cc:
        After merge fix
      sql/log_event.cc:
        After merge fix; (Some code should be checked by Guilhem)
      sql/opt_range.cc:
        Simple optimzation and after merge fixes
      sql/slave.cc:
        After merge fix
      sql/sql_acl.cc:
        After merge fix + code cleanup
      sql/sql_select.cc:
        After merge fix
      sql/sql_show.cc:
        After merge fix
      sql/sql_table.cc:
        After merge fix
        Cleanup of mysql_checksum_table()
      sql/sql_union.cc:
        After merge fixes.
        Note that after this the union test still fails; Will be fixed shortly...
      tests/client_test.c:
        mysql_prepare_result() -> mysql_get_metadata()
      dd0d199e
    • unknown's avatar
    • unknown's avatar
      SCRUM · d6f15e9d
      unknown authored
      embedded&client library
      some fixes: zero at the end of the data added
      mysql_list_fields became 'virtual'
      
      
      include/mysql.h:
        mysql_list_fields became 'virtual'
      libmysql/client_settings.h:
        in client library we need proper implementation for list_fields
      libmysql/libmysql.c:
        implementation for remote server
      libmysqld/lib_sql.cc:
        we still need zero at the end of the data in client (see mysql.cc).
        I feel it should be changed
      libmysqld/libmysqld.c:
        implementation for embedded server
      sql-common/client.c:
        cli_list_fields member set for client library
      sql/client_settings.h:
        we don't need mysql_list_fields in mini_client code
      d6f15e9d
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.0 · 3f6d78f6
      unknown authored
      into mashka.mysql.fi:/home/my/mysql-4.0
      
      
      3f6d78f6
    • unknown's avatar
      Remove not used define (my_strxfrm) · 876b47ee
      unknown authored
      
      include/m_ctype.h:
        Remove not used define
      876b47ee
  6. 10 Sep, 2003 12 commits