1. 05 Jul, 2018 1 commit
    • Igor Babaev's avatar
      MDEV-16629 "Table Does Not Exist" Error from Recursive CTE Query Inside Function · 05855402
      Igor Babaev authored
      When processing a query containing with clauses a call of the function
      check_dependencies_in_with_clauses() before opening tables used in the
      query is necessary if with clauses include specifications of recursive
      CTEs.
      This call was missing if such a query belonged to a stored function.
      This caused misbehavior of the server: it could report a fake error
      as in the test case for MDEV-16629 or the executed query could hang
      as in the test cases for MDEV-16661 and MDEV-15151.
      05855402
  2. 02 Jul, 2018 1 commit
  3. 01 Jul, 2018 2 commits
    • Anel Husakovic's avatar
      MDEV-16630: Ambiguous error message when check constraint matches table name · 8639e288
      Anel Husakovic authored
      One can create table with the same name for `field` and `table` `check` constraint.
      For example:
      `create table t(a int check(a>0), constraint a check(a>10));`
      But when inserting new rows same error is always raised.
      For example with
      ```insert into t values (-1);```
      and
      ```insert into t values (10);```
      same error `ER_CONSTRAINT_FAILED` is obtained and it is not clear which constraint is violated.
      This patch solve this error so that in case if field constraint is violated the first parameter
      in the error message is `table.field_name` and if table constraint is violated the first parameter
      in error message is `constraint_name`.
      8639e288
    • Vladislav Vaintroub's avatar
      amend fix for MDEV-16596 - do not use CREATE_NEW flag when reopening redo log file. · b71c9ae0
      Vladislav Vaintroub authored
      use OPEN_ALWAYS instead, since we know file already exist.
      b71c9ae0
  4. 30 Jun, 2018 1 commit
    • Vladislav Vaintroub's avatar
      MDEV-16596 : Windows - redo log does not work on native 4K sector disks. · c612a1e7
      Vladislav Vaintroub authored
      Disks with native 4K sectors need 4K alignment and size for  unbuffered IO
      (i.e for files opened with FILE_FLAG_NO_BUFFERING)
      
      Innodb opens redo log with FILE_FLAG_NO_BUFFERING, however it always does
      512byte IOs. Thus, the IO on 4K native sectors will fail, rendering
      Innodb non-functional.
      
      The fix is to check whether OS_FILE_LOG_BLOCK_SIZE is multiple of logical
      sector size, and if it is not, reopen the redo log without
      FILE_FLAG_NO_BUFFERING flag.
      c612a1e7
  5. 28 Jun, 2018 11 commits
  6. 27 Jun, 2018 3 commits
  7. 26 Jun, 2018 9 commits
  8. 25 Jun, 2018 7 commits
  9. 24 Jun, 2018 5 commits