1. 15 May, 2003 1 commit
    • unknown's avatar
      Scrum task 845. Thi is a behaviour change : · ec72bda5
      unknown authored
      now by default, FLUSH, OPTIMIZE, ANALYZE, REPAIR commands are written to the
      binlog, unless the new NO_WRITE_TO_BINLOG keyword was used :
      OPTIMIZE NO_WRITE_TO_BINLOG table t;
      
      Previously these commands were never written to the binlog, but there are
      2 reasons to change this :
      - the RENAME TABLE in MERGE table bug (#175) on slave
      - the possible "differently optimised queries may lead to different
      updates on the master and slave" bug, until we have automatic ORDER BY.
      
      FLUSH LOGS/SLAVE/MASTER/TABLES WITH READ LOCK are never written to the binlog.
      New test for the new logging behaviour.
      Other small change : reload_acl_and_cache() and reset_slave() don't send their errors themselves,
      this is more usual.
      
      
      mysql-test/mysql-test-run.sh:
        rpl_flush_tables.test generates 'table xx is open on rename'.
        This is normal and done on purpose, so don't report it.
      sql/lex.h:
        New keyword NO_WRITE_TO_BINLOG
      sql/mysql_priv.h:
        reload_acl_and_cache() now decides if we want to write the FLUSH command
        to the binlog or not (FLUSH MASTER, FLUSH SLAVE, FLUSH TABLES
        WITH READ LOCK, FLUSH LOGS cannot go into the binlog).
      sql/mysqld.cc:
        updated for new prototype of reload_acl_and_cache().
      sql/sql_lex.h:
        New boolean no_write_to_binlog in the lex structure.
      sql/sql_parse.cc:
        reload_acl_and_cache() now does not send its errors itself;
        it saves the error and the caller sends it.
        FLUSH, OPTIMIZE, ANALYZE, REPAIR commands don't write to the binlog
        if the NO_WRITE_TO_BINLOG keyword was used.
      sql/sql_repl.cc:
        reset_slave() does not send its errors himself.
      sql/sql_yacc.yy:
        New optional keyword NO_WRITE_TO_BINLOG for OPTIMIZE/ANALYZE/REPAIR/FLUSH :
        OPTIMIZE NO_WRITE_TO_BINLOG TABLE t;
        ANALYZE NO_WRITE_TO_BINLOG TABLE t;
        REPAIR NO_WRITE_TO_BINLOG TABLE t;
        FLUSH NO_WRITE_TO_BINLOG TABLE t;
      ec72bda5
  2. 13 May, 2003 2 commits
    • unknown's avatar
      Proper replication of CONNECTION_ID() and 4.1 PASSWORD() (bugs 177 and 344), · 40e4b8d0
      unknown authored
      new test for this.
      
      
      sql/item_create.cc:
        Proper replication of CONNECTION_ID() (bug 177).
        This is just for replication; mysqlbinlog|mysql still does not work
        with CONNECTION_ID(), it will wait for row-level binlogging.
      sql/item_strfunc.cc:
        Proper replication of the new 4.1 PASSWORD() (bug 344)
      40e4b8d0
    • unknown's avatar
      Give warning if MySQL doesn't honor given storage engine · 9f22d166
      unknown authored
      Allow syntax CREATE TABLE t1 (LIKE t2)
      
      
      BUILD/compile-pentium-debug-max:
        Disable isam
      BUILD/compile-pentium-valgrind-max:
        Disable isam
      include/mysqld_error.h:
        New error
      mysql-test/r/bdb.result:
        new error message
      mysql-test/r/innodb.result:
        new error message
      mysql-test/r/subselect.result:
        New test
      mysql-test/r/variables.result:
        New test
      mysql-test/r/warnings.result:
        Test of warning if MySQL creates table with another handler than specified
      mysql-test/t/innodb.test:
        Added test case for derivied tables
      mysql-test/t/subselect.test:
        New test
      mysql-test/t/variables-master.opt:
        Fixed wrong parameter
      mysql-test/t/warnings.test:
        Test if creating handler of not existing table type
      sql/ha_isam.cc:
        Added option --skip-isam
      sql/ha_isam.h:
        Added option --skip-isam
      sql/handler.cc:
        Added option --skip-isam
      sql/item.cc:
        Deleted probably wrong bug fix
      sql/mysqld.cc:
        Added option --skip-isam
      sql/share/czech/errmsg.txt:
        Added missing ','
      sql/share/danish/errmsg.txt:
        Added missing ','
      sql/share/dutch/errmsg.txt:
        Added missing ','
      sql/share/english/errmsg.txt:
        Added missing ','
        changed table handler -> storage engine
      sql/share/estonian/errmsg.txt:
        Added missing ','
      sql/share/french/errmsg.txt:
        Added missing ','
      sql/share/german/errmsg.txt:
        Added missing ','
      sql/share/greek/errmsg.txt:
        Added missing ','
      sql/share/hungarian/errmsg.txt:
        Added missing ','
      sql/share/italian/errmsg.txt:
        Added missing ','
      sql/share/japanese/errmsg.txt:
        Added missing ','
      sql/share/korean/errmsg.txt:
        Added missing ','
      sql/share/norwegian-ny/errmsg.txt:
        Added missing ','
      sql/share/norwegian/errmsg.txt:
        Added missing ','
      sql/share/polish/errmsg.txt:
        Added missing ','
      sql/share/portuguese/errmsg.txt:
        Added missing ','
      sql/share/romanian/errmsg.txt:
        Added missing ','
      sql/share/russian/errmsg.txt:
        Added missing ','
      sql/share/serbian/errmsg.txt:
        Added missing ','
      sql/share/slovak/errmsg.txt:
        Added missing ','
      sql/share/spanish/errmsg.txt:
        Added missing ','
      sql/share/swedish/errmsg.txt:
        Added missing ','
      sql/share/ukrainian/errmsg.txt:
        Added missing ','
      sql/sql_acl.cc:
        Fix bug in access checking of derived tables
      sql/sql_base.cc:
        Indentation change
      sql/sql_parse.cc:
        Fix bug in access checking of derived tables
      sql/sql_select.cc:
        Fixed bug in new sub select optimization
      sql/sql_table.cc:
        Give warning if MySQL doesn't honor given storage engine
      sql/sql_yacc.yy:
        Allow syntax CREATE TABLE t1 (LIKE t2).
      9f22d166
  3. 06 May, 2003 2 commits
  4. 05 May, 2003 2 commits
    • unknown's avatar
      merge · 429c488f
      unknown authored
      
      sql/item.cc:
        Auto merged
      sql/item_sum.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/unireg.h:
        Auto merged
      429c488f
    • unknown's avatar
      Removed compiler warnings · b96aaea7
      unknown authored
      Fixed memory leak in new filesort code
      Optimzed sub selects to use keys with outer references.
      Increased max tables in join to 62
      
      
      client/Makefile.am:
        Remve test programs
      myisam/mi_check.c:
        Remove compiler warnings
      myisam/mi_delete.c:
        Remove 'rnd' variable to make usage repeatable
      myisam/mi_open.c:
        Remove 'rnd' variable to make usage repeatable
      myisam/mi_write.c:
        Remove 'rnd' variable to make usage repeatable
      myisam/myisamdef.h:
        Remove 'rnd' variable to make usage repeatable
      myisam/myisamlog.c:
        Remove 'rnd' variable to make usage repeatable
      mysql-test/r/subselect.result:
        new test
      mysql-test/t/join.test:
        Updated test
      mysql-test/t/subselect.test:
        new test
      sql/filesort.cc:
        Added function to free buffers allocated by filesort
      sql/item.cc:
        Sub select optimization
      sql/item_cmpfunc.cc:
        Sub select optimization
      sql/item_subselect.cc:
        Sub select optimization
      sql/item_sum.cc:
        Removed compiler warnings
      sql/item_sum.h:
        Simple code cleanup
      sql/log.cc:
        Removed compiler warning
      sql/mysql_priv.h:
        Made table_map ulonglong to allow 62 tables in join
      sql/records.cc:
        Moved free of filesort buffers to own function
      sql/sql_select.cc:
        subselect optimization
        Call filesort_free_buffers() to free memory from filesort
      sql/unireg.h:
        Sub select optimization
      b96aaea7
  5. 03 May, 2003 3 commits
  6. 02 May, 2003 2 commits
  7. 30 Apr, 2003 2 commits
  8. 28 Apr, 2003 3 commits
    • unknown's avatar
      Documentation fixed according bug 185 fixing patch (1.1551 03/04/23 00: · 4ceb2578
      unknown authored
      
      Docs/internals.texi:
        Documentation fixed according bug 185 fixing patch (1.1551 03/04/23 00:01:19)
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      4ceb2578
    • unknown's avatar
      Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.1 · c9a7f29b
      unknown authored
      into deer.mysql.r18.ru:/home/hf/work/mysql-4.1.cursor
      
      
      BitKeeper/etc/ignore:
        auto-union
      c9a7f29b
    • unknown's avatar
      SCRUM · c13f5558
      unknown authored
      Protocol_cursor task
      net_field_length definitions trimmed with Monty's suggestions
      
      
      BitKeeper/etc/ignore:
        Added sql/pack.c to the ignore list
      include/my_global.h:
        my_ulonglong definition moved here from mysql.h
      include/mysql.h:
        we define my_ulonglong here only if no global.h included
      include/mysql_com.h:
        net_field_length_ll definition is here now
      sql/mini_client.cc:
        unnecessary cast removed
      c13f5558
  9. 26 Apr, 2003 3 commits
    • unknown's avatar
      Post-merge fix. · 55e233ad
      unknown authored
      55e233ad
    • unknown's avatar
      merge fix · 0c94064b
      unknown authored
      
      sql/handler.h:
        Auto merged
      sql/item.cc:
        Auto merged
      sql/item_strfunc.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      sql/sql_lex.cc:
        Auto merged
      sql/sql_lex.h:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_table.cc:
        Auto merged
      0c94064b
    • unknown's avatar
      Making a better fix for double released pointers and safe · 18a321ad
      unknown authored
      TMP_TABLE_PARAM.
      This involved moving things around in include files.
      All tests, including the ones with Valgrind passed.
      
      
      18a321ad
  10. 25 Apr, 2003 1 commit
  11. 24 Apr, 2003 7 commits
    • unknown's avatar
      Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.1 · bab7aac7
      unknown authored
      into mysql.com:/home/mysql_src/mysql-4.1
      
      
      sql/mysqld.cc:
        Auto merged
      sql/set_var.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      bab7aac7
    • unknown's avatar
      Merge ibabaev@bk-internal.mysql.com:/home/bk/mysql-4.1 · 9b7a51d8
      unknown authored
      into hundin.mysql.fi:/home/igor/dev/mysql-4.1
      
      
      mysql-test/r/ctype_collate.result:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/set_var.cc:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      9b7a51d8
    • unknown's avatar
      Merge eagle.mysql.r18.ru:/home/vva/work/mysql.orig/clear/mysql-4.1 · 50c17af0
      unknown authored
      into eagle.mysql.r18.ru:/home/vva/work/COMPRESS_UNCOMPRESS/mysql-4.1
      
      
      50c17af0
    • unknown's avatar
      added '.' to end of compressed string · 78f19df0
      unknown authored
      78f19df0
    • unknown's avatar
      Replication: new code to not modify in-memory log positions until the COMMIT · 9f4f19d9
      unknown authored
      is executed, even if the transaction spans on >=2 relay logs (bug #53).
      New variable relay_log_purge =0|1
      New test to verify bug #53
      
      
      sql/log.cc:
        Now we purge a relay log only when we are sure we won't need it,
        i.e. we have executed the final query (if autocommit=1) or the COMMIT.
      sql/log_event.cc:
        Better tracking of the relay log's name and position
        lastly executed, even if we are in a transaction which spans on
        2 or more relay logs.
      sql/mysql_priv.h:
        new option relay_log_purge (the user can now decide himself
        if he wants his relay logs to be automatically purged or not,
        we don't make unsafe guesses like before)
      sql/mysqld.cc:
        new option --innodb (replaces --skip-innodb).
        Useful for the test suite : we have skip-innodb in mysql-test-run,
        but we can ('-opt.info' file) choose to start the server with
        InnoDB for this test only.
        New option --bdb
      sql/repl_failsafe.cc:
        Better tracking of the relay log's name and position
        lastly executed, even if we are in a transaction which spans on
        2 or more relay logs.
      sql/set_var.cc:
        new variable relay_log_purge
      sql/slave.cc:
        Better tracking of the relay log's name and position
        lastly executed, even if we are in a transaction which spans on
        2 or more relay logs.
        Now we purge a relay log only when we are sure we won't need it,
        i.e. we have executed the final query (if autocommit=1) or the COMMIT
      sql/slave.h:
        Better tracking of the relay log's name and position
        lastly executed, even if we are in a transaction which spans on
        2 or more relay logs.
      sql/sql_class.h:
        prototypes change
      sql/sql_parse.cc:
        removed thd argument (was not used in the function's body)
      sql/sql_repl.cc:
        Better tracking of the relay log's name and position
        lastly executed, even if we are in a transaction which spans on
        2 or more relay logs.
        Turn relay_log_purge silently off when someone does CHANGE
        MASTER TO RELAY_LOG_*
      9f4f19d9
    • unknown's avatar
      func_gconcat.result, ctype_many.result: · 4b19dfd4
      unknown authored
         Added the MAX_LENGTH_FOR_SORT_DATA option
      ctype_collate.result:
        Added the MAX_LENGTH_FOR_SORT_DATA option
      
      
      mysql-test/r/ctype_collate.result:
        Added the MAX_LENGTH_FOR_SORT_DATA option
      mysql-test/r/ctype_many.result:
         Added the MAX_LENGTH_FOR_SORT_DATA option
      mysql-test/r/func_gconcat.result:
         Added the MAX_LENGTH_FOR_SORT_DATA option
      4b19dfd4
    • unknown's avatar
      Many files: · a7f8b1cb
      unknown authored
         Added the MAX_LENGTH_FOR_SORT_DATA option
      filesort.cc:
        Added the MAX_LENGTH_FOR_SORT_DATA option
      
      
      sql/filesort.cc:
        Added the MAX_LENGTH_FOR_SORT_DATA option
      sql/mysqld.cc:
         Added the MAX_LENGTH_FOR_SORT_DATA option
      sql/opt_range.cc:
         Added the MAX_LENGTH_FOR_SORT_DATA option
      sql/records.cc:
         Added the MAX_LENGTH_FOR_SORT_DATA option
      sql/set_var.cc:
         Added the MAX_LENGTH_FOR_SORT_DATA option
      sql/sql_base.cc:
         Added the MAX_LENGTH_FOR_SORT_DATA option
      sql/sql_class.h:
         Added the MAX_LENGTH_FOR_SORT_DATA option
      sql/sql_delete.cc:
         Added the MAX_LENGTH_FOR_SORT_DATA option
      sql/sql_select.cc:
         Added the MAX_LENGTH_FOR_SORT_DATA option
      sql/sql_sort.h:
         Added the MAX_LENGTH_FOR_SORT_DATA option
      sql/sql_table.cc:
         Added the MAX_LENGTH_FOR_SORT_DATA option
      sql/sql_update.cc:
         Added the MAX_LENGTH_FOR_SORT_DATA option
      sql/structs.h:
         Added the MAX_LENGTH_FOR_SORT_DATA option
      sql/table.h:
         Added the MAX_LENGTH_FOR_SORT_DATA option
      sql/uniques.cc:
         Added the MAX_LENGTH_FOR_SORT_DATA option
      a7f8b1cb
  12. 23 Apr, 2003 7 commits
    • unknown's avatar
      SCRUM · f0909cd7
      unknown authored
      Protocol_cursor class and sql-common/ directory
      
      
      Makefile.am:
        pack.c added to linked sources
      include/mysql.h:
        net_field_length_ll declaration added
      include/mysql_com.h:
        net_field_length declaration added
      libmysql/Makefile.am:
        sql-common files symlinked
      libmysql/Makefile.shared:
        pack.lo target added
      libmysql/libmysql.c:
        net_field_length removed from here
      sql/Makefile.am:
        pack.c added to the sources
      sql/mini_client.cc:
        mc_net_field_length functions replaced with net_field_length
      sql/protocol.h:
        Protocol_cursor class added
      f0909cd7
    • unknown's avatar
      set_var.cc: · 4ac98ec5
      unknown authored
        We don't need this code any more. It was used to initialize CONVERT structure in 4.0.
      
      
      sql/set_var.cc:
        We don't need this code any more. It was used to initialize CONVERT structure in 4.0.
      4ac98ec5
    • unknown's avatar
      Variable names have been renamed: · bb12690a
      unknown authored
        client_collation -> collation_client
        result_collation -> collation_results
        connection_collation -> collation_connection
      
      
      BitKeeper/etc/ignore:
        Added client/ssl_test to the ignore list
      bb12690a
    • unknown's avatar
      Fix bug#68: ssl_test.c does not compile/work · fbf47d52
      unknown authored
      fbf47d52
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1 · 711eb800
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-order-4.1
      
      
      mysql-test/r/subselect.result:
        Auto merged
      mysql-test/t/subselect.test:
        Auto merged
      sql/sql_lex.cc:
        Auto merged
      sql/sql_lex.h:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      711eb800
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1 · b6480688
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-in-4.1
      
      
      sql/item_cmpfunc.cc:
        Auto merged
      b6480688
    • unknown's avatar
      Added --delimiter option to mysql · 7900c2f1
      unknown authored
      
      client/mysql.cc:
        Added --delimiter option to mysql. Statement terminator
        can be a character (';' by default) or a string.
        
        Code clean up
      7900c2f1
  13. 22 Apr, 2003 5 commits
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 762b3175
      unknown authored
      into narttu.mysql.fi:/my/mysql-4.1
      
      
      sql/item_strfunc.cc:
        Auto merged
      762b3175
    • unknown's avatar
      Merge eagle.mysql.r18.ru:/home/vva/work/mysql.orig/clear/mysql-4.1 · 78b2c66b
      unknown authored
      into eagle.mysql.r18.ru:/home/vva/work/COMPRESS_UNCOMPRESS/mysql-4.1
      
      
      78b2c66b
    • unknown's avatar
      5ab46afc
    • unknown's avatar
      fixed bug 185 (constant IN (SELECT field ...) do not return NULL correctly) · 06017a0d
      unknown authored
      
      mysql-test/r/subselect.result:
        new test results
        test of bug 185
      mysql-test/t/subselect.test:
        test of bug 185
      sql/item.h:
        new method
      sql/item_cmpfunc.cc:
        new Item to control NULL value in HAVING clouse
      sql/item_cmpfunc.h:
        new Item to control NULL value in HAVING clouse
      sql/item_subselect.cc:
        if IN was rewrited through WHERE thien it will be rewrited in following way:
        
        WHERE left_expr=item or is null(item) heving is_not_null_test(item)
      sql/item_subselect.h:
        Item_is_not_null_test can change was_null flag
      sql/sql_select.cc:
        some layout fix
      06017a0d
    • unknown's avatar
      Removed some not used files · ac02f540
      unknown authored
      Remove the 'fs' file systems as this is not maintained.
      Moved programs from client to tests
      
      
      tests/deadlock_test.c:
        Rename: div/deadlock_test.c -> tests/deadlock_test.c
      BitKeeper/deleted/.del-CorbaFS.idl~719ba9d93c206620:
        Delete: fs/CorbaFS.idl
      BitKeeper/deleted/.del-Makefile.am~95f21e278745904c:
        Delete: fs/Makefile.am
      BitKeeper/deleted/.del-RunServer.sh~34ea2653535fbb5c:
        Delete: fs/RunServer.sh
      BitKeeper/deleted/.del-database.c~af098622e818ce0d:
        Delete: fs/database.c
      BitKeeper/deleted/.del-dump.sql~68646092f0c5bc96:
        Delete: fs/dump.sql
      BitKeeper/deleted/.del-korbit-kernel-2.4.1-patch~742e5e67c1132b2e:
        Delete: fs/korbit-kernel-2.4.1-patch
      BitKeeper/deleted/.del-libmysqlfs.c~70cc07d61deedd16:
        Delete: fs/libmysqlfs.c
      BitKeeper/deleted/.del-libmysqlfs.h~7b60f308be50370e:
        Delete: fs/libmysqlfs.h
      BitKeeper/deleted/.del-my.cnf~bbd975fd6377e704:
        Delete: fs/my.cnf
      BitKeeper/deleted/.del-mysqlcorbafs.c~fc58c116eeea996a:
        Delete: fs/mysqlcorbafs.c
      BitKeeper/deleted/.del-mysqlcorbafs.h~414821d6836e655a:
        Delete: fs/mysqlcorbafs.h
      BitKeeper/deleted/.del-mysqlcorbafs_test.c~8bb3afa230542e05:
        Delete: fs/mysqlcorbafs_test.c
      BitKeeper/deleted/.del-README~b9f437fbd6dce7a5:
        Delete: fs/README
      BitKeeper/deleted/.del-mysqlfsck~247a2d2b9729b95e:
        Delete: fs/mysqlfsck
      tests/insert_test.c:
        Rename: client/insert_test.c -> tests/insert_test.c
      tests/list_test.c:
        Rename: client/list_test.c -> tests/list_test.c
      tests/select_test.c:
        Rename: client/select_test.c -> tests/select_test.c
      BitKeeper/deleted/.del-thimble.cc~3fa3754a4c639242:
        Delete: client/thimble.cc
      tests/thread_test.c:
        Rename: client/thread_test.c -> tests/thread_test.c
      tests/connect_test.c:
        Rename: client/connect_test.c -> tests/connect_test.c
      tests/showdb_test.c:
        Rename: client/showdb_test.c -> tests/showdb_test.c
      tests/ssl_test.c:
        Rename: client/ssl_test.c -> tests/ssl_test.c
      BitKeeper/deleted/.del-mysql_install.c~8c089740d79a92:
        Delete: extra/mysql_install.c
      BitKeeper/deleted/.del-cache_manager.cc~c506b365b140d30c:
        Delete: sql/cache_manager.cc
      BitKeeper/deleted/.del-cache_manager.h~adb8639e510c6f6e:
        Delete: sql/cache_manager.h
      client/Makefile.am:
        Move insert_test, select_test and thread_test under 'tests'
      extra/Makefile.am:
        Remove not used program mysql_install
      sql/item_strfunc.cc:
        Simple optimization
      sql/item_sum.cc:
        Simple code cleanup.
      tests/Makefile.am:
        Added test programs
      ac02f540