1. 26 Feb, 2010 23 commits
    • Andrei Elkin's avatar
      merging from 5.1 rep to a local branch · 97e2ec40
      Andrei Elkin authored
      97e2ec40
    • Staale Smedseng's avatar
      Bug #45058 init_available_charsets uses double checked locking · 04f14347
      Staale Smedseng authored
      A client doing multiple mysql_library_init() and
      mysql_library_end() calls over the lifetime of the process may
      experience lost character set data, potentially even a
      SIGSEGV.
      
      This patch reinstates the reloading of character set data when
      a mysql_library_init() is done after a mysql_library_end().
      04f14347
    • Sergey Glukhov's avatar
      Bug#47669 Query showed by EXPLAIN EXTENDED gives different result from original query · 5d9a74f2
      Sergey Glukhov authored
      Item_field::print method does not take into
      account fields whose values may be null.
      The fix is to print 'NULL' if field value is null.
      5d9a74f2
    • Andrei Elkin's avatar
      merging from 5.1-bt rep to local branch · 57d6b444
      Andrei Elkin authored
      57d6b444
    • Sergey Vojtovich's avatar
      Merge innodb-5.1-ss6765 to 5.1-bugteam. · 3fcb25d8
      Sergey Vojtovich authored
      3fcb25d8
    • Andrei Elkin's avatar
      merging fixes of bug@45576 to 5.1-bt · 41eda14f
      Andrei Elkin authored
      41eda14f
    • Sergey Glukhov's avatar
      automerge · 1bb6ea17
      Sergey Glukhov authored
      1bb6ea17
    • Andrei Elkin's avatar
      Bug #45576 rpl_row_create_table fails on PB2 · 8bd18cdb
      Andrei Elkin authored
      The test failed due to Bug #29790.
      However, logics of the failing part does not need I_S selecting.
      
      Fixing to remove the non-deterministic I_S selecting as redundant
      from a part of the test dealing with BUG@22864.
      8bd18cdb
    • Andrei Elkin's avatar
      merging fixes of bug@51089 to 5.1-bt · 05d24d94
      Andrei Elkin authored
      05d24d94
    • Andrei Elkin's avatar
      merging fixes of bug@51089 to 5.1-bt · 83adbfeb
      Andrei Elkin authored
      83adbfeb
    • Andrei Elkin's avatar
      bug#51089 · bb78b055
      Andrei Elkin authored
      correcting c&p typos in the results
      bb78b055
    • Andrei Elkin's avatar
      bug#51089 · a5430f45
      Andrei Elkin authored
      correcting c&p typos in the test
      a5430f45
    • Andrei Elkin's avatar
      merging fixes of bug@51089 to 5.1-bt · d1114834
      Andrei Elkin authored
      d1114834
    • Sergey Glukhov's avatar
      Bug#50995 Having clause on subquery result produces incorrect results. · fe94dec6
      Sergey Glukhov authored
      The problem is that cond->fix_fields(thd, 0) breaks
      condition(cuts off 'having'). The reason of that is
      that NULL valued Item pointer is present in the
      middle of Item list and it breaks the Item processing
      loop.
      fe94dec6
    • Evgeny Potemkin's avatar
      Auto-merged fox for the bug#50843. · a0723c06
      Evgeny Potemkin authored
      a0723c06
    • Evgeny Potemkin's avatar
      Bug#50843: Filesort used instead of clustered index led to · cc01fc3f
      Evgeny Potemkin authored
      performance degradation.
      
      Filesort + join cache combination is preferred to full index scan because it
      is usually faster. But it's not the case when the index is clustered one.
      
      Now test_if_skip_sort_order function prefers filesort only if index isn't
      clustered.
      cc01fc3f
    • Sergey Vojtovich's avatar
      Applying InnoDB snapshot, fixes BUG#50691 · 42d56179
      Sergey Vojtovich authored
      Detailed revision comments:
      
      r6669 | jyang | 2010-02-11 12:24:19 +0200 (Thu, 11 Feb 2010) | 7 lines
      branches/5.1: Fix bug #50691, AIX implementation of readdir_r
      causes InnoDB errors. readdir_r() returns an non-NULL value
      in the case of reaching the end of a directory. It should
      not be treated as an error return.
      
      rb://238 approved by Marko
      42d56179
    • Sergey Vojtovich's avatar
      Applying InnoDB snapshot, fixes BUG#38901 · 757a1ff3
      Sergey Vojtovich authored
      Detailed revision comments:
      
      r6613 | inaam | 2010-02-09 20:23:09 +0200 (Tue, 09 Feb 2010) | 11 lines
      branches/5.1: Fix Bug #38901
      InnoDB logs error repeatedly when trying to load page into buffer pool
      
      In buf_page_get_gen() if we are unable to read a page (because of
      corruption or some other reason) we keep on retrying. This fills up
      error log with millions of entries in no time and we'd eventually run
      out of disk space. This patch limits the number of attempts that we
      make (currently set to 100) and after that we abort with a message.
      
      rb://241 Approved by: Heikki
      757a1ff3
    • Sergey Vojtovich's avatar
      Applying InnoDB snapshot, fixes BUG#49001 · 167888c6
      Sergey Vojtovich authored
      Detailed revision comments:
      
      r6545 | jyang | 2010-02-03 03:57:32 +0200 (Wed, 03 Feb 2010) | 8 lines
      branches/5.1: Fix bug #49001, "SHOW INNODB STATUS deadlock info
      incorrect when deadlock detection aborts". Print the correct
      lock owner when recursive function lock_deadlock_recursive()
      exceeds its maximum depth LOCK_MAX_DEPTH_IN_DEADLOCK_CHECK.
      
      rb://217, approved by Marko.
      167888c6
    • Sergey Vojtovich's avatar
      Applying InnoDB snapshot · 6d4e34ca
      Sergey Vojtovich authored
      Detailed revision comments:
      
      r6538 | sunny | 2010-01-30 00:43:06 +0200 (Sat, 30 Jan 2010) | 6 lines
      branches/5.1: Check *first_value every time against the column max
      value and  set *first_value to next autoinc if it's > col max value.
      ie.  not rely on what is passed in from MySQL.
      
      [49497] Error 1467 (ER_AUTOINC_READ_FAILED) on inserting a negative value
      rb://236
      6d4e34ca
    • Sergey Vojtovich's avatar
      Applying InnoDB snapshot · ac68d90f
      Sergey Vojtovich authored
      Detailed revision comments:
      
      r6537 | sunny | 2010-01-30 00:35:00 +0200 (Sat, 30 Jan 2010) | 2 lines
      branches/5.1: Undo r6536.
      ac68d90f
    • Sergey Vojtovich's avatar
      Applying InnoDB snapshot · 91c42548
      Sergey Vojtovich authored
      Detailed revision comments:
      
      r6536 | sunny | 2010-01-30 00:13:42 +0200 (Sat, 30 Jan 2010) | 6 lines
      branches/5.1: Check *first_value everytime against the column max
      value and  set *first_value to next autoinc if it's > col max value.
      ie.  not rely on what is passed in from MySQL.
      
      [49497] Error 1467 (ER_AUTOINC_READ_FAILED) on inserting a negative value
      rb://236
      91c42548
    • Sergey Vojtovich's avatar
      Applying InnoDB snapshot · ffad1562
      Sergey Vojtovich authored
      Detailed revision comments:
      
      r6535 | sunny | 2010-01-30 00:08:40 +0200 (Sat, 30 Jan 2010) | 11 lines
      branches/5.1: Undo the change from r6424. We need to return DB_SUCCESS even
      if we were unable to initialize the tabe autoinc value. This is required for
      the open to succeed. The only condition we currently treat as a hard error
      is if the autoinc field instance passed in by MySQL is NULL.
      
      Previously if the table autoinc value was 0 and the next value was requested
      we had an assertion that would fail. Change that assertion and treat a value
      of 0 to mean that the autoinc system is unavailable. Generation of next
      value will now return failure.
      
      rb://237
      ffad1562
  2. 25 Feb, 2010 6 commits
    • Gleb Shchepa's avatar
      Bug #45360: wrong results · 79d8de67
      Gleb Shchepa authored
      Propagation of a large unsigned numeric constant
      in the WHERE expression led to wrong result.
      
      For example,
      "WHERE a = CAST(0xFFFFFFFFFFFFFFFF AS USIGNED) AND FOO(a)",
      where a is an UNSIGNED BIGINT, and FOO() accepts strings,
      was transformed to "... AND FOO('-1')".
      
      That has been fixed.
      
      Also EXPLAIN EXTENDED printed incorrect numeric constants in
      transformed WHERE expressions like above. That has been
      fixed too.
      79d8de67
    • Alexey Kopytov's avatar
      Automerge. · 3dc16466
      Alexey Kopytov authored
      3dc16466
    • Alexey Kopytov's avatar
      Bug #50335: Assertion `!(order->used & map)' in eq_ref_table · 735de9ea
      Alexey Kopytov authored
       
      The problem was in an incorrect debug assertion. The expression 
      used in the failing assertion states that when finding 
      references matching ORDER BY expressions, there can be only one 
      reference to a single table. But that does not make any sense, 
      all test cases for this bug are valid examples with multiple 
      identical WHERE expressions referencing the same table which
      are also present in the ORDER BY list. 
       
      Fixed by removing the failing assertion. We also have to take 
      care of the 'found' counter so that we count multiple 
      references only once. We rely on this fact later in 
      eq_ref_table(). 
      735de9ea
    • Georgi Kodinov's avatar
      merge · 6f3770ca
      Georgi Kodinov authored
      6f3770ca
    • Georgi Kodinov's avatar
      b5ae1327
    • Andrei Elkin's avatar
      Bug #51089 SHOW STATUS LIKE 'Slave_running' is not compatible with `SHOW SLAVE STATUS' · c23aee47
      Andrei Elkin authored
      backporting of bug@30703 to 5.1.
      The fixes are backed up with a regression test.
      c23aee47
  3. 23 Feb, 2010 2 commits
    • Magne Mahre's avatar
      Clean-up in the sys_vars test suite after · a341ec74
      Magne Mahre authored
      WL#5154 and WL5182
      
      Two result files in the sys_vars suite wasn't 
      properly updated after the change in
      deprecation text
      a341ec74
    • Magne Mahre's avatar
      Revert of a change introduced by Bug#47974 · 0d41207c
      Magne Mahre authored
      "TYPE=storage_engine" is deprecated, and will be removed
      in the Celosia release of MySQL.  Since the option is
      present in the Betony release and the version number of
      Celosia is still not decided, we need to bump the
      deprecation version number back up to "6.0".
      0d41207c
  4. 22 Feb, 2010 8 commits
  5. 20 Feb, 2010 1 commit