1. 09 Feb, 2016 9 commits
  2. 08 Feb, 2016 3 commits
    • Sergei Petrunia's avatar
      MDEV-6859: scalar subqueries in a comparison produced unexpected result · b17a4350
      Sergei Petrunia authored
      When one evaluates row-based comparison like (X, Y) = (A,B), one should
      first call bring_value() for the Item that returns row value. If you
      don't do that and just attempt to read values of X and Y, you get stale
      values.
      Semi-join/Materialization can take a row-based comparison apart and
      make ref access from it. In that case, we need to call bring_value()
      to get the index lookup components.
      b17a4350
    • Sergei Golubchik's avatar
      5.5.47-37.7 · 3cfd36bb
      Sergei Golubchik authored
      3cfd36bb
    • Sergei Petrunia's avatar
      MDEV-7823: Server crashes in next_depth_first_tab on nested IN clauses with SQ inside · d443d70d
      Sergei Petrunia authored
      Consider a query with subquery in form t.key=(select ...). Suppose, the
      parent query uses this equality for ref access.
      It will attempt to evaluate the subquery in get_best_combination(),
      right before the join->join_tab[...] array is filled.  The problem was
      that subquery optimization will attempt to look at parent's join->join_tab
      to check how many times subquery will be executed (and crash).
      
      Fixed by not doing that when the subquery is constant (non-constant
      subqueries are only be evaluated during join execution, so they are not
      affected)
      d443d70d
  3. 06 Feb, 2016 8 commits
  4. 05 Feb, 2016 2 commits
  5. 03 Feb, 2016 2 commits
  6. 02 Feb, 2016 1 commit
    • Vladislav Vaintroub's avatar
      MDEV-9466 : Exception handler on Windows does not output any text, · 603c0960
      Vladislav Vaintroub authored
      if mysqld runs as service
      
      The bug is caused by the attempt to write to filedescriptor 2
      (STDERR_FILENO), however in case of a service stderr has different fd
      (debugging shows fileno(stderr) is 4 after freopen, and -1 before it)
      
      Fixed definition of STDERR_FILENO for Windows to be fileno(stderr).
      603c0960
  7. 01 Feb, 2016 2 commits
  8. 29 Jan, 2016 2 commits
  9. 19 Jan, 2016 1 commit
  10. 15 Jan, 2016 2 commits
  11. 13 Jan, 2016 2 commits
  12. 12 Jan, 2016 1 commit
  13. 11 Jan, 2016 4 commits
  14. 08 Jan, 2016 1 commit
    • Sreeharsha Ramanavarapu's avatar
      Bug #22232332: SAVING TEXT FIELD TO TEXT VARIABLE IN A · 863f7ceb
      Sreeharsha Ramanavarapu authored
                     PROCEDURE RESULTS IN GARBAGE BYTES
      
      Issue:
      -----
      This problem occurs under the following conditions:
      
      a) Stored procedure has a variable is declared as TEXT/BLOB.
      b) Data is copied into the the variable using the
         SELECT...INTO syntax from a TEXT/BLOB column.
      
      Data corruption can occur in such cases.
      
      SOLUTION:
      ---------
      The blob type does not allocate space for the string to be
      stored. Instead it contains a pointer to the source string.
      Since the source is deallocated immediately after the
      select statement, this can cause data corruption.
      
      As part of the fix for Bug #21143080, when the source was
      part of the table's write-set, blob would allocate the
      neccessary space. But this fix missed the possibility that,
      as in the above case, the target might be a variable.
      
      The fix will add the copy_blobs check that was removed by
      the earlier fix.
      863f7ceb