1. 28 Jun, 2013 2 commits
    • Alexander Barkov's avatar
      Merge from 5.3 · f13236be
      Alexander Barkov authored
      modified:
        mysql-test/r/type_date.result
        mysql-test/r/type_datetime.result
        mysql-test/r/type_time.result
        mysql-test/t/type_date.test
        mysql-test/t/type_datetime.test
        mysql-test/t/type_time.test
        sql/item_func.cc
        sql/item_timefunc.cc
        sql/sql_time.cc
        sql/sql_time.h
      pending merges:
        Alexander Barkov 2013-06-28 MDEV-4634 Crash in CONVERT_TZ
      f13236be
    • Alexander Barkov's avatar
      MDEV-4634 Crash in CONVERT_TZ · 0e44faf2
      Alexander Barkov authored
      Item_func_min_max::get_date() did not check the
      returned value against the fuzzy_date flags, so
      it could return a bad value to the caller that
      expects a good date (e.h. CONVERT_TZ).
      
      
      modified:
        mysql-test/r/type_date.result
        mysql-test/r/type_datetime.result
        mysql-test/r/type_time.result
        mysql-test/t/type_date.test
        mysql-test/t/type_datetime.test
        mysql-test/t/type_time.test
        sql/item_func.cc
        sql/item_timefunc.cc
        sql/mysql_priv.h
        sql/time.cc
      0e44faf2
  2. 27 Jun, 2013 1 commit
  3. 22 Jun, 2013 1 commit
  4. 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
  5. 17 Jun, 2013 4 commits
  6. 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
  7. 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
  8. 17 Jun, 2013 1 commit
  9. 15 Jun, 2013 1 commit
  10. 14 Jun, 2013 1 commit
  11. 13 Jun, 2013 7 commits
  12. 12 Jun, 2013 4 commits
  13. 11 Jun, 2013 2 commits
  14. 10 Jun, 2013 1 commit
  15. 12 Jun, 2013 1 commit
  16. 11 Jun, 2013 1 commit
  17. 07 Jun, 2013 3 commits
  18. 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
  19. 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
  20. 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
  21. 01 Jun, 2013 2 commits
  22. 30 May, 2013 1 commit