summaryrefslogtreecommitdiff
path: root/mysql-test/main/subselect4.result
Commit message (Collapse)AuthorAgeFilesLines
* Merge 10.5 into 10.6Marko Mäkelä2021-05-261-1/+20
|\
| * Merge 10.4 into 10.5Marko Mäkelä2021-05-261-1/+20
| |\
| | * Merge 10.3 into 10.4Marko Mäkelä2021-05-251-1/+20
| | |\
| | | * Merge 10.2 into 10.3Marko Mäkelä2021-05-241-1/+20
| | | |
* | | | MDEV-8334: Rename utf8 to utf8mb3Rucha Deodhar2021-05-191-1/+1
|/ / / | | | | | | | | | | | | | | | 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.4 into 10.5Marko Mäkelä2021-04-271-0/+61
|\ \ \ | |/ /
| * | Merge 10.3 into 10.4Marko Mäkelä2021-04-271-0/+61
| |\ \ | | |/
| | * MDEV-24898: Server crashes in st_select_lex::next_selectbb-10.3-mdev24925Sergei Petrunia2021-04-251-0/+11
| | | | | | | | | | | | Add a testcase
| | * MDEV-24925: Server crashes in Item_subselect::init_expr_cache_trackerSergei Petrunia2021-04-251-0/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The optimizer removes redundant GROUP BY operations. If GROUP BY element is a subselect, it is "eliminated". However one must not eliminate the item if it is used both in the select list and in the GROUP BY, like so: select (select ... ) as SUBQ from ... group by SUBQ Do not eliminate such items.
* | | Merge 10.4 into 10.5Marko Mäkelä2021-03-191-0/+27
|\ \ \ | |/ /
| * | Merge 10.3 into 10.4Marko Mäkelä2021-03-191-0/+27
| |\ \ | | |/
| | * Merge 10.2 into 10.3Marko Mäkelä2021-03-181-0/+27
| | |
* | | Merge branch '10.4' into 10.5Sergei Golubchik2021-02-231-1/+9
|\ \ \ | |/ /
| * | Merge branch '10.3' into 10.4Sergei Golubchik2021-02-231-1/+9
| |\ \ | | |/
| | * Merge branch '10.2' into 10.3Sergei Golubchik2021-02-221-1/+9
| | |
* | | Merge 10.4 into 10.5Marko Mäkelä2020-12-021-0/+35
|\ \ \ | |/ /
| * | Merge 10.3 into 10.4Marko Mäkelä2020-12-011-0/+34
| |\ \ | | |/
| | * MDEV-21265: IN predicate conversion to IN subquery should be allowed for a ↵Varun Gupta2020-11-301-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | broader set of datatype comparison Allow materialization strategy when collations on the inner and outer sides of an IN subquery are the same and the character set of the inner side is a proper subset of the character set on the outer side. This allows conversion from utf8mb3 to utf8mb4 as the former is a subset of the later. This is only allowed when IN predicate is converted to an IN subquery Backported part of the patch (d6a00d9b18f) of MDEV-17905.
| * | Merge 10.3 into 10.4Marko Mäkelä2020-11-031-1/+1
| |\ \ | | |/
* | | Merge branch '10.4' into 10.5Oleksandr Byelkin2020-11-011-1/+1
|\ \ \
| * \ \ Merge branch '10.3' into 10.4Oleksandr Byelkin2020-10-311-1/+1
| |\ \ \ | | |/ / | |/| / | | |/
| | * Merge branch '10.2' into 10.3Oleksandr Byelkin2020-10-301-1/+1
| | |
* | | Merge 10.4 into 10.5Marko Mäkelä2020-08-261-0/+31
|\ \ \ | |/ /
| * | Merge 10.3 into 10.4Marko Mäkelä2020-08-261-0/+31
| |\ \ | | |/
| | * MDEV-18335: Assertion `!error || error == 137' failed in ↵Varun Gupta2020-08-261-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | subselect_rowid_merge_engine::init When duplicates are removed from a table using a hash, if the record is a duplicate it is marked as deleted. The handler API check if the record is deleted and send an error flag HA_ERR_RECORD_DELETED. When we scan over the table if the thread is not killed then we skip the records marked as HA_ERR_RECORD_DELETED. The issue here is when a query is aborted by a user (this is happening when the LIMIT for ROWS EXAMINED is exceeded), the scan over the table does not skip the records for which HA_ERR_RECORD_DELETED is sent. It just returns an error flag HA_ERR_ABORTED_BY_USER. This error flag is not checked at the upper level and hence we hit the assert. If the query is aborted by the user we should just skip reading rows and return control to the upper levels of execution.
* | | Merge 10.4 into 10.5Marko Mäkelä2020-08-101-0/+66
|\ \ \ | |/ /
| * | Merge 10.3 into 10.4Marko Mäkelä2020-08-101-0/+66
| |\ \ | | |/
| | * Merge 10.2 into 10.3Marko Mäkelä2020-08-101-0/+66
| | |
* | | Merge branch '10.4' into 10.5Oleksandr Byelkin2020-08-041-0/+24
|\ \ \ | |/ /
| * | Merge branch '10.3' into 10.4Oleksandr Byelkin2020-08-031-0/+24
| |\ \ | | |/
| | * Merge branch '10.2' into 10.3Oleksandr Byelkin2020-08-031-0/+24
| | |
* | | Merge 10.4 into 10.5Marko Mäkelä2020-07-021-0/+31
|\ \ \ | |/ /
| * | Merge 10.3 into 10.4Marko Mäkelä2020-07-021-0/+31
| |\ \ | | |/
| | * Merge 10.2 into 10.3Marko Mäkelä2020-07-021-0/+31
| | |
* | | Merge 10.4 into 10.5Marko Mäkelä2020-05-181-0/+33
|\ \ \ | |/ /
| * | Merge 10.3 into 10.4Marko Mäkelä2020-05-161-0/+33
| |\ \ | | |/
| | * Merge 10.2 into 10.3Marko Mäkelä2020-05-161-0/+32
| | |
* | | Updated optimizer costs in multi_range_read_info_const() and sql_select.ccMonty2020-03-271-2/+2
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - multi_range_read_info_const now uses the new records_in_range interface - Added handler::avg_io_cost() - Don't calculate avg_io_cost() in get_sweep_read_cost if avg_io_cost is not 1.0. In this case we trust the avg_io_cost() from the handler. - Changed test_quick_select to use TIME_FOR_COMPARE instead of TIME_FOR_COMPARE_IDX to align this with the rest of the code. - Fixed bug when using test_if_cheaper_ordering where we didn't use keyread if index was changed - Fixed a bug where we didn't use index only read when using order-by-index - Added keyread_time() to HEAP. The default keyread_time() was optimized for blocks and not suitable for HEAP. The effect was the HEAP prefered table scans over ranges for btree indexes. - Fixed get_sweep_read_cost() for HEAP tables - Ensure that range and ref have same cost for simple ranges Added a small cost (MULTI_RANGE_READ_SETUP_COST) to ranges to ensure we favior ref for range for simple queries. - Fixed that matching_candidates_in_table() uses same number of records as the rest of the optimizer - Added avg_io_cost() to JT_EQ_REF cost. This helps calculate the cost for HEAP and temporary tables better. A few tests changed because of this. - heap::read_time() and heap::keyread_time() adjusted to not add +1. This was to ensure that handler::keyread_time() doesn't give higher cost for heap tables than for normal tables. One effect of this is that heap and derived tables stored in heap will prefer key access as this is now regarded as cheap. - Changed cost for index read in sql_select.cc to match multi_range_read_info_const(). All index cost calculation is now done trough one function. - 'ref' will now use quick_cost for keys if it exists. This is done so that for '=' ranges, 'ref' is prefered over 'range'. - scan_time() now takes avg_io_costs() into account - get_delayed_table_estimates() uses block_size and avg_io_cost() - Removed default argument to test_if_order_by_key(); simplifies code
* | Merge branch '10.3' into 10.4Oleksandr Byelkin2019-07-281-3/+2
|\ \ | |/
* | MDEV-19134: EXISTS() slower if ORDER BY is definedSergei Petrunia2019-05-161-7/+33
| | | | | | | | | | | | | | Step #2: "[ORDER BY ...] LIMIT n" should not prevent EXISTS-to-IN conversion, as long as - the LIMIT clause doesn't have OFFSET - the LIMIT is not "LIMIT 0".
* | MDEV-19134: EXISTS() slower if ORDER BY is definedSergei Petrunia2019-05-161-1/+24
|/ | | | | | | | | | | | | | | | 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.
* Merge 10.2 into 10.3Marko Mäkelä2018-04-241-0/+20
|
* Create 'main' test directory and move 't' and 'r' thereMichael Widenius2018-03-291-0/+2516