1. 16 Sep, 2018 1 commit
  2. 15 Sep, 2018 3 commits
    • Igor Babaev's avatar
      Fixed a compiler warning. · 7419f72b
      Igor Babaev authored
      7419f72b
    • Elena Stepanova's avatar
      Disable incompatible tests · 7c76f8aa
      Elena Stepanova authored
      7c76f8aa
    • Igor Babaev's avatar
      MDEV-17154 Multiple selects from parametrized CTE fails with syntax error · 3473e045
      Igor Babaev authored
      This patch fills a serious flaw in the implementation of common table
      expressions. Before this patch an attempt to prepare a statement from
      a query with a parameter marker in a CTE that was used more than once
      in the query ended up with a bogus error message. Similarly if a statement
      in a stored procedure contained a CTE whose specification used a
      local variables and this CTE was referred to more than once in the
      statement then the server failed to execute the stored procedure returning
      a bogus error message on a non-existing field.
      
      The problems appeared due to incorrect handling of parameter markers /
      local variables in CTEs that were referred more than once.
      
      This patch fixes the problems by differentiating between the original
      occurrences of a parameter marker / local variable used in the
      specification of a CTE and the corresponding occurrences used
      in copies of this specification. These copies are substituted
      instead of non-first references to the CTE.
      
      The idea of the fix and even some code were taken from the MySQL
      implementation of the common table expressions.
      3473e045
  3. 14 Sep, 2018 2 commits
  4. 13 Sep, 2018 5 commits
  5. 12 Sep, 2018 1 commit
  6. 11 Sep, 2018 4 commits
  7. 10 Sep, 2018 1 commit
    • Sergey Vojtovich's avatar
      MDEV-16773 - Assertion failed in tdc_remove_table · e76c4c06
      Sergey Vojtovich authored
      This assertion fails in thread that removes all table instances for
      particular table from table cache (e.g. "DROP TABLE") while another
      thread evicts table instance of the same table from table cache
      concurrently.
      
      After "MDEV-10296 - Multi-instance table cache" there is a gap in
      eviction code of tc_add_table() between removing table from free_tables
      and all_tables not protected by any mutexes.
      
      This is now valid table cache state, however assertion wasn't amended
      along with original patch. Moved assertion down, after waiting for such
      table instances to get closed.
      e76c4c06
  8. 08 Sep, 2018 3 commits
    • Daniel Bartholomew's avatar
      bump the VERSION · f1bcfbb4
      Daniel Bartholomew authored
      f1bcfbb4
    • Jan Lindström's avatar
      Add one more wait for truncate in MW-44. · f01c4a10
      Jan Lindström authored
      f01c4a10
    • Igor Babaev's avatar
      MDEV-17024 Crash on large query · 4d991abd
      Igor Babaev authored
      This problem manifested itself when a join query used two or more
      materialized CTE such that each of them employed the same recursive CTE.
      The bug caused a crash. The crash happened because the cleanup()
      function was performed premature for recursive CTE. This clean up was
      induced by the cleanup of the first CTE referenced the recusrsive CTE.
      This cleanup destroyed the structures that would allow to read from the
      temporary table containing the rows of the recursive CTE and an attempt to read
      these rows for the second CTE referencing the recursive CTE triggered a
      crash.
      The clean up for a recursive CTE R should be performed after the cleanup
      of the last materialized CTE that uses R.
      4d991abd
  9. 07 Sep, 2018 13 commits
  10. 06 Sep, 2018 7 commits