1. 16 Dec, 2012 3 commits
    • Michael Widenius's avatar
      Removed lock wait timeout warning when using CREATE TABLE IF EXISTS · a5a2769f
      Michael Widenius authored
      mysql-test/r/create.result:
        Added test case to show that CREATE TABLE also is not waiting if table exists.
      mysql-test/t/create.test:
        Added test case to show that CREATE TABLE also is not waiting if table exists.
      sql/sql_base.cc:
        Clear also warnings from acquire_locks if we retry.
      a5a2769f
    • Michael Widenius's avatar
      Implemented MDEV-3941: CREATE TABLE xxx IF NOT EXISTS should not block if table exists. · 0a5e489b
      Michael Widenius authored
      - Added option to check_if_table_exists() to quickly check if table exists (either SHARE or .FRM)
      - Extended lock_table_names() to not wait for meta data locks if CREATE IF NOT EXISTS is used.
      
      mysql-test/r/create.result:
        New test case
      mysql-test/t/create.test:
        New test case
      sql/sql_base.cc:
        Added option to check_if_table_exists() to quickly check if table exists (either SHARE or .FRM)
        Extended lock_table_names() to not wait for meta data locks if CREATE IF NOT EXISTS is used.
      sql/sql_base.h:
        Updated prototype
      sql/sql_db.cc:
        Added extra argument to call to check_if_table_exists()
      0a5e489b
    • Michael Widenius's avatar
      Automatic merge · 5b38f42c
      Michael Widenius authored
      5b38f42c
  2. 14 Dec, 2012 1 commit
  3. 26 Nov, 2012 1 commit
    • unknown's avatar
      Fix of MDEV-3874: Server crashes in Item_field::print on a SELECT from a MERGE... · 7da52a79
      unknown authored
      Fix of MDEV-3874: Server crashes in Item_field::print on a SELECT from a MERGE view with materialization+semijoin, subquery, ORDER BY.
      
      The problem was that in debugging binaries it try to print item to assign human readable name to the item.
      But subquery item was already freed (join_free/cleanup with full cleanup) so Item_field refers to temporary
      table which memory had been already freed.
      7da52a79
  4. 05 Dec, 2012 1 commit
    • Igor Babaev's avatar
      Fixed bug mdev-3888. · c9d73dce
      Igor Babaev authored
      When inserting a record with update on duplicate keys the server calls
      the ha_index_read_idx_map handler function to look for the record
      that violates unique key constraints. The third parameter of this call
      should mark only the base components of the index where the server is
      searched for the record. Possible hidden components of the primary key
      are to be unmarked.
      c9d73dce
  5. 01 Dec, 2012 2 commits
  6. 27 Nov, 2012 3 commits
  7. 26 Nov, 2012 2 commits
  8. 22 Nov, 2012 2 commits
  9. 21 Nov, 2012 2 commits
  10. 17 Nov, 2012 1 commit
    • Sergei Golubchik's avatar
      MDEV-736 LP:1004615 - Unexpected warnings "Encountered illegal value '' when... · 0405a6d7
      Sergei Golubchik authored
      MDEV-736 LP:1004615 - Unexpected warnings "Encountered illegal value '' when converting to DECIMAL" on a query with aggregate functions and GROUP BY
      
      fix: don't call field->val_decimal() if the field->is_null()
      because the buffer at field->ptr might not hold a valid decimal value
      
      sql/item_sum.cc:
        do not call field->val_decimal() if the field->is_null()
      storage/maria/ma_blockrec.c:
        cleanup
      storage/maria/ma_rrnd.c:
        cleanup
      strings/decimal.c:
        typo
      0405a6d7
  11. 20 Nov, 2012 3 commits
  12. 19 Nov, 2012 3 commits
  13. 17 Nov, 2012 1 commit
  14. 15 Nov, 2012 1 commit
    • Sergei Golubchik's avatar
      MDEV-3826 compilation of client programs fail: m_string.h tries to include <mysql/plugin.h> · c2cacb25
      Sergei Golubchik authored
      mysql_config:
      - add not only $pkgincludedir, but also $pkgincludedir/.. to the header search path,
        for #include <mysql/plugin.h> to work
      
      
      scripts/mysql_config.sh:
        - don't support headers in */include anymore. only in */include/mysql
        - remove the incorrect "bug fix" (fixed correctly long time ago)
        - add not only $pkgincludedir, but also $pkgincludedir/.. to the header search path,
          for #include <mysql/plugin.h> to work
        - but don't do it, if $pkgincludedir/.. is /usr/include
      c2cacb25
  15. 12 Nov, 2012 1 commit
  16. 10 Nov, 2012 2 commits
    • Vladislav Vaintroub's avatar
      MDEV-3849 - 1 bytes stack overwrite in normalize_dirname(). · 6b8e7456
      Vladislav Vaintroub authored
      Take into account that length of strings passed down to this function can be up to FN_REFLEN+1 bytes. including terminating zero.
      The overwrite was caused by incomplete fix to MySQL Bug # 44834
      6b8e7456
    • Igor Babaev's avatar
      Fixed bug mdev-3845. · af794708
      Igor Babaev authored
      If triggers are used for an insert/update/delete statement than the values of
      all virtual columns must be computed as any of them may be used by the triggers.
      af794708
  17. 09 Nov, 2012 11 commits