1. 05 May, 2005 2 commits
    • unknown's avatar
      After test on Mac OS X fixes · dfb2d19f
      unknown authored
      dfb2d19f
    • unknown's avatar
      WL 1682: · e0504b7e
      unknown authored
      Divide bitvector into .cc and .h file
      
      
      sql/Makefile.am:
        Divide bitvector into .cc file and .h file
      sql/bitvector.cc:
        Fixed up test program for bitvector
      sql/bitvector.h:
        Move out things to .cc file
      sql/handler.cc:
        Forgotten debug statement
      e0504b7e
  2. 04 May, 2005 1 commit
  3. 02 May, 2005 1 commit
    • unknown's avatar
      WL 1682: After review fixes + update bitvector class + bitvector test · 7689fcfb
      unknown authored
      cases + bug fixes
      
      
      mysys/my_bitmap.c:
        Removed debug comments
      sql/bitvector.h:
        Changed a number of things
        Added new methods, new handling of end bits, faster search
        for bits using word by word search..
      sql/field.h:
        Added comment
      sql/ha_federated.cc:
        Fixes
      sql/ha_innodb.cc:
        Fixes
      sql/ha_innodb.h:
        InnoDB still needs the extra calls not needed by anybody else
      sql/ha_ndbcluster.cc:
        Removed some timestamp set bit stuff
        Always write all fields in write_row
      sql/handler.cc:
        No inline methods in bit interface (caused strange bugs)
        initialise method
      sql/handler.h:
        Changed to bitvector from bitmap
        Removed init variable
      sql/opt_range.cc:
        Removed all extra HA_EXTRA_RETRIEVE_*
      sql/sql_acl.cc:
        Removed all extra HA_EXTRA_RETRIEVE_*
      sql/sql_base.cc:
        Set bits previously missed
      sql/sql_insert.cc:
        Removed all extra HA_EXTRA_RETRIEVE_*
        Timestamp handling
      sql/sql_load.cc:
        Updated comments plus set all bits in bitvector
      sql/sql_select.cc:
        Removed ifdef since NDB and Federated needs the same calls
        Added comment or rather changed comment.
      sql/sql_table.cc:
        Removed HA_EXTRA_RETRIEVE_* calls
        Updated comments
      sql/sql_udf.cc:
        Removed HA_EXTRA_RETRIEVE_* calls
        Updated comments
      sql/sql_update.cc:
        Removed HA_EXTRA_RETRIEVE_* calls
        Timstamp updating
      7689fcfb
  4. 28 Apr, 2005 1 commit
    • unknown's avatar
      WL 1682: Use bitvector instead of query_id to tell handler which fields · 5d3af2b0
      unknown authored
      to read and write
      Changed Server code, added new interface to handler and changed the
      NDB handler, InnoDB handler and Federated handler that previously used
      query_id
      Bug#10202 fix (one-liner fix for memory leak)
      
      
      mysys/my_bitmap.c:
        Debug code
      sql/field.cc:
        Initialise fieldnr to 0 if not set anywhere else
      sql/field.h:
        Introduce a fieldnr (first field = 1 and last = table->s->fields
        in field object to be able to quickly set appropriate bit in
        read/write set
      sql/ha_federated.cc:
        Changed federated handler to use write set instead of query_id
      sql/ha_innodb.cc:
        Changed InnoDB handler to use write set instead of query_id
      sql/ha_ndbcluster.cc:
        Changed NDB handler to use write set instead of query_id
      sql/ha_ndbcluster.h:
        Changed NDB handler to use write set instead of query_id
      sql/handler.cc:
        Allocate read_set and write_set either in get_new_handler or in
        special routine
        Routines used at destruction of handler object
        plus routine to set all primary key fields in read_set
      sql/handler.h:
        bool to keep track if read/write set allocated or not in handler
        Deallocate read/write set at delete of handler object
        New bitmap's for read/write set
      sql/item.cc:
        Set bits in read or write set (set_query_id = 2 => write_set
        set_query_id = 1 => read_set
      sql/lock.cc:
        Clear bit set when starting a new statement in external lock
      sql/mysql_priv.h:
        changed set_query_id from bool to ulong
      sql/opt_range.cc:
        Set primary key read set in all places where HA_EXTRA_RETRIEVE_PRIMARY_KEY
        is used
      sql/sql_acl.cc:
        set all bits in read set all places where HA_EXTRA_RETRIEVE_ALL_COLS
        are used
      sql/sql_base.cc:
        Clear all bits before start new statement when table locked already
        Set bit in read/write set dependent on set_query_id and fieldnr
        bool -> ulong for set_query_id
        set all bits in read set for SELECT * queries where table is not view
      sql/sql_class.h:
        Added comments + changed type of set_query_id
      sql/sql_insert.cc:
        Use 2 when setup_fields called for fields to updated in UPDATE
        and INSERT statements
        set primary key fields when EXTRA param used
      sql/sql_load.cc:
        Set all bits in write set if no fields specified in LOAD DATA FROM
        INFILE
        Otherwise use 2 to set specific fields to be updated by LOAD DATA...
      sql/sql_select.cc:
        Set primary key read set when EXTRA param specified
        Set fieldnr for temporary tables
        Set number of fields before calling get_new_handler
        and only set all bits if there at least one field in table
      sql/sql_table.cc:
        Set all bits in read set for old table and all bits in write set for
        new table for ALTER TABLE copy method
        Set all bits in read set when EXTRA param used
      sql/sql_udf.cc:
        Set all bits in read set when EXTRA param used
      sql/sql_update.cc:
        Set fields to UPDATE to use 2 for set_query_id
        Set all bits in read set when EXTRA param used
      sql/table.cc:
        Set fieldnr in openfrm
        Reallocate read/write set in openfrm since table->s->fields==0
        at call to get_new_handler
      sql/unireg.cc:
        Fix Bug #10202
      5d3af2b0
  5. 26 Apr, 2005 1 commit
  6. 25 Apr, 2005 19 commits
  7. 24 Apr, 2005 5 commits
  8. 23 Apr, 2005 4 commits
    • unknown's avatar
      ndb - post merge 4.1->5.0 · 90df3f7f
      unknown authored
      
      ndb/src/kernel/blocks/ERROR_codes.txt:
        post merge 4.1->5.0
      ndb/src/ndbapi/ndberror.c:
        post merge 4.1->5.0
      ndb/test/ndbapi/testOIBasic.cpp:
        post merge 4.1->5.0
      90df3f7f
    • unknown's avatar
      Merge · 49fa63df
      unknown authored
      
      ndb/include/kernel/signaldata/TuxMaint.hpp:
        Auto merged
      ndb/src/kernel/blocks/dbtup/Dbtup.hpp:
        Auto merged
      ndb/src/kernel/blocks/dbtup/DbtupTrigger.cpp:
        Auto merged
      ndb/src/kernel/blocks/dbtux/DbtuxNode.cpp:
        Auto merged
      ndb/src/ndbapi/ndberror.c:
        merge from 4.1
      ndb/test/ndbapi/testOIBasic.cpp:
        merge from 4.1
      49fa63df
    • unknown's avatar
      ndb - bug#10029 fix · ffb64880
      unknown authored
      
      ndb/include/kernel/signaldata/TuxMaint.hpp:
        handle multipl index update failure atomically
      ndb/src/kernel/blocks/dbtup/Dbtup.hpp:
        handle multipl index update failure atomically
      ndb/src/kernel/blocks/dbtup/DbtupTrigger.cpp:
        handle multipl index update failure atomically
      ndb/src/kernel/blocks/dbtup/Notes.txt:
        handle multipl index update failure atomically
      ndb/src/kernel/blocks/dbtux/DbtuxNode.cpp:
        handle multipl index update failure atomically
      ndb/src/ndbapi/ndberror.c:
        handle multipl index update failure atomically
      ndb/test/ndbapi/testOIBasic.cpp:
        handle multipl index update failure atomically
      ffb64880
    • unknown's avatar
      Fix for BUG#10107: Memory leak in view over subquery: · 1bfb1070
      unknown authored
      In mysql_make_view when joining subquery lists, take into account that both lists
      can have length > 1 (see also fix for BUG#8490) 
      (note to bk trigger: this commit is about BUG#10107)
      
      
      sql/sql_view.cc:
        Fix for BUG#10107: In mysql_make_view, when joining subquery lists, take into account 
        that both lists can have length > 1 (see also fix for BUG#8490)
      1bfb1070
  9. 22 Apr, 2005 6 commits
    • unknown's avatar
      Fixes for BUG#10039 "MEMORY engine is reported as HEAP", · f5c3843c
      unknown authored
      BUG#9738 "SHOW VARIABLES still displays the deprecated 'log_update' in 5.0",
      BUG#9542 "MySQL dies with signal 11 when it is using non-existent location of binary logs"
      
      
      
      mysql-test/r/create.result:
        MEMORY, not HEAP
      mysql-test/r/ps_1general.result:
        order changed in SHOW STORAGE ENGINES
      mysql-test/r/variables.result:
        MEMORY, not HEAP
      sql/handler.cc:
        the array of storage engine names is searched in index order, so we must put the preferred name
        before the alias so that the preferred name is printed by MySQL instead of the alias.
      sql/log.cc:
        TC_LOG::open(): don't try to open if the index (relevant only for binlog TC log)
        could not be opened.
      sql/set_var.cc:
        --log-update is deprecated and replaced by --log-bin so don't show log_update in SHOW VARIABLES.
      f5c3843c
    • unknown's avatar
      Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-5.0 · 8d44b2d3
      unknown authored
      into mysql.com:/home/psergey/mysql-5.0-bug8490-2
      
      
      8d44b2d3
    • unknown's avatar
      Fix for BUG#8490: In mysql_make_view for join algorithm views we need · 60496497
      unknown authored
      to insert view's subqueries into select_lex->slave(->next)* chain. 
      In case a join has several such views, don't add the same subqueries several times
      (this forms a loop on the above chain which breaks many parts of the code)
      
      
      mysql-test/r/view.result:
        Testcase for BUG#8490
      mysql-test/t/view.test:
        Testcase for BUG#8490
      60496497
    • unknown's avatar
      Merge mysql.com:/home/mydev/mysql-5.0 · c3e4d6a2
      unknown authored
      into mysql.com:/home/mydev/mysql-5.0-5000
      
      
      c3e4d6a2
    • unknown's avatar
      Merge mskold@bk-internal.mysql.com:/home/bk/mysql-4.1 · af4c58e0
      unknown authored
      into mysql.com:/usr/local/home/marty/MySQL/mysql-4.1
      
      
      af4c58e0
    • unknown's avatar
      Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.0 · 179451fc
      unknown authored
      into mysql.com:/usr/local/home/marty/MySQL/mysql-5.0
      
      
      179451fc