1. 18 Jun, 2013 1 commit
    • Alexander Barkov's avatar
      Merging MDEV-4635 from 5.3. · 7cc77106
      Alexander Barkov authored
      Also, fixing a bug in STR_TO_DATE(). It erroneously returned
      error in strict mode for dates like '0000-01-01'
      (zero year, but non-zero month and day).
      
      According to the manual:
      - NO_ZERO_DATE disallows 0000-00-00 (all date parts are zeros)
      - NO_ZERO_IN_DATE disallows zero month (YYYY-00-DD) or day (YYYY-MM-00).
      
      0000-01-01 is a valid date, even in strict mode.
      
      
      modified:
        mysql-test/r/func_time.result
        mysql-test/r/strict.result
        mysql-test/t/func_time.test
        mysql-test/t/strict.test
        sql/item_timefunc.cc
        sql/sql_time.h
      pending merges:
        Alexander Barkov 2013-06-17 MDEV-4635 Crash in UNIX_TIMESTAMP(STR_TO_DAT...
      7cc77106
  2. 17 Jun, 2013 4 commits
  3. 16 Jun, 2013 1 commit
    • Vladislav Vaintroub's avatar
      MDEV-4576 : Aria storage engine's temporary files might not be deleted (Errcode : 13) · c61c1d7c
      Vladislav Vaintroub authored
      See also MySQL Bug #39750  and similar ones.
      
      Fix my_delete() on Windows, to safely remvoe files on Windows, including files  that are opened by another threads in the same process, antiviruses and  backup applications. If file to be deleted is  also  opened by another thread, the file is renamed to unique name prior to deletion - this makes it possible to create file with the same name right after deletion.
      With this patch my_delete_allow_opened() becomes obsolete and is replaced with my_delete().
      
      This patch is rework of the patch  http://lists.mysql.com/commits/59327  for MySQL bug#39750.
      c61c1d7c
  4. 15 Jun, 2013 1 commit
    • Vladislav Vaintroub's avatar
      MDEV-4601 : Allow MariaDB to be build without non-blocking client. · 4b058643
      Vladislav Vaintroub authored
      Non-blocking client currently can be build on Windows, GCC on i386 and x64, or any OS wth ucontext.h header. Prior to this patch, build failed if neither of these conditions is true.
      Fix to avoid compiler errors in these case - non-blocking API would not be useful on , but otherwise everything will work as before.
      4b058643
  5. 17 Jun, 2013 1 commit
  6. 15 Jun, 2013 1 commit
  7. 14 Jun, 2013 1 commit
  8. 13 Jun, 2013 7 commits
  9. 12 Jun, 2013 4 commits
  10. 11 Jun, 2013 2 commits
  11. 10 Jun, 2013 1 commit
  12. 12 Jun, 2013 1 commit
  13. 11 Jun, 2013 1 commit
  14. 07 Jun, 2013 3 commits
  15. 09 Jun, 2013 1 commit
    • Michael Widenius's avatar
      - Added -Wno-uninitialized to avoid warnings in release builds · 3bc814be
      Michael Widenius authored
        (uninitalized variables are detected by DBUG builds)
      - Fixed wrong declaration which cased compile failure on 32 bit
      
      cmake/build_configurations/mysql_release.cmake:
        Added -Wno-uninitialized to avoid warnings in release builds
        (uninitalized variables are detected by DBUG builds)
      include/maria.h:
        Fixed wrong declaration which cased compile failure on 32 bit
      include/myisam.h:
        Fixed wrong declaration which cased compile failure on 32 bit
      3bc814be
  16. 06 Jun, 2013 2 commits
    • unknown's avatar
      MDEV-4593: p_s: crash in simplify_joins with delete using subselect from view · ad947563
      unknown authored
      mysql_derived_merge_for_insert() should not be called for views or derived tables which are not put (directly or via other views) in main SELECT_LEX "join list".
      ad947563
    • Michael Widenius's avatar
      Fixed some cache variables that could be set to higher value than what the code supported (size_t) · 57307860
      Michael Widenius authored
      Fixed some cases that didn't work with > 4G buffers.
      Fixed compiler warnings
      
      
      include/mysql_com.h:
        Avoid compiler warning with strncmp()
      sql-common/client.c:
        Fixed long comment; Added ()
      sql/filesort.cc:
        Fix code to get filesort to work with big buffers
      sql/sys_vars.cc:
        Fixed some cache variables that could be set to higher value than the size_t
        Limit query cache to ULONG_MAX as the query cache buffer variables are ulong
      storage/federatedx/ha_federatedx.cc:
        Remove not used variable
      storage/maria/ha_maria.cc:
        Fix that bulk_insert() works with big buffers
      storage/maria/ma_write.c:
        Fix that bulk_insert() works with big buffers
      storage/myisam/ha_myisam.cc:
        Fix that bulk_insert() works with big buffers
      storage/myisam/mi_write.c:
        Fix that bulk_insert() works with big buffers
      storage/sphinx/snippets_udf.cc:
        Fixed compiler warnings
      57307860
  17. 05 Jun, 2013 1 commit
    • Michael Widenius's avatar
      -Run test suite with smaller aria keybuffer size (to make it possible to run... · bef95a4b
      Michael Widenius authored
      -Run test suite with smaller aria keybuffer size (to make it possible to run more tests in parallel)
      -Added test and extra code to ensure we don't leave keyread on for a handler table.
      -Create on disk temporary files always with long data pointers if SQL_SMALL_RESULT is not used. This ensures that we can handle temporary files bigger than 4G.
      
      mysql-test/include/default_mysqld.cnf:
        Run test suite with smaller aria keybuffer size
      mysql-test/suite/maria/maria3.result:
        Run test suite with smaller aria keybuffer size
      mysql-test/suite/sys_vars/r/aria_pagecache_buffer_size_basic.result:
        Run test suite with smaller aria keybuffer size
      sql/handler.cc:
        Disable key read (extra safety if something went wrong)
      sql/multi_range_read.cc:
        Ensure we have don't leave keyread on for secondary_file
      sql/opt_range.cc:
        Simplify code with mark_columns_used_by_index_no_reset()
        Ensure that read_keys_and_merge() disableds keyread if it enables it
      sql/opt_subselect.cc:
        Remove not anymore used argument for create_internal_tmp_table()
      sql/sql_derived.cc:
        Remove not anymore used argument for create_internal_tmp_table()
      sql/sql_select.cc:
        Use 'enable_keyread()' instead of calling HA_EXTRA_RESET. (Makes debugging easier)
        Create on disk temporary files always with long data pointers if SQL_SMALL_RESULT is not used. This ensures that we can handle temporary files bigger than 4G.
        Remove not anymore used argument for create_internal_tmp_table()
        More DBUG
      sql/sql_select.h:
        Remove not anymore used argument for create_internal_tmp_table()
      bef95a4b
  18. 01 Jun, 2013 2 commits
  19. 30 May, 2013 1 commit
  20. 28 May, 2013 1 commit
  21. 23 May, 2013 1 commit
  22. 22 May, 2013 1 commit
  23. 27 May, 2013 1 commit