1. 09 Jun, 2004 3 commits
    • unknown's avatar
      Merge gbichot@213.136.52.20:/home/bk/mysql-4.1 · cf498610
      unknown authored
      into mysql.com:/home/mysql_src/mysql-4.1-874
      
      cf498610
    • unknown's avatar
      Making DROP TABLE IF EXISTS, DROP DATABASE IF EXISTS, DELETE FROM, UPDATE be logged to · a5141b94
      unknown authored
      binlog even if they changed nothing, and a test for this.
      This is useful when users use these commands to clean up their master and slave by issuing
      one command on master (assume master and slave have slightly different data for some
      reason and you want to clean up both).
      Note that I have not changed multi-table DELETE and multi-table UPDATE because their
      error-reporting mechanism is more complicated.
      
      
      mysql-test/r/mysqlbinlog.result:
        result update
      mysql-test/r/rpl_charset.result:
        result update
      mysql-test/r/rpl_flush_log_loop.result:
        result update
      mysql-test/r/rpl_replicate_do.result:
        result update
      mysql-test/r/rpl_temporary.result:
        result update
      mysql-test/t/mysqlbinlog.test:
        moving SET TIMESTAMP up as DROP shows up in binlog
      sql/sql_db.cc:
        DROP DATABASE IF EXISTS is now always logged to binlog, even if db did not exist
      sql/sql_delete.cc:
        DELETE FROM t is now always logged to binlog even if no rows deleted (but in this case, only if really no error).
      sql/sql_table.cc:
        DROP TABLE IF EXISTS is now always logged to binlog even if table did not exist
      sql/sql_update.cc:
        UPDATE is now always logged to binlog even if no rows updated (but in this case, only if really no error).
      a5141b94
    • unknown's avatar
      charset.c: · f01f2075
      unknown authored
        Fix to be ANSI C complient
        ,
      
      
      mysys/charset.c:
        Fix to be ANSI C complient
        ,
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      f01f2075
  2. 08 Jun, 2004 18 commits
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 6548c44e
      unknown authored
      into mysql.com:/home/kostja/mysql/mysql-4.1-4026
      
      
      sql/item.cc:
        Auto merged
      sql/item.h:
        Auto merged
      sql/sql_prepare.cc:
        Auto merged
      6548c44e
    • unknown's avatar
      Proposed fix for Bug#4026 "Microseconds part of TIME/DATETIME types · b9862a88
      unknown authored
      is broken (prepared statements)": fixed date handling in many places 
      of prepared statements code.
      
      
      libmysql/libmysql.c:
        Fix for Bug#4026:
        - now buffer_length is defined for any buffer type. Network buffer 
          preallocation cleaned up.
        - added constants for maximum buffer sizes necessary for MYSQL_TYPE_DATE,
          MYSQL_TYPE_TIME, MYSQL_TYPE_DATETIME types.
        - TIME/DATETIME packing/unpacking functions fixed 
        - now result set metadata is always updated from fields sent to COM_EXECUTE.
          This is necessary to make 'SELECT ?' queries work without conversions.
      sql/item.cc:
        - added implementatoin of Item_param::get_date
      sql/item.h:
        - added enum_field_types Item_param::param_type. First step for proper
          handling of placeholders.
        - added get_date() implementation to prevent date -> string -> date 
          conversions when MYSQL_TYPE_DATE/DATETIME parameter is used in temporal 
          context.
      sql/protocol.cc:
        Fix for Bug#4026:
        - PACKET_BUFFET_EXTRA_ALLOC -> PACKET_BUFFER_EXTRA_ALLOC.
          The define itself was moved to .cc as it's used only in protocol.cc
        - fixed Protocol_prep::store_time() call.
      sql/protocol.h:
        - PACKET_BUFFER_EXTRA_ALLOC moved to protocol.cc
      sql/sql_prepare.cc:
        Fix for Bug#4026:
        - MYSQL_TYPE_TIME/DATETIME handling fixed.
        - added initialization for Item_param::param_type in 
          setup_one_conversion_function
      tests/client_test.c:
        Test case for Bug#4026
      b9862a88
    • unknown's avatar
      Merge gbichot@213.136.52.20:/home/bk/mysql-4.1 · a6b92b0e
      unknown authored
      into mysql.com:/home/mysql_src/mysql-4.1-874
      
      a6b92b0e
    • unknown's avatar
      Correction to replication of charsets in 4.1: · abe3048a
      unknown authored
      In mysqlbinlog, there was a problem with how we escaped the content of a string user variable.
      To be perfect, we should have escaped with character_set_client. But this charset is unknown
      to mysqlbinlog. So the simplest is to print the string in hex. This is unreadable but
      100% safe with any charset (checked with Bar), no more need to bother with character_set_client.
      
      
      mysql-test/r/rpl_charset.result:
        hex strings
      mysql-test/r/rpl_user_variables.result:
        hex strings
      mysql-test/r/user_var.result:
        hex strings
      sql/log_event.cc:
        In mysqlbinlog, there was a problem with how we escaped the content of a string user variable.
        To be perfect, we should have escaped with character_set_client. But this charset is unknown
        to mysqlbinlog. So the simplest is to print the string in hex. This is unreadable but
        100% safe with any charset (checked with Bar), no more need to bother with character_set_client.
      abe3048a
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1 · d5a9b0c6
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-4.1
      
      d5a9b0c6
    • unknown's avatar
      WL#916: Unicode collations for some languages · 361c038a
      unknown authored
      361c038a
    • unknown's avatar
      Added function innobase_store_binlog_offset_and_flush_log requested by Guilhem · 9ce36bdf
      unknown authored
      to ha_innodb.cc and ha_innodb.h
      
      
      sql/ha_innodb.cc:
        /***********************************************************************
        This function stores binlog offset and flushes logs */
        
        void
        innobase_store_binlog_offset_and_flush_log(
        /*=============================*/
            char *binlog_name,          /* in: binlog name   */
            longlong offset             /* in: binlog offset */
        );
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      9ce36bdf
    • unknown's avatar
    • unknown's avatar
      Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-4.1 · 11f949d0
      unknown authored
      into bar.intranet.mysql.r18.ru:/usr/home/bar/mysql-4.1
      
      11f949d0
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1 · de94cd0b
      unknown authored
      into mc05.(none):/space2/tomas/mysql-4.1-ndb-test
      
      de94cd0b
    • unknown's avatar
      fix for automake-1.5 · 16b0d9ed
      unknown authored
      16b0d9ed
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb · 9c18ea54
      unknown authored
      into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1-ndb
      
      9c18ea54
    • unknown's avatar
    • unknown's avatar
      ha_innodb.cc: · 74c03743
      unknown authored
        Fix Bug #4047: remove the improvement ported from 4.0 that made InnoDB to remember the original select_lock_type inside LOCK TABLES
      
      
      sql/ha_innodb.cc:
        Fix Bug #4047: remove the improvement ported from 4.0 that made InnoDB to remember the original select_lock_type inside LOCK TABLES
      74c03743
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1 · b0f5651a
      unknown authored
      into mc05.(none):/space2/tomas/mysql-4.1-ndb-test
      
      b0f5651a
    • unknown's avatar
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb · 944e3095
      unknown authored
      into poseidon.bredbandsbolaget.se:/home/tomas/mysql-4.1-ndb
      
      944e3095
    • unknown's avatar
      some ndb printout cleanup · 1717e64a
      unknown authored
      
      ndb/src/ndbapi/NdbDictionary.cpp:
        Print cleanup
      ndb/test/src/NDBT_ResultRow.cpp:
        Print error
      ndb/test/src/NDBT_Table.cpp:
        Print cleanup
      1717e64a
  3. 07 Jun, 2004 19 commits
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1 · e6a8002a
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-4.1
      
      e6a8002a
    • unknown's avatar
      b5e579f8
    • unknown's avatar
      Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-4.1 · 26586ce5
      unknown authored
      into mysql.com:/dbdata/psergey/mysql-4.1-ps-merge
      
      
      sql/mysql_priv.h:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      26586ce5
    • unknown's avatar
      Merge mysql.com:/home/jonas/src/mysql-4.1 · 8830bf08
      unknown authored
      into mysql.com:/home/jonas/src/mysql-4.1-ndb
      
      8830bf08
    • unknown's avatar
      BUG#4034 · 19a5df38
      unknown authored
      19a5df38
    • unknown's avatar
      Merge mysql.com:/home/jonas/src/mysql-4.1 · f258478f
      unknown authored
      into mysql.com:/home/jonas/src/mysql-4.1-ndb
      
      f258478f
    • unknown's avatar
      BUG#4037 fix printout of limits · d6cb3d2a
      unknown authored
      d6cb3d2a
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1 · 19002750
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-4.1
      
      19002750
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb · ab487ea2
      unknown authored
      into poseidon.bredbandsbolaget.se:/home/tomas/mysql-4.1-ndb
      
      ab487ea2
    • unknown's avatar
      ndb source tree cleanup, see respective file · 2438551d
      unknown authored
      
      BitKeeper/deleted/.del-BinDist.sh~8ea6fee0be3de36:
        Delete: ndb/old_files/BinDist.sh
      BitKeeper/deleted/.del-Defs.mk~fab44ad996ed5499:
        Delete: ndb/old_files/Defs.mk
      BitKeeper/deleted/.del-Makefile~726e96331d4343ce:
        Delete: ndb/old_files/Makefile
      BitKeeper/deleted/.del-SrcDist.sh~ad4f1cd7aae4265b:
        Delete: ndb/old_files/SrcDist.sh
      BitKeeper/deleted/.del-configure~501239931f8bb1:
        Delete: ndb/old_files/configure
      BitKeeper/deleted/.del-Epilogue.mk~60f7edf886726154:
        Delete: ndb/old_files/Epilogue.mk
      BitKeeper/deleted/.del-README~b619a580720ec3d8:
        Delete: ndb/old_files/README
      BitKeeper/deleted/.del-env.sh~91075f1664ce8292:
        Delete: ndb/old_files/env.sh
      BitKeeper/deleted/.del-mysqlclusterenv.sh~f0d8a63e844255f5:
        Delete: ndb/old_files/mysqlclusterenv.sh
      BitKeeper/deleted/.del-Defs.DEBUG.mk~8ed7bb195181c74a:
        Delete: ndb/config/old_files/Defs.DEBUG.mk
      BitKeeper/deleted/.del-acinclude.m4~b1472f9faac0c71:
        Delete: ndb/config/old_files/acinclude.m4
      BitKeeper/deleted/.del-Defs.HPUX.HPPA.GCC.mk~b50ab324c3ce07ce:
        Delete: ndb/config/old_files/Defs.HPUX.HPPA.GCC.mk
      BitKeeper/deleted/.del-Defs.IBMAIX.POWERPC.GCC.mk~76bea6928ca7b8f0:
        Delete: ndb/config/old_files/Defs.IBMAIX.POWERPC.GCC.mk
      BitKeeper/deleted/.del-Defs.LINUX.x86.GCC.mk~15f3c82665d141a0:
        Delete: ndb/config/old_files/Defs.LINUX.x86.GCC.mk
      BitKeeper/deleted/.del-Defs.LINUX.x86.ICC.mk~e51a6e19daeb353:
        Delete: ndb/config/old_files/Defs.LINUX.x86.ICC.mk
      BitKeeper/deleted/.del-Defs.LINUX.x86_64.GCC.mk~9e853e7e1142b2d7:
        Delete: ndb/config/old_files/Defs.LINUX.x86_64.GCC.mk
      BitKeeper/deleted/.del-Defs.MACOSX.POWERPC.GCC.mk~d661574b758ac911:
        Delete: ndb/config/old_files/Defs.MACOSX.POWERPC.GCC.mk
      BitKeeper/deleted/.del-Defs.OSE.PPC750.DIAB.mk~d5d7116c512290bc:
        Delete: ndb/config/old_files/Defs.OSE.PPC750.DIAB.mk
      BitKeeper/deleted/.del-Defs.RELEASE.mk~6c195617d8e1c8ec:
        Delete: ndb/config/old_files/Defs.RELEASE.mk
      BitKeeper/deleted/.del-Defs.RELEASE_TRACE.mk~e367d147bd3ad0bf:
        Delete: ndb/config/old_files/Defs.RELEASE_TRACE.mk
      BitKeeper/deleted/.del-Defs.SIMCELLO.SOFTOSE.GCC.mk~5acee8046e3dfd21:
        Delete: ndb/config/old_files/Defs.SIMCELLO.SOFTOSE.GCC.mk
      BitKeeper/deleted/.del-Defs.WIN32.x86.VC7.mk~582038c28dd89391:
        Delete: ndb/config/old_files/Defs.WIN32.x86.VC7.mk
      BitKeeper/deleted/.del-Defs.SOFTOSE.SPARC.GCC.mk~ebd0c4aab56c1202:
        Delete: ndb/config/old_files/Defs.SOFTOSE.SPARC.GCC.mk
      BitKeeper/deleted/.del-Defs.SOLARIS.SPARC.FORTE6.mk~4367e18b8246761e:
        Delete: ndb/config/old_files/Defs.SOLARIS.SPARC.FORTE6.mk
      BitKeeper/deleted/.del-Defs.SOLARIS.SPARC.GCC.mk~d781a20b8235525c:
        Delete: ndb/config/old_files/Defs.SOLARIS.SPARC.GCC.mk
      BitKeeper/deleted/.del-Defs.SOLARIS.SPARC_64.GCC.mk~76626f56dcd0e8e9:
        Delete: ndb/config/old_files/Defs.SOLARIS.SPARC_64.GCC.mk
      BitKeeper/deleted/.del-Defs.SOLARIS6.SPARC.GCC.mk~2b05903f79ce771:
        Delete: ndb/config/old_files/Defs.SOLARIS6.SPARC.GCC.mk
      BitKeeper/deleted/.del-Defs.TRU64X.ALPHA.GCC.mk~6ba3fc0cfaa37cb2:
        Delete: ndb/config/old_files/Defs.TRU64X.ALPHA.GCC.mk
      BitKeeper/deleted/.del-GuessConfig.sh~ebdb504ed6b7ab68:
        Delete: ndb/config/old_files/GuessConfig.sh
      BitKeeper/deleted/.del-Makefile.am~c28d15539f926269:
        Delete: ndb/config/old_files/Makefile.am
      BitKeeper/deleted/.del-configure.in~3e0ef32c155b79bc:
        Delete: ndb/config/old_files/configure.in
      BitKeeper/deleted/.del-config.h.in~b9209994763e30f8:
        Delete: ndb/config/old_files/config.h.in
      BitKeeper/deleted/.del-Makefile~71ad5c694da8711:
        Delete: ndb/src/old_files/Makefile
      BitKeeper/deleted/.del-Makefile~261cfb7897aa2259:
        Delete: ndb/test/newtonapi/Makefile
      BitKeeper/deleted/.del-Makefile~d46bb4a49ae611f9:
        Delete: ndb/test/odbc/Makefile
      BitKeeper/deleted/.del-Makefile_old~5ce89facf68772b:
        Delete: ndb/test/Makefile_old
      ndb/test/include/NdbSchemaCon.hpp:
        Rename: ndb/include/ndbapi/NdbSchemaCon.hpp -> ndb/test/include/NdbSchemaCon.hpp
      ndb/test/include/NdbSchemaOp.hpp:
        Rename: ndb/include/ndbapi/NdbSchemaOp.hpp -> ndb/test/include/NdbSchemaOp.hpp
      ndb/include/Makefile.am:
        removed NdbSchema from ndbapi
      ndb/include/ndbapi/NdbDictionary.hpp:
        added Column::getSize()
        and print function for Column::Type
      ndb/include/ndbapi/NdbRecAttr.hpp:
        made an operator<< friend to NdbRecAttr
      ndb/src/kernel/blocks/backup/restore/Restore.cpp:
        Rewritten restore to remove NdbSchema
      ndb/src/kernel/blocks/backup/restore/Restore.hpp:
        Rewritten restore to remove NdbSchema
      ndb/src/kernel/blocks/backup/restore/main.cpp:
        Rewritten restore to remove NdbSchema
      ndb/src/ndbapi/Makefile.am:
        removed NdbSchema from ndbapi
      ndb/src/ndbapi/NdbDictionary.cpp:
        added operator << for Column::Type
      ndb/src/ndbapi/NdbRecAttr.cpp:
        updated operator<< for NdbRecAttr
      ndb/src/ndbapi/Ndberr.cpp:
        removed NdbSchema from ndbapi
      ndb/test/src/Makefile.am:
        moved NdbSchema to test
      ndb/test/src/NDBT_ResultRow.cpp:
        use common print method for NDBT_ResultRow
      ndb/test/src/NdbBackup.cpp:
        fixed bug in testBackup
      ndb/test/src/NdbSchemaCon.cpp:
        moved NdbError NdbSchema
      ndb/test/src/NdbSchemaOp.cpp:
        updated include file list
      2438551d
    • unknown's avatar
      Merge gbichot@213.136.52.20:/home/bk/mysql-4.1 · dd1ef041
      unknown authored
      into mysql.com:/home/mysql_src/mysql-4.1-874
      
      dd1ef041
    • unknown's avatar
      updating test's result now that SHOW BINLOG EVENTS quotes and escapes user variables. · 62092e38
      unknown authored
      
      mysql-test/r/rpl_user_variables.result:
        adding quotes to the variable names, and escaping, in the result
      62092e38
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1 · cc8a7115
      unknown authored
      into mc05.(none):/space2/tomas/mysql-4.1
      
      
      acconfig.h:
        Auto merged
      configure.in:
        Auto merged
      cc8a7115
    • unknown's avatar
      Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-4.1 · b3d81a28
      unknown authored
      into gluh.mysql.r18.ru:/home/gluh/MySQL-BUGS/mysql-4.1
      
      b3d81a28
    • unknown's avatar
      Fix for bug#3946: Error in LPAD() when padstring is longer than 1 character · fffef41d
      unknown authored
      
      mysql-test/r/ctype_ucs.result:
        Test for bug#3946: Error in LPAD() when padstring is longer than 1 character
      mysql-test/t/ctype_ucs.test:
        Test for bug#3946: Error in LPAD() when padstring is longer than 1 character
      fffef41d
    • unknown's avatar
      mysqld.cc: · 77783616
      unknown authored
        WL#1160.
        Adding variable-conformant startup options for --default-character-set and --default-collation
      
      
      sql/mysqld.cc:
        WL#1160.
        Adding variable-conformant startup options for --default-character-set and --default-collation
      77783616
    • unknown's avatar
      mysqldump.c: · 18430e22
      unknown authored
        Dump could fail to load because of --default-character-set command line option.
        More safe dump is now produces, --default-character-set doesn't matter.
      
      
      client/mysqldump.c:
        Dump could fail to load because of --default-character-set command line option.
        More safe dump is now produces, --default-character-set doesn't matter.
      18430e22
    • unknown's avatar
      client.c: · bc90d849
      unknown authored
        Bug #3990  	`--with-charset' ./configure's switch doesn'taffect mysql client library.
      
      
      sql-common/client.c:
        Bug #3990  	`--with-charset' ./configure's switch doesn'taffect mysql client library.
      bc90d849
    • unknown's avatar
      Merge baker@bk-internal.mysql.com:/home/bk/mysql-4.1 · a81c1978
      unknown authored
      into brian-akers-computer.local:/Users/brian/mysql/mysql-4.1
      
      a81c1978