1. 15 Sep, 2008 3 commits
  2. 11 Sep, 2008 4 commits
  3. 10 Sep, 2008 2 commits
  4. 09 Sep, 2008 1 commit
  5. 06 Sep, 2008 4 commits
  6. 05 Sep, 2008 13 commits
  7. 04 Sep, 2008 1 commit
  8. 29 Aug, 2008 3 commits
  9. 28 Aug, 2008 4 commits
  10. 27 Aug, 2008 5 commits
    • Gleb Shchepa's avatar
      Bug #37799: SELECT with a BIT column in WHERE clause · 2c53f109
      Gleb Shchepa authored
                  returns unexpected result
      
      If:
        1. a table has a not nullable BIT column c1 with a length
           shorter than 8 bits and some additional not nullable
           columns c2 etc, and
        2. the WHERE clause is like: (c1 = constant) AND c2 ...,
      the SELECT query returns unexpected result set.
      
      
      The server stores BIT columns in a tricky way to save disk
      space: if column's bit length is not divisible by 8, the
      server places reminder bits among the null bits at the start
      of a record. The rest bytes are stored in the record itself,
      and Field::ptr points to these rest bytes.
      
      However if a bit length of the whole column is less than 8,
      there are no remaining bytes, and there is nothing to store in
      the record at its regular place. In this case Field::ptr points
      to bytes actually occupied by the next column in a record.
      If both columns (BIT and the next column) are NOT NULL,
      the Field::eq function incorrectly deduces that this is the
      same column, so query transformation/equal item elimination
      code (see build_equal_items_for_cond) may mix these columns
      and damage conditions containing references to them.
      2c53f109
    • Mats Kindahl's avatar
      Merging 5.1 into 5.1-rpl-merge · 42339e0f
      Mats Kindahl authored
      42339e0f
    • Georgi Kodinov's avatar
      merged 5.1-bugteam into B37548 tree · a320e867
      Georgi Kodinov authored
      a320e867
    • Georgi Kodinov's avatar
      Bug#37548: result value erronously reported being NULL in certain subqueries · 3468f4b4
      Georgi Kodinov authored
            
      When switching to indexed ORDER BY we must be sure to reset the index read
      flag if we are switching from a covering index to non-covering.
      3468f4b4
    • Mats Kindahl's avatar
      Automerge · 4c30c091
      Mats Kindahl authored
      4c30c091