1. 05 Nov, 2018 3 commits
  2. 01 Nov, 2018 2 commits
    • Marko Mäkelä's avatar
      Minor clean-up for MDEV-17038 · a33c0e3f
      Marko Mäkelä authored
      ha_innobase::check_if_supported_inplace_alter(): Remove a redundant
      condition and defer some computations.
      
      If INNOBASE_ALTER_VERSIONED_REBUILD is set, innobase_need_rebuild()
      will necessarily hold. Therefore, it is not necessary to assign
      need_rebuild at the start of the function.
      a33c0e3f
    • Aleksey Midenkov's avatar
      MDEV-17038 ALTER TABLE CHANGE COLUMN c1 c1 bigint NOT NULL - generates error... · 4acfc6ec
      Aleksey Midenkov authored
      MDEV-17038 ALTER TABLE CHANGE COLUMN c1 c1 bigint NOT NULL - generates error if table uses SYSTEM VERSIONING
      
      * Fine-grained inplace skipping by INNOBASE_ALTER_VERSIONED_REBUILD;
      * Fixed column WITHOUT SYSTEM VERSIONING + ADD COLUMN;
      * Fixed instant field change (MDEV-16330);
      * Revisited test versioning.online;
      * Merged the test versioning.trx_id_versioning_attribute_persistence
        to versioning.online;
      * Renamed some versioning functions:
      ** change_fields_versioning_cache() -> vers_change_fields_cache()
      ** change_field_versioning_try() -> vers_change_field_try()
      Skip condition moved out of func.
      
      Closes tempesta-tech/mariadb#414
      Closes tempesta-tech/mariadb#540
      Related to tempesta-tech/mariadb#281
      4acfc6ec
  3. 29 Oct, 2018 3 commits
  4. 25 Oct, 2018 1 commit
  5. 20 Oct, 2018 2 commits
  6. 19 Oct, 2018 4 commits
  7. 18 Oct, 2018 6 commits
  8. 17 Oct, 2018 5 commits
    • Marko Mäkelä's avatar
      Merge 10.2 into 10.3 · f454189c
      Marko Mäkelä authored
      f454189c
    • Marko Mäkelä's avatar
      MDEV-17483 Insert on delete-marked record can wrongly inherit old values for instantly added column · 2fa4ed03
      Marko Mäkelä authored
      row_ins_clust_index_entry_low(): Do not call dtuple_t::trim()
      before row_ins_clust_index_entry_by_modify(), so that the values
      of all columns will be available in row_upd_build_difference_binary().
      If applicable, the tuple can be trimmed in btr_cur_optimistic_update()
      or btr_cur_pessimistic_update(), which will be called by
      row_ins_clust_index_entry_by_modify().
      2fa4ed03
    • Marko Mäkelä's avatar
      MDEV-13564: Set innodb_safe_truncate=ON by default · 853a0a43
      Marko Mäkelä authored
      The setting innodb_safe_truncate=ON reduces compatibility with older
      versions of MariaDB and backup tools in two ways.
      
      First, we will be writing TRX_UNDO_RENAME_TABLE records, which older
      versions do not know about. These records could be misinterpreted if
      a DDL transaction was recovered and would be rolled back.
      Such rollback is only possible if the server was killed while
      an incomplete DDL transaction was persisted. On transaction completion,
      the insert_undo log pages would only be repurposed for new undo log
      allocations, and their contents would not matter. So, older versions
      will not have a problem with innodb_safe_truncate=ON if the server was
      shut down cleanly.
      
      Second, to prevent such recovery failure, innodb_safe_truncate=ON will
      cause a modification of the redo log format identifier, which will
      prevent older versions from starting up after a crash. MariaDB Server
      versions older than 10.2.13 will refuse to start up altogether, even
      after clean shutdown.
      
      A server restart with innodb_safe_truncate=OFF will restore compatibility
      with older server and backup versions.
      853a0a43
    • Igor Babaev's avatar
      MDEV-17419 Subquery with group by returns wrong results · c2c1550f
      Igor Babaev authored
      Added only test case because the bug was fixed by the patch for mdev-17382.
      c2c1550f
    • Igor Babaev's avatar
      MDEV-17107 Assertion `table_list->table' failed in find_field_in_table_ref · dc3f5594
      Igor Babaev authored
      Added only test case because the bug was fixed by the patch for mdev-16992.
      dc3f5594
  9. 16 Oct, 2018 3 commits
    • Varun Gupta's avatar
      MDEV-17137: Syntax errors with VIEW using MEDIAN · 97a37edc
      Varun Gupta authored
      The syntax error happened because we had not implemented a different print for
      percentile functions. The syntax is a bit different when we use percentile functions
      as window functions in comparision to normal window functions.
      Implemented a seperate print function for percentile functions
      97a37edc
    • Andrei Elkin's avatar
      MDEV-17098 DATE -> DATETIME replication conversion not working, even in ALL_NON_LOSSY mode · 2308b9af
      Andrei Elkin authored
      Opened up MYSQL_TYPE _DATETIME{,2} <-> _NEWDATE conversions for replication.
      2308b9af
    • Marko Mäkelä's avatar
      MDEV-17466 Virtual column value not available during purge · 2d4075e1
      Marko Mäkelä authored
      row_build_index_entry_low(): Assert that when the value of a
      virtual column is not available, this can only happen when
      the index creation was completed but not committed yet.
      
      This change is not fixing any bug, making a debug assertion
      stricter, so that bugs can be caught in the future.
      
      Ultimately, we should change the InnoDB undo log format so that
      all actual secondary index keys are stored there, also for
      virtual or spatial indexes. In that way, purge and rollback would
      be more straightforward.
      2d4075e1
  10. 14 Oct, 2018 2 commits
    • Igor Babaev's avatar
      MDEV-17222 Reproducible server crash in String_list::append_str or · 103b1df5
      Igor Babaev authored
                 in Field_iterator_table::create_item
      
      When IN predicate is converted to IN subquery we have to ensure that
      any item from the select list of the subquery has some name and this name
      is unique across the select list.
      This was not guaranteed by the code before the patch for MDEV-17222.
      If the name of an item of the select list was not set, and this happened
      for binary constants, then the server crashed. If the first row in the IN
      list contained the same constant in two different positions then the server
      returned an error message.
      This was fixed by providing all constants in the first row of the IN list
      with generated names.
      103b1df5
    • Varun Gupta's avatar
      MDEV-16990:server crashes in base_list_iterator::next · af6077b5
      Varun Gupta authored
      When we have a query which has implicit_grouping then we are sure that we would end up with only one
      row so there is no point to do DISTINCT computation
      af6077b5
  11. 13 Oct, 2018 4 commits
  12. 12 Oct, 2018 5 commits