1. 20 Sep, 2019 1 commit
    • Igor Babaev's avatar
      MDEV-20229 CTE defined with table value constructor cannot be used in views · ba7725da
      Igor Babaev authored
      A CTE can be defined as a table values constructor. In this case the CTE is
      always materialized in a temporary table.
      If the definition of the CTE contains a list of the names of the CTE
      columns then the query expression that uses this CTE can refer to the CTE
      columns by these names. Otherwise the names of the columns are taken from
      the names of the columns in the result set of the query that specifies the
      CTE.
      Thus if the column names of a CTE are provided in the definition the
      columns of result set should be renamed. In a general case renaming of
      the columns is done in the select lists of the query specifying the CTE.
      If a CTE is specified by a table value constructor then there are no such
      select lists and renaming is actually done for the columns of the result
      of materialization.
      Now if a view is specified by a query expression that uses a CTE specified
      by a table value constructor saving the column names of the CTE in the
      stored view definition becomes critical: without these names the query
      expression is not able to refer to the columns of the CTE.
      
      This patch saves the given column names of CTEs in stored view definitions
      that use them.
      ba7725da
  2. 16 Sep, 2019 1 commit
    • Sujatha's avatar
      MDEV-20217: Semi_sync: Last_IO_Error: Fatal error: Failed to run 'after_queue_event' hook · 90a9c4ca
      Sujatha authored
      Fix:
      ===
      Implemented upstream fix.
      
      commit 7d3d0fc3
      Author: He Zhenxing <zhenxing.he@sun.com>
      
      Backport Bug#45852 Semisynch: Last_IO_Error: Fatal error: Failed
      to run 'after_queue_event' hook
      
      Errors when send reply to master should never cause the IO thread
      to stop, because master can fall back to async replication if it
      does not get reply from slave.
      
      The problem is fixed by deliberately ignoring the return value of
      slave_reply.
      90a9c4ca
  3. 13 Sep, 2019 2 commits
    • Marko Mäkelä's avatar
      MDEV-20525: Fix the -std=c90 builds · bfbf0f22
      Marko Mäkelä authored
      bfbf0f22
    • Marko Mäkelä's avatar
      MDEV-20525 rocksdb debug compilation fails on Windows due to unresolved my_assert variable · b214264a
      Marko Mäkelä authored
      MYSQL_PLUGIN_IMPORT did not work correctly for the RocksDB helper library
      rocksdb_aux_lib, because that library was not compiled with
      -DMYSQL_DYNAMIC_PLUGIN.
      
      Fix DBUG such that it does not depend on exported data, only on functions
      (which do not need MYSQL_PLUGIN_IMPORT decoration)
      
      Use a "getter" function _db_my_assert() instead of DLL-exported variable.
      
      Also, reduce object code duplication by moving more of the DBUG_ASSERT
      logic inside the _db_my_assert() function, and add unlikely() and
      ATTRIBUTE_COLD hints to ensure that the 'assertion failed' code will
      be separated from the main control flow logic. Thus, the compiler can
      move the unlikely() code to the end of the compiled function, reachable
      via a forward conditional branch, which the processor's branch predictor
      could assume 'not taken'.
      b214264a
  4. 12 Sep, 2019 2 commits
  5. 11 Sep, 2019 12 commits
  6. 10 Sep, 2019 3 commits
  7. 09 Sep, 2019 15 commits
  8. 08 Sep, 2019 2 commits
  9. 07 Sep, 2019 1 commit
  10. 06 Sep, 2019 1 commit