1. 17 Jun, 2012 1 commit
    • Michael Widenius's avatar
      Fixes after Serg's review of %M extenstions · 29c8f558
      Michael Widenius authored
      - Changed output to be error "error-text" instead of error - error-text
      
      
      extra/perror.c:
        Move my_handler_errors.h into include
      include/my_handler_errors.h:
        Move my_handler_errors.h into include
      mysql-test/r/errors.result:
        Updated result
      mysql-test/r/innodb_mysql_sync.result:
        Updated result
      mysql-test/r/myisam-system.result:
        Updated result
      mysql-test/r/myisampack.result:
        Updated result
      mysql-test/r/partition_innodb_plugin.result:
        Updated result
      mysql-test/r/ps_1general.result:
        Updated result
      mysql-test/r/trigger.result:
        Updated result
      mysql-test/r/type_bit.result:
        Updated result
      mysql-test/r/type_bit_innodb.result:
        Updated result
      mysql-test/r/type_blob.result:
        Updated result
      mysql-test/suite/archive/archive.result:
        Updated result
      mysql-test/suite/binlog/r/binlog_index.result:
        Updated result
      mysql-test/suite/binlog/r/binlog_ioerr.result:
        Updated result
      mysql-test/suite/csv/csv.result:
        Updated result
      mysql-test/suite/engines/iuds/r/type_bit_iuds.result:
        Updated result
      mysql-test/suite/federated/federated_bug_35333.result:
        Updated result
      mysql-test/suite/innodb/r/innodb-create-options.result:
        Updated result
      mysql-test/suite/innodb/r/innodb-index.result:
        Updated result
      mysql-test/suite/innodb/r/innodb-zip.result:
        Updated result
      mysql-test/suite/innodb/r/innodb.result:
        Updated result
      mysql-test/suite/innodb/r/innodb_bug13635833.result:
        Updated result
      mysql-test/suite/innodb/r/innodb_bug21704.result:
        Updated result
      mysql-test/suite/innodb/r/innodb_bug46000.result:
        Updated result
      mysql-test/suite/parts/r/partition_bit_innodb.result:
        Updated result
      mysql-test/suite/parts/r/partition_bit_myisam.result:
        Updated result
      mysql-test/suite/percona/percona_innodb_fake_changes.result:
        Updated result
      mysql-test/suite/perfschema/r/misc.result:
        Updated result
      mysql-test/suite/perfschema/r/privilege.result:
        Updated result
      mysql-test/suite/rpl/r/rpl_EE_err.result:
        Updated result
      mysql-test/suite/rpl/r/rpl_binlog_errors.result:
        Updated result
      mysql-test/suite/rpl/r/rpl_drop_db.result:
        Updated result
      sql/share/errmsg-utf8.txt:
        Removed 'column' from error text that was used in different context
      strings/my_vsnprintf.c:
        Move my_handler_errors.h into include
        Minor cleanups
        Changed output of %M to be error "error-text" instead of error - error-text
      unittest/mysys/my_vsnprintf-t.c:
        Updated error text
      29c8f558
  2. 13 Jun, 2012 2 commits
    • Michael Widenius's avatar
      Switched off Maintainer mode by default as it gave wrong compiler warnings (as... · bbf50c0b
      Michael Widenius authored
      Switched off Maintainer mode by default as it gave wrong compiler warnings (as it added -Wall after some switches was already turned off)
      
      
      cmake/maintainer.cmake:
        Add -DFORCE_INIT_OF_VARS to not get warnings generated by -Wall
      configure.cmake:
        Don't add -Wall if we already have it. This is to not enable options that are already turned off.
      support-files/compiler_warnings.supp:
        Removed suppression that is not needed anymore
      bbf50c0b
    • Michael Widenius's avatar
      Fixed some compiler warnings and test failures found by buildbot · be4b397d
      Michael Widenius authored
      
      client/mysqldump.c:
        Added LINT_INIT
      mysql-test/mysql-test-run.pl:
        Disable warning if example engine is not found
      mysql-test/suite/rpl/t/rpl_semi_sync.test:
        Rpl_semi_sync_master_yes_tx may be different on Windows
      sql/sql_plugin.cc:
        More DBUG_PRINT
      support-files/compiler_warnings.supp:
        Disable some innobase warnings
      unittest/mysys/my_vsnprintf-t.c:
        Fixed test failure on Solaris (typo)
      be4b397d
  3. 12 Jun, 2012 1 commit
  4. 10 Jun, 2012 3 commits
  5. 08 Jun, 2012 4 commits
  6. 06 Jun, 2012 2 commits
  7. 05 Jun, 2012 2 commits
    • unknown's avatar
      Fixed bug lp:1000649 · 6530c847
      unknown authored
      Analysis:
      
      When the method JOIN::choose_subquery_plan() decided to apply
      the IN-TO-EXISTS strategy, it set the unit and select_lex
      uncacheable flag to UNCACHEABLE_DEPENDENT_INJECTED unconditionally.
      As result, even if IN-TO-EXISTS injected non-correlated predicates,
      the subquery was still treated as correlated.
      
      Solution:
      Set the subquery as correlated only if the injected predicate(s) depend
      on the outer query.
      6530c847
    • Michael Widenius's avatar
      Fixed build failures found by buildbot · f3aeef0c
      Michael Widenius authored
      - Added suppression of warnings
      - Fixed some test cases
      
      
      BUILD/FINISH.sh:
        Added AM_EXTRA_MAKEFLAGS
      BUILD/SETUP.sh:
        Added option --extra-makeflags
      client/mysqldump.c:
        Added suppression
      mysql-test/r/mysql.result:
        Updated results
      mysql-test/r/mysql_upgrade.result:
        Updated results
      mysql-test/r/partition_innodb_plugin.result:
        Updated results
      mysql-test/r/partition_open_files_limit.result:
        Updated results
      mysql-test/r/symlink.result:
        Updated results
      mysql-test/suite/innodb/r/innodb-create-options.result:
        Updated results
      mysql-test/suite/innodb/t/innodb-create-options.test:
        Don't print error message (as it's varies on different system)
      mysql-test/t/mysql.test:
        Don't print error message (as it's varies on different system)
      mysql-test/t/mysql_upgrade.test:
        Fixed checking of error number
      mysql-test/t/partition_innodb_plugin.test:
        Don't print error message (as it's varies on different system)
      plugin/semisync/semisync_master.cc:
        Added suppression
      sql/ha_partition.cc:
        Added suppression
      sql/item_subselect.cc:
        Added suppression
      sql/multi_range_read.cc:
        Added suppression
      sql/sql_parse.cc:
        Added suppression
      sql/sql_select.cc:
        Added suppression
      storage/innobase/handler/ha_innodb.cc:
        Removed not used variable
      storage/maria/ma_delete.c:
        Added suppression
      storage/maria/ma_key_recover.c:
        Added suppression
      storage/maria/ma_write.c:
        Added suppression
      strings/ctype-ucs2.c:
        Added suppression
      support-files/compiler_warnings.supp:
        Added suppressions
      unittest/mysys/my_vsnprintf-t.c:
        Fixed test case with %M to also work on Solaris
      f3aeef0c
  8. 04 Jun, 2012 5 commits
    • Sergei Golubchik's avatar
      MDEV-308 lp:1008516 - Failing assertion: templ->mysql_col_len == len · 8e8da4b5
      Sergei Golubchik authored
      remove the offending assert.
      take the test case from mysql Bug#58015
      8e8da4b5
    • Sergei Golubchik's avatar
      MDEV-136 Non-blocking "set read_only" · 62050799
      Sergei Golubchik authored
      backport dmitry.shulga@oracle.com-20120209125742-w7hdxv0103ymb8ko from mysql-trunk:
      
        Patch for bug#11764747 (formerly known as 57612): SET GLOBAL READ_ONLY=1 cannot
        progress when a table is locked with LOCK TABLES.
        
        The reason for the bug was that mysql server makes a flush of all open tables
        during handling of statement 'SET GLOBAL READ_ONLY=1'. Therefore if some of
        these tables were locked by "LOCK TABLE ... READ" from a different connection,
        then execution of statement 'SET GLOBAL READ_ONLY=1' would be waiting for
        the lock for such table even if the table was locked in a compatible read mode.
        
        Flushing of all open tables before setting of read_only system variable
        is inherited from 5.1 implementation since this was the only possible approach
        to ensure that there isn't any pending write operations on open tables.
        
        Start from version 5.5 and above such behaviour is guaranteed by the fact
        that we acquire global_read_lock before setting read_only flag. Since
        acquiring of global_read_lock is successful only when there isn't any 
        active write operation then we can remove flushing of open tables from
        processing of SET GLOBAL READ_ONLY=1.
        
        This modification changes the server behavior so that read locks held
        by other connections (LOCK TABLE ... READ) no longer will block attempts
        to enable read_only.
      62050799
    • Sergei Golubchik's avatar
      merge with 5.3. · 72c63646
      Sergei Golubchik authored
      Take only test cases from MDEV-136 Non-blocking "set read_only"
      72c63646
    • unknown's avatar
      Fix bug lp:1008487 · 72662e65
      unknown authored
      Analysis:
      The crash is a result of Item_cache_temporal::example not being set
      (it is NULL). It turns out that the value of Item_cache_temporal
      may be set directly by calling Item_cache_temporal::store_packed
      without ever setting the "example" of this Item_cache. Therefore
      the failing assertion is too narrow.
      
      Solution:
      Remove the assert.
      In principle we could overwrite this method for Item_cache_temporal,
      but it doesn't make sense just for this assert.
      72662e65
    • Michael Widenius's avatar
      Fixed comment · 3cb7e6ed
      Michael Widenius authored
      3cb7e6ed
  9. 02 Jun, 2012 1 commit
  10. 01 Jun, 2012 2 commits
  11. 31 May, 2012 2 commits
    • Michael Widenius's avatar
      Increased the version number to 10.0 · f877d924
      Michael Widenius authored
      - Fixed code that was not ready for a major version number > 9
      - Fixed test cases that assumed max major version number could be 9
      Updated version number for depricated options (will be removed in a later commit)
      
      VERSION:
        Version number 10.0.0
      client/mysqlbinlog.cc:
        Added support for major version numbers > 9
      cmake/mysql_version.cmake:
        Added support for version numbers that is 0
      mysql-test/r/comments.result:
        Modified test to handle version number 100000
      mysql-test/r/func_system.result:
        Modified test to handle version number 100000
      mysql-test/r/log_state.result:
        Updated depricated error message
      mysql-test/r/sp.result:
        Modified test to handle version number 100000
      mysql-test/r/subselect4.result:
        Updated depricated error message
      mysql-test/r/variables.result:
        Updated depricated error message
      mysql-test/suite/rpl/r/rpl_conditional_comments.result:
        Modified test to handle version number 100000
      mysql-test/suite/rpl/r/rpl_loaddatalocal.result:
        Modified test to handle version number 100000
      mysql-test/suite/rpl/t/rpl_conditional_comments.test:
        Modified test to handle version number 100000
      mysql-test/suite/rpl/t/rpl_loaddatalocal.test:
        Modified test to handle version number 100000
      mysql-test/suite/sys_vars/r/debug_basic.result:
        Updated depricated error message
      mysql-test/suite/sys_vars/r/engine_condition_pushdown_basic.result:
        Updated depricated error message
      mysql-test/suite/sys_vars/r/log_basic.result:
        Updated depricated error message
      mysql-test/suite/sys_vars/r/log_slow_queries_basic.result:
        Updated depricated error message
      mysql-test/suite/sys_vars/r/multi_range_count_basic.result:
        Updated depricated error message
      mysql-test/suite/sys_vars/r/rpl_recovery_rank_basic.result:
        Updated depricated error message
      mysql-test/suite/sys_vars/r/sql_big_selects_func.result:
        Updated depricated error message
      mysql-test/suite/sys_vars/r/sql_max_join_size_basic.result:
        Updated depricated error message
      mysql-test/suite/sys_vars/r/sql_max_join_size_func.result:
        Updated depricated error message
      mysql-test/t/comments.test:
        Modified test to handle version number 100000
      mysql-test/t/file_contents.test:
        Modified test to handle version number 100000
      mysql-test/t/func_system.test:
        Modified test to handle version number 100000
      mysql-test/t/parser_not_embedded.test:
        Modified test to handle version number 100000
      mysql-test/t/sp.test:
        Modified test to handle version number 100000
      sql/mysqld.cc:
        Updated version number for depricated options (will be removed in a later commit)
      sql/slave.cc:
        Modified test to handle version number 100000
        Better error messages
      sql/sql_lex.cc:
        Modified test to handle version number 100000 in comment syntax
      sql/sys_vars.cc:
        Updated version number for depricated options (will be removed in a later commit)
      f877d924
    • Michael Widenius's avatar
      Merge with 5.5 · 50ce7318
      Michael Widenius authored
      50ce7318
  12. 30 May, 2012 3 commits
  13. 29 May, 2012 4 commits
    • Michael Widenius's avatar
      Added text for errno in error messages by: · f0824368
      Michael Widenius authored
      - Adding %M my_sprintf() modifier that prints error number - system-error-text
      - Modified mysys, mysql_client and SQL error messages to use %M instead of %d
      - Added my_strerror()
      Updated handler errors to 5.6 error numbers
      Updated text for a few error messages (to match 5.6)
      Increased length of command name in error output
      
      extra/comp_err.c:
        Added support for %M
      include/my_base.h:
        Updated handler errors to 5.6 error numbers
      include/my_sys.h:
        Added my_strerror()
      libmysql/errmsg.c:
        Updated error messages to use %M
      mysql-test/r/errors.result:
        Updated result as error message have changed
      mysql-test/r/innodb_mysql_sync.result:
        Updated result with text for errno
      mysql-test/r/myisam-system.result:
        Updated result with text for errno
      mysql-test/r/myisam.result:
        Updated result as error message have changed
      mysql-test/r/myisampack.result:
        Updated result with text for errno
      mysql-test/r/mysql.result:
        Updated result with text for errno
      mysql-test/r/mysql_upgrade.result:
        Updated result with text for errno
      mysql-test/r/partition_datatype.result:
        Updated result as error message have changed
      mysql-test/r/partition_innodb_plugin.result:
        Updated result with text for errno
      mysql-test/r/ps_1general.result:
        Updated result with text for errno
      mysql-test/r/trigger.result:
        Updated result with text for errno
      mysql-test/r/type_bit.result:
        Updated result as error message have changed
      mysql-test/r/type_bit_innodb.result:
        Updated result as error message have changed
      mysql-test/r/type_blob.result:
        Updated result as error message have changed
      mysql-test/suite/archive/archive.result:
        Updated result with text for errno
      mysql-test/suite/binlog/r/binlog_index.result:
        Updated result with text for errno
      mysql-test/suite/binlog/r/binlog_ioerr.result:
        Updated result with text for errno
      mysql-test/suite/csv/csv.result:
        Updated result with text for errno
      mysql-test/suite/federated/federated_bug_35333.result:
        Updated result with text for errno
      mysql-test/suite/innodb/r/innodb-create-options.result:
        Updated result with text for errno
      mysql-test/suite/innodb/r/innodb-index.result:
        Updated result with text for errno
      mysql-test/suite/innodb/r/innodb-zip.result:
        Updated result as error message have changed
      mysql-test/suite/innodb/r/innodb.result:
        Updated result with text for errno
      mysql-test/suite/innodb/r/innodb_bug21704.result:
        Updated result with text for errno
      mysql-test/suite/innodb/r/innodb_bug46000.result:
        Updated result with text for errno
      mysql-test/suite/innodb/r/innodb_bug53591.result:
        Updated result as error message have changed
      mysql-test/suite/innodb/r/innodb_corrupt_bit.result:
        New error numbers
      mysql-test/suite/innodb/r/innodb_prefix_index_liftedlimit.result:
        Updated result as error message have changed
      mysql-test/suite/innodb/t/innodb-create-options.test:
        Added regexp to avoid system error text
      mysql-test/suite/innodb/t/innodb-zip.test:
        Added regexp to avoid system error text
      mysql-test/suite/maria/maria-recovery2.result:
        Updated supression rule
      mysql-test/suite/maria/maria-recovery2.test:
        Updated supression rule
      mysql-test/suite/maria/maria.result:
        Updated result as error message have changed
      mysql-test/suite/parts/r/partition_bit_innodb.result:
        
        Updated result as error message have changed
      mysql-test/suite/parts/r/partition_bit_myisam.result:
        
        Updated result as error message have changed
      mysql-test/suite/percona/percona_innodb_fake_changes.result:
        Updated result with text for errno
      mysql-test/suite/perfschema/r/dml_cond_instances.result:
        Updated result as error message have changed
      mysql-test/suite/perfschema/r/dml_events_waits_current.result:
        Updated result as error message have changed
      mysql-test/suite/perfschema/r/dml_events_waits_history.result:
        Updated result as error message have changed
      mysql-test/suite/perfschema/r/dml_events_waits_history_long.result:
        Updated result as error message have changed
      mysql-test/suite/perfschema/r/dml_ews_by_instance.result:
        Updated result as error message have changed
      mysql-test/suite/perfschema/r/dml_ews_by_thread_by_event_name.result:
        Updated result as error message have changed
      mysql-test/suite/perfschema/r/dml_ews_global_by_event_name.result:
        Updated result as error message have changed
      mysql-test/suite/perfschema/r/dml_file_instances.result:
        Updated result as error message have changed
      mysql-test/suite/perfschema/r/dml_file_summary_by_event_name.result:
        Updated result as error message have changed
      mysql-test/suite/perfschema/r/dml_file_summary_by_instance.result:
        Updated result as error message have changed
      mysql-test/suite/perfschema/r/dml_mutex_instances.result:
        Updated result as error message have changed
      mysql-test/suite/perfschema/r/dml_performance_timers.result:
        Updated result as error message have changed
      mysql-test/suite/perfschema/r/dml_rwlock_instances.result:
        Updated result as error message have changed
      mysql-test/suite/perfschema/r/dml_threads.result:
        Updated result as error message have changed
      mysql-test/suite/perfschema/r/misc.result:
        Updated result with text for errno
      mysql-test/suite/perfschema/r/privilege.result:
        Updated result with text for errno
      mysql-test/suite/rpl/r/rpl_EE_err.result:
        Updated result with text for errno
      mysql-test/suite/rpl/r/rpl_binlog_errors.result:
        Updated result with text for errno
      mysql-test/suite/rpl/r/rpl_drop_db.result:
        Updated result with text for errno
      mysys/errors.c:
        Updated error messages to use %M
        Changed all errors to use Errcode: consistenly
      mysys/my_handler_errors.h:
        Updated handler errors to 5.6 error numbers
      sql/share/errmsg-utf8.txt:
        Updated error messages to use %M
      sql/sys_vars.cc:
        Added error number to ER_EVENT_SET_VAR_ERROR
      strings/my_vsnprintf.c:
        Added %M my_sprintf() modifier that prints error number - system-error-text
        Simplify code
        Movied common code to function
        Removed some casts that was not necessary when reading integer/unsigned int stored in longlong
        Added my_strerror()
      unittest/mysys/my_vsnprintf-t.c:
        Added testing of %M
      f0824368
    • Sergei Golubchik's avatar
      RPM packages should not obsolete themselves. · 48006d04
      Sergei Golubchik authored
      Otherwise yum on fedora will not install them
      (rpm will, yum on centos and rhel will).
      48006d04
    • Sergei Golubchik's avatar
      MDEV-293 5.5 RPMs for RHEL6/CentOS6 · 9452716e
      Sergei Golubchik authored
      Build MariaDB-compat rpm by repackaging files from MariaDB-shared-5.3.*.rpm
      Or RHEL6/CentOS6 make all other MariaDB rpms depend on MariaDB-compat.
      9452716e
    • Alexey Botchkov's avatar
      MDEV-294 SELECT WHERE ST_CONTAINS doesn't return all the records where ST_CONTAINS() is 1. · 528e8cc6
      Alexey Botchkov authored
              Optimizator fails using index with ST_Within(g, constant_poly).
      
      per-file comments:
        mysql-test/r/gis-rt-precise.result
              test result fixed.
        mysql-test/r/gis-rtree.result
              test result fixed.
        mysql-test/suite/maria/r/maria-gis-rtree-dynamic.result
              test result fixed.
        mysql-test/suite/maria/r/maria-gis-rtree-trans.result
              test result fixed.
        mysql-test/suite/maria/r/maria-gis-rtree.result
              test result fixed.
        storage/maria/ma_rt_index.c
              Use MBR_INTERSECT mode when optimizing the select WITH ST_Within.
        storage/myisam/rt_index.c
              Use MBR_INTERSECT mode when optimizing the select WITH ST_Within.
      528e8cc6
  14. 26 May, 2012 1 commit
  15. 25 May, 2012 4 commits
  16. 24 May, 2012 1 commit
  17. 23 May, 2012 2 commits