1. 08 Feb, 2005 2 commits
    • unknown's avatar
      Better bugfix for "HAVING when refering to RAND()" (Bug #8216) · 8bbefca5
      unknown authored
      Ensure that references in HAVING, ORDER BY or GROUP BY are calculated after fields in SELECT.
      This will ensure that any reference to these has a valid value.
      Generalized the code for split_sum_func()
      
      
      BitKeeper/etc/ignore:
        added support-files/ndb-config-2-node.ini
      mysql-test/r/group_by.result:
        More complicated test to assure that rand() is only calulated once
      mysql-test/r/user_var.result:
        Back to old results :(  (ok but not perfect)
      mysql-test/t/group_by.test:
        More complicated test to assure that rand() is only calulated once
      sql/item.cc:
        Better bugfix for "HAVING when refering to RAND()"
        This will ensure that when refering to things like RAND() in HAVING through an alias we will not recalculate that rand() value in the HAVING part but use the value in the row
        Generalize split_sum_func()
      sql/item.h:
        Better bugfix for "HAVING when refering to RAND()"
        T
      sql/item_cmpfunc.cc:
        Better bugfix for "HAVING when refering to RAND()"
        Use generalized split_sum_func2() function
      sql/item_func.cc:
        Better bugfix for "HAVING when refering to RAND()"
        Use generalized split_sum_func2() function
      sql/item_row.cc:
        Better bugfix for "HAVING when refering to RAND()"
        Use generalized split_sum_func2() function
      sql/item_strfunc.cc:
        Better bugfix for "HAVING when refering to RAND()"
        Use generalized split_sum_func2() function
      sql/sql_list.h:
        Add functions to concatenate lists
      sql/sql_select.cc:
        Better bugfix for "HAVING when refering to RAND()"
        Ensure that references in HAVING, ORDER BY or GROUP BY are calculated after fields in SELECT.
        This will ensure that any reference to these has a valid value.
      8bbefca5
    • unknown's avatar
      1baa3482
  2. 07 Feb, 2005 16 commits
  3. 06 Feb, 2005 4 commits
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1 · 45d3686d
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-4.1
      
      45d3686d
    • unknown's avatar
      fixed test 'subselect' in case when innodb is not compiled in (thanks HF who niticed it) · 9a8c0762
      unknown authored
      
      mysql-test/r/subselect.result:
        test depends on innodb moved from 'subselect' to 'subselect_innodb'
      mysql-test/r/subselect_innodb.result:
        test depends on innodb moved from 'subselect' to 'subselect_innodb'
      mysql-test/t/subselect.test:
        test depends on innodb moved from 'subselect' to 'subselect_innodb'
      mysql-test/t/subselect_innodb.test:
        test depends on innodb moved from 'subselect' to 'subselect_innodb'
      9a8c0762
    • unknown's avatar
      Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1 · dc88f847
      unknown authored
      into mysql.com:/home/jonas/src/mysql-4.1
      
      dc88f847
    • unknown's avatar
      bug8262 - ndb · da00a33c
      unknown authored
        crash if scan is poped from queue before all attrinfo has arrived
      
      
      ndb/src/kernel/blocks/dblqh/DblqhMain.cpp:
        only restart scan if all attrinfo has arrived
        otherwise just set remove from queue and set state
      ndb/src/kernel/blocks/dbtc/DbtcMain.cpp:
        new error insert - force send attrinfo
      ndb/test/ndbapi/testScan.cpp:
        new test bug8262 many threads - scanning small tables
      ndb/test/run-test/daily-basic-tests.txt:
        run new test case in autotest
      da00a33c
  4. 05 Feb, 2005 2 commits
  5. 04 Feb, 2005 16 commits
    • unknown's avatar
      Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-4.1 · b63fda51
      unknown authored
      into mysql.com:/home/psergey/mysql-4.1-bug7816
      
      b63fda51
    • unknown's avatar
      A fix for Bug#6273 "building fails on link": we should not use · c03926d5
      unknown authored
      CLIENT_LIBS in mysql_config as CLIENT_LIBS point to builddir when
      we use the bundled zlib.
      
      
      acinclude.m4:
        Extend MYSQL_CHECK_ZLIB_WITH_COMPRESS m4 macro to substitute ZLIB_DEPS -
        this is a special version of ZLIB_LIBS to use in mysql_config
      configure.in:
        Remove NON_THREADED_CLIENT_LIBS which weren't really 
        NON_THREADED_CLIENT_LIBS and use NON_THREADED_LIBS instead.
        AC_SUBST NON_THREADED_LIBS and STATIC_NSS_FLAGS as they're now
        needed inside mysql_config.sh
      scripts/Makefile.am:
        Add STATIC_NSS_FLAGS, NON_THREADED_LIBS and ZLIB_DEPS to sed 
        substitution list.
      scripts/mysql_config.sh:
        We can't use CLIENT_LIBS as in case when we use the bundled zlib
        it has a reference to $(top_builddir)/zlib.
        libs and libs_r now need to be specified explicitly.
      zlib/Makefile.am:
        Install libz.la in case it's used by MySQL: this way we guarantee
        that paths printed by mysql_config are valid in all cases.
      c03926d5
    • unknown's avatar
      Backport of ChangeSet 1.1845 05/02/04 13:53:16 guilhem@mysql.com +1 -0 from 5.0. · 0c22eaa9
      unknown authored
      Proposal to fix this problem: when using libmysqlclient, you must call mysql_server_end() to nicely free memory at the end
      of your program; it however sounds weird to call a function named *SERVER_end* when you're the CLIENT (you're not ending the server, you're ending
      your ability to talk to servers). So here I add two defines which should be more generic names. Our manual
      mentions these functions only for libmysqld API so needs some fixing, and then we can close BUG#8099 and BUG#6149.
      
      
      include/mysql.h:
        Creating synonyms (defines): mysql_library_init for mysql_server_init, mysql_library_end for mysql_server_end;
        these new names are more generic, so suitable when using libmysqlclient as well as libmysqld.
      0c22eaa9
    • unknown's avatar
      Fix for BUG#8055 "Trouble with replication from temporary tables and ignores": · 19add49c
      unknown authored
      when we close the session's temp tables at session end, we automatically write to binlog *one* DROP TEMPORARY TABLE *per tmp table*.
      
      
      mysql-test/r/drop_temp_table.result:
        result update (note: one DROP TEMPORARY TABLE per tmp table)
      mysql-test/t/drop_temp_table.test:
        checking that we have one DROP TEMPORARY TABLE per tmp table now, not one multi-table DROP.
        Hiding columns Log_pos/End_log_pos per Monty's request.
      sql/sql_base.cc:
        When we close the session's temp tables at session end, we automatically write to binlog one DROP TEMPORARY TABLE per tmp table, 
        not one single multi-table DROP TEMPORARY TABLE (because it causes problems if slave has --replicate*table rules).
      19add49c
    • unknown's avatar
      Merge mysql.com:/home/jimw/my/mysql-4.1-8029 · 32468d3a
      unknown authored
      into mysql.com:/home/jimw/my/mysql-4.1-clean
      
      32468d3a
    • unknown's avatar
      Merge mysql.com:/home/jimw/my/mysql-4.1-6067 · a2f1d7d5
      unknown authored
      into mysql.com:/home/jimw/my/mysql-4.1-clean
      
      
      sql/field.cc:
        Auto merged
      a2f1d7d5
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-4.1 · 7794fe74
      unknown authored
      into mysql.com:/home/jimw/my/mysql-4.1-clean
      
      7794fe74
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-4.1 · 4d9faee1
      unknown authored
      into mysql.com:/home/mysqldev/tulin/mysql-4.1
      
      4d9faee1
    • unknown's avatar
      Merge Bug#7310 from 4.0 · 81200b5b
      unknown authored
      81200b5b
    • unknown's avatar
      Merge serg@bk-internal.mysql.com:/home/bk/mysql-4.1/ · 42d48eba
      unknown authored
      into serg.mylan:/usr/home/serg/Abk/mysql-4.1
      
      42d48eba
    • unknown's avatar
      Embedded version of test fixed · f464084d
      unknown authored
      
      mysql-test/r/insert_select.result.es:
        Test.es fixed
      f464084d
    • unknown's avatar
      Merge serg@bk-internal.mysql.com:/home/bk/mysql-4.1/ · e2950ae3
      unknown authored
      into serg.mylan:/usr/home/serg/Abk/mysql-4.1
      
      
      sql/item_func.cc:
        Auto merged
      e2950ae3
    • unknown's avatar
      indexless boolean fulltext search was depending on default_charset_info - Bug#8159 · 1d866688
      unknown authored
      ftbw->off wasn't cleared on reinit - Bug#8234
      
      
      include/ft_global.h:
        get rid of default_charset_info in indexless fulltext searches
      myisam/ft_boolean_search.c:
        get rid of default_charset_info in indexless fulltext searches
        clear ftbw->off on reinits
      myisam/ft_static.c:
        get rid of default_charset_info in indexless fulltext searches
      myisam/ftdefs.h:
        get rid of default_charset_info in indexless fulltext searches
      sql/ha_myisam.h:
        get rid of default_charset_info in indexless fulltext searches
      sql/handler.h:
        get rid of default_charset_info in indexless fulltext searches
      sql/item_func.cc:
        get rid of default_charset_info in indexless fulltext searches
      1d866688
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-4.1 · ae5b259c
      unknown authored
      into mysql.com:/home/mysqldev/tulin/mysql-4.1
      
      ae5b259c
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1 · 96c8f4f0
      unknown authored
      into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1
      
      96c8f4f0
    • unknown's avatar
      added test to trigger drifferent fragmentations in ndb · 6dabd8e5
      unknown authored
          corrected documentation on fragmentation
          set "fragmentation medium" to mean 2 fragments per node instead of 1
          set default fragmentation to small instead of medium
          bug#8284 adjust fragmentation to max_rows
      
      
      mysql-test/r/ndb_basic.result:
        added test to trigger drifferent fragmentations in ndb
      mysql-test/t/ndb_basic.test:
        added test to trigger drifferent fragmentations in ndb
      ndb/include/ndbapi/NdbDictionary.hpp:
        corrected documentation on fragmentation
      ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        set "fragmentation medium" to mean 2 fragments per node instead of 1
      ndb/src/ndbapi/NdbDictionaryImpl.cpp:
        set default fragmentation to small instead of medium
      sql/ha_ndbcluster.cc:
        bug#8284 adjust fragmentation to max_rows
      6dabd8e5