summaryrefslogtreecommitdiff
path: root/mysql-test/main/insert.test
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '10.4' into 10.5mariadb-10.5.16Sergei Golubchik2022-05-181-1/+9
|\
| * MDEV-28578 Server crashes in Item_field::fix_outer_field after CREATE SELECTSergei Golubchik2022-05-161-0/+9
| | | | | | | | | | same as MDEV-26412, but in CREATE...SELECT. fix: apply 39feab3cd31b to create rule too.
* | Merge branch '10.4' into 10.5Sergei Golubchik2022-05-091-6/+42
|\ \ | |/
| * MDEV-28448 Assertion failure for SELECT with subquery using ON expressionIgor Babaev2022-04-301-0/+5
| | | | | | | | | | | | | | | | | | This patch corrects the fix for MDEV-26412. Note that when parsing an ON expression the pointer to the current select is always in select_stack[select_stack_top - 1]. So the pointer to the outer select (if any) is in select_stack[select_stack_top - 2]. The query manifesting this bug is added to the test case of MDEV-26412.
| * MDEV-26412 Server crash in Item_field::fix_outer_field for INSERT SELECTIgor Babaev2022-04-271-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IF an INSERT/REPLACE SELECT statement contained an ON expression in the top level select and this expression used a subquery with a column reference that could not be resolved then an attempt to resolve this reference as an outer reference caused a crash of the server. This happened because the outer context field in the Name_resolution_context structure was not set to NULL for such references. Rather it pointed to the first element in the select_stack. Note that starting from 10.4 we cannot use the SELECT_LEX::outer_select() method when parsing a SELECT construct. Approved by Oleksandr Byelkin <sanja@mariadb.com>
* | outer references in subqueries in INSERTSergei Golubchik2019-10-141-0/+13
|/ | | | remove inconsistent limitation
* Merge 10.2 into 10.3Marko Mäkelä2019-03-271-1/+1
|
* Create 'main' test directory and move 't' and 'r' thereMichael Widenius2018-03-291-0/+614