1. 12 Aug, 2004 1 commit
    • unknown's avatar
      fixed Bug #4358 Problem with HAVING clause that uses alias · 7e5247aa
      unknown authored
             from the select list and TEXT field 
      
      make setup_copy_fields to insert Item_copy_string for blobs in 
      the beginning of the copy_funcs (push_back instead of push_front)
      
      the thing is that Item_copy_string::copy for function can call 
      Item_copy_string::val_int for blob via Item_ref.
      But if Item_copy_string::copy for blob isn't called before, 
      it's value will be wrong.
      
      So all the Item_copy_string::copy for blobs should be called before 
      Item_copy_string::copy for functions.
      
      
      mysql-test/r/having.result:
        added test case for
        Bug #4358 Problem with HAVING clause that uses
                    alias from the select list and TEXT field
      mysql-test/t/having.test:
        added test case for
        Bug #4358 Problem with HAVING clause that uses
                    alias from the select list and TEXT field
      sql/sql_select.cc:
        make setup_copy_fields to insert Item_copy_string for blobs in 
        the beginning of the copy_funcs (push_back instead of push_front)
        
        the thing is that Item_copy_string::copy for function can call 
        Item_copy_string::val_int for blob via Item_ref.
        But if Item_copy_string::copy for blob isn't called before, 
        it's value will be wrong.
        
        So all the Item_copy_string::copy for blobs should be called before 
        Item_copy_string::copy for functions.
        
        fixed 
        Bug #4358 Problem with HAVING clause that
                   uses alias from the select list and TEXT field
      7e5247aa
  2. 28 Jun, 2004 1 commit
  3. 27 Jun, 2004 2 commits
  4. 25 Jun, 2004 7 commits
  5. 24 Jun, 2004 6 commits
    • unknown's avatar
      parameter of my_yyoverflow made independed from YYSIZE_T (BUG#4204) · d75022ff
      unknown authored
      
      sql/sql_parse.cc:
        parameter of my_yyoverflow made independed from YYSIZE_T
      sql/sql_yacc.yy:
        parameter of my_yyoverflow made independed from YYSIZE_T
      d75022ff
    • unknown's avatar
      bug#3565 - HANDLER and FLUSH TABLE/TABLES deadlock. · 8f6664c5
      unknown authored
      Redesigned the handler close functions so that they are usable
      at different places where waiting for closing tables is done.
      
      
      mysql-test/r/flush_table.result:
        bug#3565 - HANDLER and FLUSH TABLE/TABLES deadlock.
        Added the test results.
      mysql-test/t/flush_table.test:
        bug#3565 - HANDLER and FLUSH TABLE/TABLES deadlock.
        Activated old test case.
        Added new test cases.
      sql/mysql_priv.h:
        bug#3565 - HANDLER and FLUSH TABLE/TABLES deadlock.
        Made mysql_ha_close() more flexible.
        Removed mysql_ha_closeall(), which closed only one table despite its name.
        Added mysql_ha_close_list(), which closes the complete list or all tables and does not lock.
        Removed a duplicate declaration.
      sql/sql_base.cc:
        bug#3565 - HANDLER and FLUSH TABLE/TABLES deadlock.
        Added proper close calls before some wait points to avoid deadlocks
        or infinite loops.
      sql/sql_handler.cc:
        bug#3565 - HANDLER and FLUSH TABLE/TABLES deadlock.
        Redesigned the internal function find_table_ptr_by_name().
        It can now suppress locking and tells if the requested table
        has been flushed by itself.
        Extended mysql_ha_close() so that it can now suppres locking
        and error reporting. That way it can be used at more places and the
        old function mysql_ha_closeall() is now obsolete.
        Added a new function mysql_ha_close_list() which closes a whole list
        of HANDLER tables or all HANDLER tables, if the list is NULL.
        Furthermore is can close all 'old' (marked for flush) HANDLER tables.
      sql/sql_table.cc:
        bug#3565 - HANDLER and FLUSH TABLE/TABLES deadlock.
        Replaced the obsolte mysql_ha_closeall() by the new mysql_ha_close().
      8f6664c5
    • unknown's avatar
      bug#2686 - index_merge select on BerkeleyDB table with varchar PK causes mysqld to crash. · afe29967
      unknown authored
      Added put_length() to get_length() and unpack_key() to pack_key().
      Keys were packed with the minimum size of the length field for the key part and 
      unpacked with length size of the base column. 
      For the purpose of optimal key packing we have the method pack_key(), while rows are 
      packed with pack(). Now keys are unpacked with unpack_key() and no longer with 
      unpack() which is used for rows.
      
      
      mysql-test/r/bdb.result:
        bug#2686 - index_merge select on BerkeleyDB table with varchar PK causes mysqld to crash.
        Added the test case results.
      mysql-test/t/bdb.test:
        bug#2686 - index_merge select on BerkeleyDB table with varchar PK causes mysqld to crash.
        Added the test case.
      sql/field.cc:
        bug#2686 - index_merge select on BerkeleyDB table with varchar PK causes mysqld to crash.
        Added put_length() to get_length() and unpack_key() to pack_key().
        Keys were packed with the minimum size of the length field for the key part and 
        unpacked with length size of the base column. 
        For the purpose of optimal key packing we have the method pack_key(), while rows are packed 
        with pack(). Now keys are unpacked with unpack_key() and no longer with unpack() which is 
        used for rows.
      sql/field.h:
        bug#2686 - index_merge select on BerkeleyDB table with varchar PK causes mysqld to crash.
        Added put_length() to get_length() and unpack_key() to pack_key().
        The default implementation simply calls unpack() for those field types that don't need 
        a special key unpacking.
      sql/ha_berkeley.cc:
        bug#2686 - index_merge select on BerkeleyDB table with varchar PK causes mysqld to crash.
        Now keys are unpacked with unpack_key() and no longer with unpack() which is used for rows.
        For most field types, however, this simply calls unpack().
      afe29967
    • unknown's avatar
      Merge mysql.com:/home/mydev/mysql-4.0 · 098a1e3a
      unknown authored
      into mysql.com:/home/mydev/mysql-4.0-bug2688
      
      
      098a1e3a
    • unknown's avatar
      Development.fgl: · b24c837e
      unknown authored
        add typelib.h to filelist
      Clients and Tools.fgl:
        add libmysql.dll to file list
      4.0.XX-gpl.ipr:
        Various fixes to installshield project file (added files)
      
      
      VC++Files/InstallShield/4.0.XX-gpl/4.0.XX-gpl.ipr:
        Various fixes to installshield project file (added files)
      VC++Files/InstallShield/4.0.XX-gpl/File Groups/Clients and Tools.fgl:
        add libmysql.dll to file list
      VC++Files/InstallShield/4.0.XX-gpl/File Groups/Development.fgl:
        add typelib.h to filelist
      b24c837e
    • unknown's avatar
      Do-rpm: · e31f042f
      unknown authored
        Small fix to handle the src rpm file correctly (contains '0', release number in spec file)
      
      
      Build-tools/Do-rpm:
        Small fix to handle the src rpm file correctly (contains '0', release number in spec file)
      e31f042f
  6. 23 Jun, 2004 3 commits
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.0 · 429f9d05
      unknown authored
      into mysql.com:/home/my/mysql-4.0
      
      
      429f9d05
    • unknown's avatar
      lower_case_table_names=2 (Keep case for table names) was not honored · 3db93f80
      unknown authored
      with ALTER TABLE and CREATE/DROP INDEX. (Bug #3109)
      Make net_buffer_length visible for mysql clients (Bug #4206)
      
      
      include/mysql.h:
        Make net_buffer_length visible for mysql clients
      libmysql/libmysql.c:
        Make net_buffer_length visible for mysql clients
      mysql-test/mysql-test-run.sh:
        Don't give warning for some common 'safe' warnings
      mysql-test/r/lowercase_table2.result:
        Test name conversion with ALTER TABLE / CREATE INDEX (Bug #3109)
      mysql-test/t/lowercase_table2.test:
        Test name conversion with ALTER TABLE / CREATE INDEX (Bug #3109)
      scripts/mysql_install_db.sh:
        Removed not used variable
      sql/sql_table.cc:
        lower_case_table_names=2 (Keep case for table names) was not honored
        with ALTER TABLE and CREATE/DROP INDEX. (Bug #3109)
      3db93f80
    • unknown's avatar
      Merge marko@build.mysql.com:/home/bk/mysql-4.0 · a2c50670
      unknown authored
      into hundin.mysql.fi:/home/marko/k/mysql-4.0
      
      
      a2c50670
  7. 22 Jun, 2004 10 commits
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.0 · 9a9c59db
      unknown authored
      into here.mwagner.org:/Volumes/BK/mysql-4.0
      
      
      9a9c59db
    • unknown's avatar
      Merge here.mwagner.org:/Volumes/BK/mysql-4.0 · 5b2e07b1
      unknown authored
      into here.mwagner.org:/Volumes/BK/mysql-4.0-work
      
      
      5b2e07b1
    • unknown's avatar
      my_md5sum: · 05d7867d
      unknown authored
        Change behaviour to be like the md5sum in GNU coreutils
      
      
      Build-tools/my_md5sum:
        Change behaviour to be like the md5sum in GNU coreutils
      05d7867d
    • unknown's avatar
      Merge lgrimmer@build.mysql.com:/home/bk/mysql-4.0 · 1c1dcdd1
      unknown authored
      into mysql.com:/space/my/mysql-4.0
      
      
      1c1dcdd1
    • unknown's avatar
      - rephrased comment · 1f9209cc
      unknown authored
      1f9209cc
    • unknown's avatar
      - Applied some portability fixes for SGI IRIX/MipsPro compiler · e2e0eb3b
      unknown authored
         (e.g. a fix for BUG#3507 and some modifications recommended
         by Andrea Suatoni and Joerg Behrens - thank you!)
      
      
      acinclude.m4:
         - OpenSSL libs are installed in /usr/freeware/include and
           /usr/freeware/lib32 on SGI IRIX - expanded search list
      man/mysqlaccess.1.in:
         - cosmetical fix
      man/mysqldump.1.in:
         - cosmetical fix
      mysys/hash.c:
         - portability fix: some compilers can't handle inlining of rec_hashnr
           (BUG#3507)
      vio/test-sslserver.c:
         - portability fix for SGI MipsPro compiler: define client_len as
           "socklen_t" instead of "size_t"
      e2e0eb3b
    • unknown's avatar
      bug#2688 - Wrong index_merge query results for BDB table with variable length primary key. · 8f3b8de2
      unknown authored
      dded code to clear the tail of the reference buffer if the actual key length 
      is less than the maximum key length.
      
      
      mysql-test/r/bdb.result:
        bug#2688 - Wrong index_merge query results for BDB table with variable length primary key.
        Added the test case results.
      mysql-test/t/bdb.test:
        bug#2688 - Wrong index_merge query results for BDB table with variable length primary key.
        Added the test case.
      sql/ha_berkeley.cc:
        bug#2688 - Wrong index_merge query results for BDB table with variable length primary key.
        Added code to clear the tail of the reference buffer if the actual key length 
        is less than the maximum key length.
      8f3b8de2
    • unknown's avatar
      lexyy.c, pars0lex.l: · a331664d
      unknown authored
        Document the handling of quoted strings
      
      
      innobase/pars/pars0lex.l:
        Document the handling of quoted strings
      innobase/pars/lexyy.c:
        Document the handling of quoted strings
      a331664d
    • unknown's avatar
      Merge marko@build.mysql.com:/home/bk/mysql-4.0 · 81221dcb
      unknown authored
      into hundin.mysql.fi:/home/marko/k/mysql-4.0
      
      
      81221dcb
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.0 · 4d39221a
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-qc-4.0
      
      
      4d39221a
  8. 21 Jun, 2004 3 commits
  9. 20 Jun, 2004 1 commit
  10. 19 Jun, 2004 1 commit
    • unknown's avatar
      mem0dbg.c: · 94df4f36
      unknown authored
        InnoDB with UNIV_MEM_DEBUG did not compile because a global variable was forgotten when we put back mem_print_info() functions 2 days ago; add that variable
      
      
      innobase/mem/mem0dbg.c:
        InnoDB with UNIV_MEM_DEBUG did not compile because a global variable was forgotten when we put back mem_print_info() functions 2 days ago; add that variable
      94df4f36
  11. 18 Jun, 2004 5 commits
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.0 · c02eb02c
      unknown authored
      into here.mwagner.org:/Volumes/BK/mysql-4.0-work
      
      
      BitKeeper/etc/logging_ok:
        auto-union
      c02eb02c
    • unknown's avatar
      my_md5sum: · 00ad281d
      unknown authored
        new file, simulates 'md5sum' as a perl script
      
      
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      00ad281d
    • unknown's avatar
      mach0data.ic, mach0data.h: · eac5455a
      unknown authored
        Improve documentation of mach_*write_*compressed()
      mtr0log.ic, mtr0log.h:
        Improve documentation of mlog_write_initial_log_record_fast()
      
      
      innobase/include/mtr0log.h:
        Improve documentation of mlog_write_initial_log_record_fast()
      innobase/include/mtr0log.ic:
        Improve documentation of mlog_write_initial_log_record_fast()
      innobase/include/mach0data.h:
        Improve documentation of mach_*write_*compressed()
      innobase/include/mach0data.ic:
        Improve documentation of mach_*write_*compressed()
      eac5455a
    • unknown's avatar
      Merge miguel@bk-internal.mysql.com:/home/bk/mysql-4.0 · 20985f3e
      unknown authored
      into hegel.txg:/home/miguel/bk/mysql-4.0
      
      
      20985f3e
    • unknown's avatar
      Fix for bug #4182 · 0badf47d
      unknown authored
      
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      0badf47d