1. 28 Dec, 2017 1 commit
  2. 27 Dec, 2017 2 commits
    • Igor Babaev's avatar
      Fixed the bug MDEV-14755 Crash when executing prepared statement · bbb8c9d7
      Igor Babaev authored
      for a query that uses CTE
      
      The first reference to a CTE in the processed query uses the unit
      built by the parser for the CTE specification. This unit is
      considered as the specification of the derived table created for
      the first reference of the CTE. This requires some transformation of
      the original query tree: the unit of the specification must be moved
      to a new position as a slave of the select where the first reference
      to the CTE occurs. The transformation is performed by the function
      st_select_lex_node::move_as_slave(). There was an obvious bug in this
      function. As a result of this bug in many cases the moved unit turned
      out to be lost in the query tree. This could cause different problems.
      In particular the prepared statements for queries that used CTEs could
      miss cleanup for some selects that was performed at the end of the
      preparation/execution of the PSs. If such cleanup is not done for a PS
      the next execution of the PS causes an assertion abort or a crash.
      bbb8c9d7
    • Alexander Barkov's avatar
      MDEV-14249 Wrong character set info of Query_log_event and the query in... · 02b7dc7b
      Alexander Barkov authored
      MDEV-14249 Wrong character set info of Query_log_event and the query in Query_log_event constructed by different charsets cause error when slave apply the event.
      02b7dc7b
  3. 25 Dec, 2017 5 commits
  4. 23 Dec, 2017 2 commits
  5. 22 Dec, 2017 3 commits
  6. 21 Dec, 2017 9 commits
  7. 20 Dec, 2017 15 commits
  8. 19 Dec, 2017 3 commits
    • sjaakola's avatar
      MW-416 DDL replication moved after acl checking · 64e1dda0
      sjaakola authored
      galera_events test shows a regression with the original fix for MW-416
      Reason was that Events::drop_event() can be called also from inside event
      execution, and there we have a speacial treatment for event, which executes
      "DROP EVENT" statement, and runs TOI replication inside the event processing body.
      This resulted in executing WSREP_TO_ISOLATION two times for such DROP EVENT statement.
      Fix is to call WSREP_TO_ISOLATION_BEGIN only in Events::drop_event()
      64e1dda0
    • sjaakola's avatar
      MW-416 · 1a8da003
      sjaakola authored
      Changed return code for replicatio error to TRUE.
      This is aligned with native mysql convention to return TRUE (defined to 1) or FALSE (defined to 0) from a bool function.
      This is wrong, but follows the mysql conventiosn, at least...
      1a8da003
    • Simon J Mudd's avatar