summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-13723: Server crashes in ha_heap::find_unique_row or Assertion `0' ↵bb-10.3-MDEV-13723Oleksandr Byelkin2017-11-105-5/+31
| | | | | | failed in st_select_lex_unit::optimize with INTERSECT With INTERSECT/EXCEPT fakt that subquery item of IN/ALL/ANY was not assigned value does not mean that temporary table used for calculating unit is empty (records could be deleted).
* MDEV-14235 main.mysql_upgrade_noengine failed, results mismatchAlexander Barkov2017-11-071-2/+3
|
* Fixed mdev-14281 Wrong result from query with NOT IN predicate in WHEREIgor Babaev2017-11-054-6/+106
| | | | | | | Conversion of NOT IN predicates into NOT IN subqueries did not work correctly: the predicates actually were converted into IN subqueries. As a result if the conversion was applied for the query with a NOT IN predicate the query could return a wrong result set.
* Adjust 32-bit sys_vars resultsMarko Mäkelä2017-11-042-300/+304
|
* Another adjustment after the merge of mdev-12172.Igor Babaev2017-11-032-2/+2
|
* Adjusted tests after changing the default value forIgor Babaev2017-11-034-1/+8
| | | | the system variable @@in_subquery_conversion_threshold
* Changed the default value for the system variable ↵Igor Babaev2017-11-033-7/+7
| | | | @@in_subquery_conversion_threshold.
* Post-merge fixes for mdev-12172, mdev-12176.Igor Babaev2017-11-0312-17/+56
|
* Cleanup tests for MDEV-13049 Querying INFORMATION_SCHEMA becomes slow in ↵Alexander Barkov2017-11-028-8/+8
| | | | MariaDB 10.1
* A cleanup for MDEV-12172: Fixing "mtr --suite=compat/oracle" test failuresAlexander Barkov2017-11-021-6/+22
| | | | | | | | | | | Adding missing commands into sql_yacc_ora.yy: %token VALUES_IN_SYM %token VALUES_LESS_SYM and their parser hacks with Select->parsing_place. Note: the grammar for table_value_constructor will be merged later separately.
* MDEV-14016 Allow instant ADD COLUMN, ADD INDEX, LOCK=NONEMarko Mäkelä2017-11-025-150/+273
| | | | | | | | | | | | | | | | | | | | | | | | | | Ideally, we would move some code from ha_innobase::prepare_inplace_alter_table() to ha_innobase::check_if_supported_inplace_alter(), but the API does not really allow us to return errors; it can only inform which forms of ALGORITHM and LOCK are allowed. So, we have to duplicate some logic between the "check" and "prepare" phases. We do the duplication by calling common functions. instant_alter_column_possible(): Check if instant column operation is possible. Invoked from both ha_innobase::check_if_supported_inplace_alter() and prepare_inplace_alter_table_dict(). ha_innobase::check_if_supported_inplace_alter(): Before refusing certain operations if FULLTEXT INDEX exist, check if instant ALTER TABLE is possible and return early if it is the case. prepare_inplace_alter_table_dict(): Before checking the limitations on FULLTEXT INDEX, check if instant ALTER TABLE is possible, and suppress the checks if it is the case. If instant ADD COLUMN is used when the table already contains FULLTEXT INDEX, do account for a hidden FTS_DOC_ID_INDEX in a debug assertion.
* Merge bb-10.2-ext into 10.3Marko Mäkelä2017-11-0224-111/+135
|\
| * Merge 10.2 into bb-10.2-extMarko Mäkelä2017-11-0129-147/+174
| |\
| | * Fixed that --malloc-lib works properlyMonty2017-11-011-19/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Expand paths also for jemalloc - Test also if tcmalloc or jemalloc is in /usr/lib64 - Take into account that .so has a version - Remove automatic adding of flavors ( _minial, _debug). Better to have user specify these directly - Changed documentation link to MariaDB - Don't give extra error if mysqld_safe_helper doesn't exist
| | * Merge 10.1 into 10.2Marko Mäkelä2017-11-0117-113/+124
| | |\
| | | * Merge 10.0 into 10.1Marko Mäkelä2017-10-315-7/+33
| | | |\
| | | | * Backport MDEV-13890 from 10.2 (InnoDB/XtraDB shutdown failure)Marko Mäkelä2017-10-304-6/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If InnoDB or XtraDB recovered committed transactions at server startup, but the processing of recovered transactions was prevented by innodb_read_only or by innodb_force_recovery, an assertion would fail at shutdown. This bug was originally reproduced when Mariabackup executed InnoDB shutdown after preparing (applying redo log into) a backup. trx_free_prepared(): Allow TRX_STATE_COMMITTED_IN_MEMORY. trx_undo_free_prepared(): Allow any undo log state. For transactions that were resurrected in TRX_STATE_COMMITTED_IN_MEMORY the undo log state would have been reset by trx_undo_set_state_at_finish().
| | | | * bump the VERSIONDaniel Bartholomew2017-10-301-1/+1
| | | | |
| | | | * List of unstable tests for 10.0.33 releasemariadb-10.0.33Elena Stepanova2017-10-271-101/+137
| | | | |
| | | | * MDEV-13860 CONNECT engine does not build with JDBC without ODBCElena Stepanova2017-10-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Re-apply the patch cb1b466c0c3fa72a058fe6462261f70b11d45c53, the change disappeared after the merge
| | | * | MDEV-14219 Allow online table rebuild when encryption or compression ↵Marko Mäkelä2017-10-3113-109/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | parameters change When MariaDB 10.1.0 introduced table options for encryption and compression, it unnecessarily changed ha_innobase::check_if_supported_inplace_alter() so that ALGORITHM=COPY is forced when these parameters differ. A better solution is to move the check to innobase_need_rebuild(). In that way, the ALGORITHM=INPLACE interface (yes, the syntax is very misleading) can be used for rebuilding the table much more efficiently, with merge sort, with no undo logging, and allowing concurrent DML operations.
| | * | | bump the VERSIONDaniel Bartholomew2017-10-311-1/+1
| | | | |
| | * | | Write error message ebfore aborting if not all memory is releasedMonty2017-10-311-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | Also don't abort if global_status_var.global_memory_used != 0 on not normal exit as then it's likely that not all memory is released.
| | * | | Updated help message for long_query_timeMonty2017-10-314-6/+7
| | | | |
| | * | | Disable known-failing testsMarko Mäkelä2017-10-312-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MDEV-13568: Purge is not blocked by LOCK TABLES. Should it? MDEV-13893/MDEV-12699: Crash recovery of corrupted or non-decryptable pages is broken.
| | * | | travis: osx - xcode 8.3 -> 9.1Daniel Black2017-10-311-1/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Daniel Black <daniel@linux.vnet.ibm.com>
| | * | | Fix a type mismatch introduced by the merge commit ↵Marko Mäkelä2017-10-301-1/+1
| | | | | | | | | | | | | | | | | | | | e0a1c745ec3ed1ec6c0375a2a624697c29f480a6
| | * | | Compiler warnings fixed.Alexey Botchkov2017-10-301-1/+3
| | | | |
* | | | | Try to fix sys_vars.sysvars_debug,32bitMarko Mäkelä2017-11-021-21/+0
| | | | |
* | | | | Remove a type castMarko Mäkelä2017-11-021-2/+2
| | | | |
* | | | | Remove an unused variableMarko Mäkelä2017-11-021-1/+0
| | | | |
* | | | | keycache: restructure functions that are controlled by arguementsDaniel Black2017-11-021-133/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | finish_resize_simple_key_cache removed argument acquire for acquiring locks. resize_simple_key_cache enforces assertion that the cache is inited. read_block was really two functions, primary and secondary so separated as such. Make the callers of read_block explictly use the required function. Signed-off-by: Daniel Black <daniel@linux.vnet.ibm.com>
* | | | | Fixed compilation failuresMonty2017-11-023-5/+35
| | | | | | | | | | | | | | | | | | | | - Also added missing copyright notices
* | | | | Merge branch '10.3' of github.com:MariaDB/server into 10.3Igor Babaev2017-11-0111-8/+1077
|\ \ \ \ \
| * | | | | Added the syntax for percentile functions and median function to the ↵Varun Gupta2017-11-011-7/+29
| | | | | | | | | | | | | | | | | | | | | | | | sql_yacc_ora.yy file
| * | | | | Updates the tests for the percentile functionsVarun Gupta2017-11-016-291/+298
| | | | | |
| * | | | | Update the error messages involving percentile functionsVarun Gupta2017-11-012-7/+7
| | | | | |
| * | | | | Date-time fields are disabled currently for the result type of percentile ↵Varun Gupta2017-11-012-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | function
| * | | | | Tests added for percentile and median functionsVarun Gupta2017-11-013-1/+383
| | | | | |
| * | | | | Only single element order-by list is allowed for percentile functionsVarun Gupta2017-11-011-1/+3
| | | | | |
| * | | | | Added the median function to the parser , it should behave as a ↵Varun Gupta2017-11-012-5/+30
| | | | | | | | | | | | | | | | | | | | | | | | percentile_cont function with its argument fixed to 0.5
| * | | | | Added fix_fields for percentile function to check the type of argument and ↵Varun Gupta2017-11-012-12/+46
| | | | | | | | | | | | | | | | | | | | | | | | to ensure that only numeric arguments are allowed
| * | | | | Changes made according to the review given, mostly fixing coding style errorsVarun Gupta2017-11-015-196/+28
| | | | | |
| * | | | | Remove has_error as a member from Item_sum and use THD::is_error() insteadVicențiu Ciorbaru2017-11-014-18/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Additionally, allow a query with window functions to be killed by the user during its execution.
| * | | | | Fixed indentation in the syntax rules for the sql_yacc.yy , also added the ↵Varun Gupta2017-11-012-7/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rules of the percentile functions to the sql_yacc_ora.yy
| * | | | | made changes according to the review, mostly removing unused code and fixing ↵Varun Gupta2017-11-014-104/+55
| | | | | | | | | | | | | | | | | | | | | | | | code to follow the coding conventions
| * | | | | Added more tests for the percentile functionsVarun Gupta2017-11-012-0/+166
| | | | | |
| * | | | | Added the errorVarun Gupta2017-11-012-34/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1)ER_ARGUMENT_OUT_OF_RANGE: This error is thrown if the argument of the percentile function is not in the range [0,1] 2)ER_ARGUMENT_NOT_CONSTANT: This error is thrown if the argument of the percnetile function is not constant in the entire partition of the window function
| * | | | | Added the error ER_WRONG_TYPE_FOR_PERCENTILE_CONT, which ensures that the ↵Varun Gupta2017-11-011-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | result type for percentile_cont is always numerical
| * | | | | Added the error ER_NOT_SINGLE_ELEMENT_ORDER_LIST for th percentile ↵Varun Gupta2017-11-011-8/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | functions, these ensure that for the percentile function we have the order list with exactly one element