1. 06 Oct, 2008 1 commit
  2. 15 Sep, 2008 5 commits
  3. 11 Sep, 2008 4 commits
  4. 10 Sep, 2008 2 commits
  5. 09 Sep, 2008 1 commit
  6. 06 Sep, 2008 4 commits
  7. 05 Sep, 2008 13 commits
  8. 04 Sep, 2008 1 commit
  9. 29 Aug, 2008 3 commits
  10. 28 Aug, 2008 4 commits
  11. 27 Aug, 2008 2 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