1. 01 Aug, 2007 15 commits
    • unknown's avatar
      Merge ramayana.hindu.god:/home/tsmith/m/bk/maint/50 · 6622bcdb
      unknown authored
      into  ramayana.hindu.god:/home/tsmith/m/bk/maint/51
      
      
      configure.in:
        Auto merged
      6622bcdb
    • unknown's avatar
      Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-5.0-maint · 1b04b4b1
      unknown authored
      into  mysql.com:/home/ram/work/b29928.new/b29928.new.5.0
      
      
      1b04b4b1
    • unknown's avatar
      After-merge fixup. · be4cfe50
      unknown authored
        - THD::tmp_table_used removed, THD::thread_specific_used used instead.
      
      
      be4cfe50
    • unknown's avatar
      Merge mysql.com:/home/ram/work/b29928.new/b29928.new.5.0 · d4ba395a
      unknown authored
      into  mysql.com:/home/ram/work/b29928.new/b29928.new.5.1
      
      
      mysql-test/r/mysqlbinlog.result:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/log_event.cc:
        Auto merged
      sql/sql_class.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      mysql-test/t/mysqlbinlog.test:
        manual merge
      d4ba395a
    • unknown's avatar
      Fix for bug #29928: INSERT ... VALUES(connection_id(), ...) incorrect · f87acb59
      unknown authored
      restores from mysqlbinlog out
      
      Problem: using "mysqlbinlog | mysql" for recoveries the connection_id() 
      result may differ from what was used when issuing the statement.
      
      Fix: if there is a connection_id() in a statement, write to binlog
      SET pseudo_thread_id= XXX; before it and use the value later on.
      
      
      mysql-test/r/mysqlbinlog.result:
        Fix for bug #29928: INSERT ... VALUES(connection_id(), ...) incorrect 
        restores from mysqlbinlog out
          - test result.
      mysql-test/t/mysqlbinlog.test:
        Fix for bug #29928: INSERT ... VALUES(connection_id(), ...) incorrect 
        restores from mysqlbinlog out
          - test case.
      sql/item_create.cc:
        Fix for bug #29928: INSERT ... VALUES(connection_id(), ...) incorrect 
        restores from mysqlbinlog out
          - set thread_specific_used flag for the connection_id() function.
      sql/item_func.cc:
        Fix for bug #29928: INSERT ... VALUES(connection_id(), ...) incorrect 
        restores from mysqlbinlog out
          - always return thd->variables.pseudo_thread_id as a connection_id() 
        result, as it contains a proper value for both master and slave.
      sql/log_event.cc:
        Fix for bug #29928: INSERT ... VALUES(connection_id(), ...) incorrect 
        restores from mysqlbinlog out
          - set LOG_EVENT_THREAD_SPECIFIC_F event flag if thread_specific_used
        is set.
      sql/sql_class.cc:
        Fix for bug #29928: INSERT ... VALUES(connection_id(), ...) incorrect 
        restores from mysqlbinlog out
          - thd->thread_specific_used introduced, which is set if thread specific 
        value(s) used in a statement.
      sql/sql_class.h:
        Fix for bug #29928: INSERT ... VALUES(connection_id(), ...) incorrect 
        restores from mysqlbinlog out
          - thd->thread_specific_used introduced, which is set if thread specific 
        value(s) used in a statement.
      f87acb59
    • unknown's avatar
      Merge jperkin@bk-internal.mysql.com:/home/bk/mysql-5.0-maint · ce045a82
      unknown authored
      into  production.mysql.com:/usersnfs/jperkin/bk/mysql-5.0-maint
      
      
      ce045a82
    • unknown's avatar
      Merge production.mysql.com:/usersnfs/jperkin/bk/mysql-5.0-maint · 06cffaab
      unknown authored
      into  production.mysql.com:/usersnfs/jperkin/bk/mysql-5.1-maint
      
      
      06cffaab
    • unknown's avatar
      Merge production.mysql.com:/usersnfs/jperkin/bk/mysql-4.1-maint · 12235197
      unknown authored
      into  production.mysql.com:/usersnfs/jperkin/bk/mysql-5.0-maint
      
      
      12235197
    • unknown's avatar
      Merge jperkin@bk-internal.mysql.com:/home/bk/mysql-4.1-maint · bb88e1ee
      unknown authored
      into  production.mysql.com:/usersnfs/jperkin/bk/mysql-4.1-maint
      
      
      bb88e1ee
    • unknown's avatar
      Option 6 tries to grant global privileges at the database level · c517fea5
      unknown authored
      which does not work.  Removing these attempted privileges makes
      this identical to option 5 so remove it completely.  The spirit
      of the program appears to be aimed at database privileges, so do
      not add another option for granting global privileges as it may
      be unexpected.  Fixes bug#14618 (same as previous patch, this
      time applied to -maint tree).
      
      
      scripts/mysql_setpermission.sh:
        Option 6 tries to apply global privileges at the database
        level which does not work - remove it.
      c517fea5
    • unknown's avatar
      Merge tnurnberg@bk-internal.mysql.com:/home/bk/mysql-5.1-maint · b9b4d0cb
      unknown authored
      into  sin.intern.azundris.com:/home/tnurnberg/10776/51-10776
      
      
      configure.in:
        Auto merged
      b9b4d0cb
    • unknown's avatar
      Merge tnurnberg@bk-internal.mysql.com:/home/bk/mysql-5.0-maint · c5ff0a0d
      unknown authored
      into  sin.intern.azundris.com:/home/tnurnberg/10776/50-10776
      
      
      configure.in:
        Auto merged
      c5ff0a0d
    • unknown's avatar
      Bug #10776: Failure to compile ndb ReadNodesConf.cpp on AIX 5.2 · 36bb8de9
      unknown authored
      5.1 specific fixes so cluster will build on AIX (with IBM compiler)
      
      
      config/ac-macros/ha_ndbcluster.m4:
        Bug #10776: Failure to compile ndb ReadNodesConf.cpp on AIX 5.2 (1)
        
        build NDB binaries as static on AIX. because that actually
        *works*.
        
        when building dynamic, with the IBM compiler (xlC_r), and
        the build breaks on AIX due to missing symbols
        (__vec__delete2 et al.), try adding -lhC to the Makefile.
      storage/ndb/src/mgmclient/Makefile.am:
        Bug #10776: Failure to compile ndb ReadNodesConf.cpp on AIX 5.2 (2)
        
        fix path
      storage/ndb/src/ndbapi/NdbScanOperation.cpp:
        Bug #10776: Failure to compile ndb ReadNodesConf.cpp on AIX 5.2 (3)
        
        __align is a keyword in xlC_r
      storage/ndb/test/ndbapi/testIndexStat.cpp:
        Bug #10776: Failure to compile ndb ReadNodesConf.cpp on AIX 5.2 (4)
        
        gptr is now uchar*
        
        template can't be static on xlC_r?
      storage/ndb/test/ndbapi/test_event_merge.cpp:
        Bug #10776: Failure to compile ndb ReadNodesConf.cpp on AIX 5.2 (4)
        
        gptr is now uchar*
      storage/ndb/test/run-test/main.cpp:
        Bug #10776: Failure to compile ndb ReadNodesConf.cpp on AIX 5.2 (4)
        
        gptr is now uchar*
      storage/ndb/test/src/NDBT_Test.cpp:
        Bug #10776: Failure to compile ndb ReadNodesConf.cpp on AIX 5.2 (4)
        
        gptr is now uchar*
      36bb8de9
    • unknown's avatar
      Merge sin.intern.azundris.com:/home/tnurnberg/10776/50-10776 · f61488c6
      unknown authored
      into  sin.intern.azundris.com:/home/tnurnberg/10776/51-10776
      
      
      include/mysql.h:
        Auto merged
      storage/ndb/src/mgmclient/Makefile.am:
        Auto merged
      storage/ndb/test/ndbapi/benchronja.cpp:
        Auto merged
      storage/ndb/test/ndbapi/flexAsynch.cpp:
        Auto merged
      storage/ndb/test/ndbapi/flexHammer.cpp:
        Auto merged
      storage/ndb/test/ndbapi/flexScan.cpp:
        Auto merged
      storage/ndb/test/ndbapi/flexTT.cpp:
        Auto merged
      storage/ndb/test/ndbapi/flexTimedAsynch.cpp:
        Auto merged
      storage/ndb/test/ndbapi/initronja.cpp:
        Auto merged
      storage/ndb/test/ndbapi/testOperations.cpp:
        Auto merged
      storage/ndb/test/ndbapi/testScanFilter.cpp:
        Auto merged
      storage/ndb/test/odbc/SQL99_test/SQL99_test.cpp:
        Auto merged
      configure.in:
        manual merge
      storage/ndb/src/common/util/File.cpp:
        manual merge
      storage/ndb/src/mgmsrv/Makefile.am:
        manual merge
      f61488c6
    • unknown's avatar
      Bug #10776: Failure to compile ndb ReadNodesConf.cpp on AIX 5.2 · f5b95d0b
      unknown authored
      mysqld hasn't been built on AIX with ndb-everything in quite a while.
      this allowed a variety of changes to be added that broke the AIX build
      for both the GNU and IBM compilers (but the IBM suite in particular).
      Changeset lets build to complete on AIX 5.2 for users of the GNU and
      the IBM suite both. Tudo bem?
      
      
      config/ac-macros/large_file.m4:
        Bug #10776: Failure to compile ndb ReadNodesConf.cpp on AIX 5.2 (2)
        
        we no longer declare anything large-file on AIX.  the
        GNU C++ compiler declares _LARGE_FILE_API all of its
        own, and either way we're now pulling in <standards.h>
        when on AIX, which defines _LARGE_FILE_API (if not
        already defined).
      configure.in:
        Bug #10776: Failure to compile ndb ReadNodesConf.cpp on AIX 5.2 (1)
        
        build NDB binaries as static on AIX. because that actually
        *works*.
        
        when building dynamic, with the IBM compiler (xlC_r), and
        the build breaks on AIX due to missing symbols
        (__vec__delete2 et al.), try adding -lhC to the Makefile.
      include/mysql.h:
        Bug #10776: Failure to compile ndb ReadNodesConf.cpp on AIX 5.2 (2)
        
        we're now pulling in <standards.h> when on AIX, which
        defines _LARGE_FILE_API (if not already defined).
      ndb/src/common/util/File.cpp:
        Bug #10776: Failure to compile ndb ReadNodesConf.cpp on AIX 5.2 (3)
        
        do not de-scope the standards, for they may be funky macros
      ndb/src/mgmclient/Makefile.am:
        Bug #10776: Failure to compile ndb ReadNodesConf.cpp on AIX 5.2 (4)
        
        make IBM C++ compiler happy on AIX
      ndb/src/mgmsrv/Makefile.am:
        Bug #10776: Failure to compile ndb ReadNodesConf.cpp on AIX 5.2 (5)
        
        GNU compiler has no sense of humour about this
      ndb/test/ndbapi/benchronja.cpp:
        Bug #10776: Failure to compile ndb ReadNodesConf.cpp on AIX 5.2 (6)
        
        MAXTHREADS collides with a #define from <sys/thread.h> on AIX
        (IBM compiler).  Call it NDB_MAXTHREADS instead.  Also explicitly
        #undef it here lest someone use it by habit and get really funny
        results.  (K&R says we may #undef non-existent symbols.)
      ndb/test/ndbapi/flexAsynch.cpp:
        Bug #10776: Failure to compile ndb ReadNodesConf.cpp on AIX 5.2 (6)
        
        MAXTHREADS collides with a #define from <sys/thread.h> on AIX
        (IBM compiler).  Call it NDB_MAXTHREADS instead.  Also explicitly
        #undef it here lest someone use it by habit and get really funny
        results.  (K&R says we may #undef non-existent symbols.)
      ndb/test/ndbapi/flexHammer.cpp:
        Bug #10776: Failure to compile ndb ReadNodesConf.cpp on AIX 5.2 (6)
        
        MAXTHREADS collides with a #define from <sys/thread.h> on AIX
        (IBM compiler).  Call it NDB_MAXTHREADS instead.  Also explicitly
        #undef it here lest someone use it by habit and get really funny
        results.  (K&R says we may #undef non-existent symbols.)
      ndb/test/ndbapi/flexScan.cpp:
        Bug #10776: Failure to compile ndb ReadNodesConf.cpp on AIX 5.2 (6)
        
        MAXTHREADS collides with a #define from <sys/thread.h> on AIX
        (IBM compiler).  Call it NDB_MAXTHREADS instead.  Also explicitly
        #undef it here lest someone use it by habit and get really funny
        results.  (K&R says we may #undef non-existent symbols.)
      ndb/test/ndbapi/flexTT.cpp:
        Bug #10776: Failure to compile ndb ReadNodesConf.cpp on AIX 5.2 (6)
        
        MAXTHREADS collides with a #define from <sys/thread.h> on AIX
        (IBM compiler).  Call it NDB_MAXTHREADS instead.  Also explicitly
        #undef it here lest someone use it by habit and get really funny
        results.  (K&R says we may #undef non-existent symbols.)
      ndb/test/ndbapi/flexTimedAsynch.cpp:
        Bug #10776: Failure to compile ndb ReadNodesConf.cpp on AIX 5.2 (6)
        
        MAXTHREADS collides with a #define from <sys/thread.h> on AIX
        (IBM compiler).  Call it NDB_MAXTHREADS instead.  Also explicitly
        #undef it here lest someone use it by habit and get really funny
        results.  (K&R says we may #undef non-existent symbols.)
      ndb/test/ndbapi/initronja.cpp:
        Bug #10776: Failure to compile ndb ReadNodesConf.cpp on AIX 5.2 (6)
        
        MAXTHREADS collides with a #define from <sys/thread.h> on AIX
        (IBM compiler).  Call it NDB_MAXTHREADS instead.  Also explicitly
        #undef it here lest someone use it by habit and get really funny
        results.  (K&R says we may #undef non-existent symbols.)
      ndb/test/ndbapi/testOperations.cpp:
        Bug #10776: Failure to compile ndb ReadNodesConf.cpp on AIX 5.2 (7)
        
        IBM C compiler on AIX is not happy with the re-def.
      ndb/test/ndbapi/testScanFilter.cpp:
        Bug #10776: Failure to compile ndb ReadNodesConf.cpp on AIX 5.2 (8)
        
        The IBM C++ compiler on AIX doesn't like initializing from pow().
        This works, but breaks a VAL (bool res_cal[TUPLE_NUM] ...) later on.
      ndb/test/odbc/SQL99_test/SQL99_test.cpp:
        Bug #10776: Failure to compile ndb ReadNodesConf.cpp on AIX 5.2 (6)
        
        MAXTHREADS collides with a #define from <sys/thread.h> on AIX
        (IBM compiler).  Call it NDB_MAXTHREADS instead.  Also explicitly
        #undef it here lest someone use it by habit and get really funny
        results.  (K&R says we may #undef non-existent symbols.)
      f5b95d0b
  2. 31 Jul, 2007 4 commits
    • unknown's avatar
      Merge ramayana.hindu.god:/home/tsmith/m/bk/maint/jul31/50 · 66e1555a
      unknown authored
      into  ramayana.hindu.god:/home/tsmith/m/bk/maint/jul31/51
      
      
      mysql-test/r/federated.result:
        Auto merged
      mysql-test/include/mix1.inc:
        Auto merged
      mysql-test/t/federated.test:
        Auto merged
      sql/sql_table.cc:
        Auto merged
      storage/federated/ha_federated.h:
        Auto merged
      mysql-test/r/innodb_mysql.result:
        Use local (manual merge)
      66e1555a
    • unknown's avatar
      Merge ramayana.hindu.god:/home/tsmith/m/bk/51 · 82fbe7a4
      unknown authored
      into  ramayana.hindu.god:/home/tsmith/m/bk/maint/jul31/51
      
      
      mysql-test/r/federated.result:
        Auto merged
      mysql-test/t/federated.test:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_table.cc:
        Auto merged
      storage/federated/ha_federated.h:
        Auto merged
      storage/innobase/handler/ha_innodb.cc:
        Auto merged
      mysql-test/include/mix1.inc:
        Manual merge
      mysql-test/r/innodb_mysql.result:
        Manual merge
      82fbe7a4
    • unknown's avatar
      Merge ramayana.hindu.god:/home/tsmith/m/bk/50 · fe8dd968
      unknown authored
      into  ramayana.hindu.god:/home/tsmith/m/bk/maint/jul31/50
      
      
      mysql-test/r/federated.result:
        Auto merged
      mysql-test/t/federated.test:
        Auto merged
      sql/ha_federated.h:
        Auto merged
      sql/sql_table.cc:
        Auto merged
      mysql-test/r/innodb_mysql.result:
        Manual merge
      mysql-test/t/innodb_mysql.test:
        Manual merge
      fe8dd968
    • unknown's avatar
      Bug #29419 "Specifying a join_buffer > 4GB on 64 bit machines not possible." · d0e8d1ab
      unknown authored
        
      Use size_t instead of uint when calculating join buffer size, because uint can be overflown on 64-bit platforms and join_buffer_size > 4 GB.
        
      The test case for this bug is a part of the test suite for bug #5731.
      
      
      sql/sql_select.cc:
        Use size_t instead of uint when calculating join buffer size, because uint can be overflown on 64-bit platforms and join_buffer_size > 4G.
      d0e8d1ab
  3. 30 Jul, 2007 1 commit
    • unknown's avatar
      mysqld_safe.sh: · b635b286
      unknown authored
        Post-review fix, if 'logger' can't be found, and --syslog is requested, exit with error message instead of fall back to logging to error file.
      
      
      scripts/mysqld_safe.sh:
        Post-review fix, if 'logger' can't be found, and --syslog is requested, exit with error message instead of fall back to logging to error file.
      b635b286
  4. 28 Jul, 2007 2 commits
  5. 27 Jul, 2007 13 commits
    • unknown's avatar
      Merge ramayana.hindu.god:/home/tsmith/m/bk/maint/51-b29992 · b4a10153
      unknown authored
      into  ramayana.hindu.god:/home/tsmith/m/bk/maint/51
      
      
      b4a10153
    • unknown's avatar
      Bug #29992: syslog error logging does not flush · 17f98499
      unknown authored
      Don't use syslog by default; user will have to request it explicitly with the --syslog option.
      
      Use "sed -u" to get unbuffered output from sed, if it's supported.
      
      Otherwise, don't use sed at all - don't strip the timestamp from mysqld messages.
      
      Also, add new --syslog-tag=FOO option, which adds "-FOO" to the tag used when logging messages to syslog (i.e., mysqld-FOO or mysqld_safe-FOO)
      
      Also, explicitly mention where log messages are going, so user can more easily find them.
      
      Also, check if 'logger' is in the PATH, and log to the error log file if it can't be found.
      
      
      17f98499
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0-maint · 6fb214b4
      unknown authored
      into  alf.(none):/src/bug30103/my50-bug30103
      
      
      6fb214b4
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.1-maint · 1aa6f24b
      unknown authored
      into  alf.(none):/src/bug30103/my51-bug30103
      
      
      1aa6f24b
    • unknown's avatar
      Bug#30103 CMake build solution does not remove auto-generated resources · 2302a302
      unknown authored
      - Add CMake rule to remove files.
      - Manual merge.
      
      
      sql/CMakeLists.txt:
        Bug#30103 CMake build solution does not remove auto-generated resources
        - Add CMake rule to remove files.
      2302a302
    • unknown's avatar
      Merge alf.(none):/src/bug30103/my50-bug30103 · 3a7b1c82
      unknown authored
      into  alf.(none):/src/bug30103/my51-bug30103
      
      
      BitKeeper/deleted/.del-CMakeLists.txt~3:
        Auto merged
      3a7b1c82
    • unknown's avatar
      Merge damien-katzs-computer.local:/Users/dkatz/50_hpux · f9d8bae0
      unknown authored
      into  damien-katzs-computer.local:/Users/dkatz/mysql51
      
      
      sql/mysqld.cc:
        Auto merged
      BitKeeper/deleted/.del-yassl.m4~e55e55c1e863abaf:
        Auto merged
      f9d8bae0
    • unknown's avatar
      Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-5.1-maint · f00620ba
      unknown authored
      into  mysql.com:/home/ram/work/b29980/b29980.5.1
      
      
      sql/sql_table.cc:
        Auto merged
      f00620ba
    • unknown's avatar
      Bug#30103 CMake build solution does not remove auto-generated resources · 32cc0694
      unknown authored
      - Add CMake rule to remove files.
      
      
      32cc0694
    • unknown's avatar
      Merge mysql.com:/home/svoj/devel/mysql/BUG29957/mysql-5.0-engines · f97155c9
      unknown authored
      into  mysql.com:/home/svoj/devel/mysql/BUG29957/mysql-5.1-engines
      
      
      storage/myisam/mi_extra.c:
        Auto merged
      mysql-test/r/alter_table.result:
        Manual merge
      mysql-test/t/alter_table.test:
        Manual merge
      f97155c9
    • unknown's avatar
      Merge svojtovich@bk-internal.mysql.com:/home/bk/mysql-5.0-engines · 766725c5
      unknown authored
      into  mysql.com:/home/svoj/devel/mysql/BUG29957/mysql-5.0-engines
      
      
      766725c5
    • unknown's avatar
      BUG#29957 - alter_table.test fails · e92ce5d5
      unknown authored
      INSERT/DELETE/UPDATE followed by ALTER TABLE within LOCK TABLES
      may cause table corruption on Windows.
      
      That happens because ALTER TABLE writes outdated shared state
      info into index file.
      
      Fixed by removing obsolete workaround.
      
      Affects MyISAM tables on Windows only.
      
      
      myisam/mi_extra.c:
        On windows when mi_extra(HA_EXTRA_PREPARE_FOR_DELETE) is called,
        we release external lock and close index file. If we're in LOCK
        TABLES, MyISAM state info doesn't get updated until UNLOCK TABLES.
        
        That means when we release external lock and we're in LOCK TABLES,
        we may write outdated state info.
        
        As SQL layer closes all table instances, we do not need this
        workaround anymore.
      mysql-test/r/alter_table.result:
        A test case for BUG#29957.
      mysql-test/t/alter_table.test:
        A test case for BUG#29957.
      e92ce5d5
    • unknown's avatar
      Bug #25061 Build failure on HP/UX similar to BUG#20507 · 9eaf0ae7
      unknown authored
      Added libCsup as a mysql library dependency on hpux11.
      
      This means any projects statically linking to our libraries using the HPUX11 compiler will need to add the -lCSup option to their build link options. If they use the mysql_config tool this will happen automatically.
      
      Projects that dynamically link to libmysqlclient will continue to work without any modifications.
      
      Library libCsup is a C++ runtime library needed for yassl support when built with the hpux11 C/C++ compiler. The first attempts to fix this bug were to remove the yassl dependencies on libCsup. We tried removing all pure virtual functions and other hacks, but the dependency remained. The only other options left involve extensive restructuring of the yassl library.
          
      
      
      config/ac-macros/yassl.m4:
        Added libCsup as a mysql library dependency on hpux11 when building yassl.
      9eaf0ae7
  6. 26 Jul, 2007 5 commits