summaryrefslogtreecommitdiff
path: root/mysql-test/main/union.result
Commit message (Collapse)AuthorAgeFilesLines
* Merge 10.5 into 10.6Marko Mäkelä2022-12-131-1/+18
|\
| * Merge 10.3 into 10.4Marko Mäkelä2022-12-131-1/+18
| |\
| | * MDEV-30066 (limit + offset) union all (...) limit = incorrect resultSergei Golubchik2022-12-021-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | select_union_direct::send_data() only sends a record when the LIMIT ... OFFSET clause of the individual select won't skip it. Thus, select_union_direct::send_data() should not do any actions related to a sending a record if the offset of a select isn't reached yet
| | * cleanup: union.testSergei Golubchik2022-12-021-1/+0
| | |
* | | Merge branch '10.5' into 10.6Sergei Golubchik2022-10-021-0/+85
|\ \ \ | |/ /
| * | Merge branch '10.3' into 10.4Sergei Golubchik2022-10-011-0/+85
| |\ \ | | |/
| | * MDEV-29022 add_slave destroy child list and has dead codeOleksandr Byelkin2022-09-271-0/+85
| | | | | | | | | | | | | | | | | | | | | Nowdays subquery in a UNION's ORDER BY placed correctly in fake select, the only problem was incorrect Name_resolution_contect is fixed by this patch in parsing, so we do not need scanning/reseting of ORDER BY of a union.
* | | Merge 10.5 into 10.6Marko Mäkelä2022-09-201-78/+78
|\ \ \ | |/ /
| * | Merge 10.3 into 10.4Marko Mäkelä2022-09-131-78/+78
| |\ \ | | |/
| | * MDEV-29446 Change SHOW CREATE TABLE to display default collationAlexander Barkov2022-09-121-78/+78
| | |
* | | Merge branch '10.5' into 10.6Oleksandr Byelkin2021-08-021-1/+30
|\ \ \ | |/ /
| * | Merge branch '10.3' into 10.4Oleksandr Byelkin2021-07-311-1/+30
| |\ \ | | |/
| | * MDEV-24511 null field is created with CREATE..SELECTSergei Golubchik2021-07-291-1/+30
| | | | | | | | | | | | | | | When creating fields for UNION results, Field_null is not allowed. Should create binary(0) instead.
* | | MDEV-8334: Rename utf8 to utf8mb3Rucha Deodhar2021-05-191-8/+8
|/ / | | | | | | | | | | This patch changes the main name of 3 byte character set from utf8 to utf8mb3. New old_mode UTF8_IS_UTF8MB3 is added and set TRUE by default, so that utf8 would mean utf8mb3. If not set, utf8 would mean utf8mb4.
* | Merge 10.3 into 10.4Marko Mäkelä2021-01-251-0/+34
|\ \ | |/
| * MDEV-24387: Wrong number of decimal digits in certain UNION/SubqeryRucha Deodhar2021-01-131-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | constellation Analysis: The decimals is set to NOT_FIXED_DEC for Field_str even if it is NULL. Unsigned has decimals=0. So Type_std_attributes::decimals is set to 39 (maximum between 0 and 39). This results in incorrect number of decimals when we have union of unsigned and NULL type. Fix: Check if the field is created from NULL value. If yes, set decimals to 0 otherwise set it to NOT_FIXED_DEC.
* | Merge 10.3 into 10.4Marko Mäkelä2020-07-151-17/+12
|\ \ | |/
| * Merge 10.2 into 10.3Marko Mäkelä2020-07-141-17/+12
| |
* | Merge branch '10.3' into 10.4Sergei Golubchik2019-09-061-3/+4
|\ \ | |/
| * Merge branch '10.2' into 10.3Monty2019-09-031-3/+4
| |
* | MDEV-19134: EXISTS() slower if ORDER BY is definedSergei Petrunia2019-05-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Step 1: Removal of ORDER BY [LIMIT] from the subquery should be done earlier and for broader class of subqueries. The rewrite was done in Item_in_subselect::select_in_like_transformer(), but this had problems: - It didn't cover EXISTS subqueries - It covered IN-subqueries, but was done after the semi-join transformation was considered inapplicable, because ORDER BY was present. Remaining issue: - EXISTS->IN transformation happens before check_and_do_in_subquery_rewrites() is called, so it is still prevented by the present ORDER BY.
* | MDEV-18689 Simple query with extra brackets stopped workingIgor Babaev2019-05-061-3/+3
| | | | | | | | | | | | | | | | Parenthesis around table names and derived tables should be allowed in FROM clauses and some other context as it was in earlier versions. Returned test queries that used such parenthesis in 10.3 to their original form. Adjusted test results accordingly.
* | MDEV-18769 Assertion `fixed == 1' failed in Item_cond_or::val_intGalina Shalygina2019-04-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This bug is caused by pushdown from HAVING into WHERE. It appears because condition that is pushed wasn't fixed. It is also discovered that condition pushdown from HAVING into WHERE is done wrong. There is no need to build clones for some conditions that can be pushed. They can be simply moved from HAVING into WHERE without cloning. build_pushable_cond_for_having_pushdown(), remove_pushed_top_conjuncts_for_having() methods are changed. It is found that there is no transformation made for fields of pushed condition. field_transformer_for_having_pushdown transformer is added. New tests are added. Some comments are changed.
* | Merge 10.3 into 10.4Marko Mäkelä2019-03-061-0/+37
|\ \ | |/
| * MDEV-18700 EXPLAIN EXTENDED shows a wrong operation for queryIgor Babaev2019-02-221-0/+37
| | | | | | | | | | | | | | | | | | with UNION ALL after INTERSECT EXPLAIN EXTENDED erroneously showed UNION instead of UNION ALL in the warning if UNION ALL followed INTERSECT or EXCEPT operations. The bug was in the function st_select_lex_unit::print() that printed the text of the query used in the warning.
* | MDEV-7486: Condition pushdown from HAVING into WHEREIgor Babaev2019-02-191-1/+1
| | | | | | | | | | | | Optimized the code that removed multiple equalities pushed from HAVING into WHERE. Now this removal is postponed until all multiple equalities are eliminated in substitute_for_best_equal_field().
* | MDEV-7486: Condition pushdown from HAVING into WHEREGalina Shalygina2019-02-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Condition can be pushed from the HAVING clause into the WHERE clause if it depends only on the fields that are used in the GROUP BY list or depends on the fields that are equal to grouping fields. Aggregate functions can't be pushed down. How the pushdown is performed on the example: SELECT t1.a,MAX(t1.b) FROM t1 GROUP BY t1.a HAVING (t1.a>2) AND (MAX(c)>12); => SELECT t1.a,MAX(t1.b) FROM t1 WHERE (t1.a>2) GROUP BY t1.a HAVING (MAX(c)>12); The implementation scheme: 1. Extract the most restrictive condition cond from the HAVING clause of the select that depends only on the fields that are used in the GROUP BY list of the select (directly or indirectly through equalities) 2. Save cond as a condition that can be pushed into the WHERE clause of the select 3. Remove cond from the HAVING clause if it is possible The optimization is implemented in the function st_select_lex::pushdown_from_having_into_where(). New test file having_cond_pushdown.test is created.
* | Fixed the results after the merge of 10.4 into bb-10.4-mdev16188.Igor Babaev2019-02-031-1/+1
| |
* | Merge 10.3 into 10.4Marko Mäkelä2019-01-171-0/+38
|\ \ | |/
| * Merge 10.2 into 10.3Marko Mäkelä2019-01-171-0/+38
| |
* | MDEV-15253: Default optimizer setting changes for MariaDB 10.4Varun Gupta2018-12-091-1/+1
| | | | | | | | | | use_stat_tables= PREFERABLY optimizer_use_condition_selectivity= 4
* | Merge 10.3 into 10.4Marko Mäkelä2018-08-161-0/+16
|\ \ | |/
| * Merge 10.2 into 10.3Marko Mäkelä2018-08-031-0/+16
| |
* | MDEV-11953: support of brackets in UNION/EXCEPT/INTERSECT operationsOleksandr Byelkin2018-07-041-9/+24
|/
* MDEV-13232: Assertion `(&(&share->intern_lock)->m_mutex)->count > 0 && ↵Oleksandr Byelkin2018-04-231-0/+14
| | | | | | pthread_equal(pthread_self(), (&(&share->intern_lock)->m_mutex)->thread)' failed in _ma_state_info_write Limit length of result of "negative" operation to something reasonable
* Create 'main' test directory and move 't' and 'r' thereMichael Widenius2018-03-291-0/+2504