summaryrefslogtreecommitdiff
path: root/sql/sql_cte.h
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-10141: Add support for INTERSECT (and common parts for EXCEPT)Oleksandr Byelkin2017-03-141-1/+1
| | | | MDEV-10140: Add support for EXCEPT
* Fixed bug mdev-10883.Igor Babaev2016-09-241-0/+1
| | | | | | When a prepared statement uses a CTE definition with a column list renaming of columns of the CTE expression must be performed for every execution of the prepared statement.
* Fixed a failure with --valgrind for cte_recursive.test.Igor Babaev2016-09-191-1/+0
|
* Merge 10.2 into 10.2-mdev9864.Igor Babaev2016-08-301-1/+1
|\
| * Fixed compiler warnings and test failures found by buildbotMonty2016-06-241-1/+1
| | | | | | | | Fixed ccfilter to detect errors where the column is included in the error message
* | mdev-9864: cleanup, re-factoring.Igor Babaev2016-08-291-9/+3
| | | | | | | | | | | | | | | | Added comments. Added reaction for exceeding maximum number of elements in with clause. Added a test case to check this reaction. Added a test case where the specification of a recursive table uses two non-recursive with tables.
* | mdev-9864: cleanup, re-factoring.Igor Babaev2016-08-261-42/+72
| | | | | | | | Added comments.
* | Removed the parameter from st_select_lex_unit::exec_recursive.Igor Babaev2016-08-101-0/+16
| | | | | | | | | | | | | | | | | | Moved checking whether the limit set for the number of iterations when executing a recursive query has been reached from st_select_lex_unit::exec_recursive to TABLE_LIST::fill_recursive. Changed the name of the system variable max_recursion_level for max_recursive_iterations. Adjusted test cases.
* | Fixed the following problem:Igor Babaev2016-07-261-16/+18
| | | | | | | | | | | | | | | | Temporary tables created for recursive CTE were instantiated at the prepare phase. As a result these temporary tables missed indexes for look-ups and optimizer could not use them.
* | Simplified the code that fills recursive tables.Igor Babaev2016-06-251-79/+12
| |
* | A commit to force buildbot working.Igor Babaev2016-06-071-0/+1
| |
* | Fixed numerous problems for mutually recursive CTE.Igor Babaev2016-06-061-2/+121
| | | | | | | | | | | | | | Actually mutually recursive CTE were not functional. Now the code for mutually recursive CTE looks like functional, but still needs re-writing. Added many new test cases for mutually recursive CTE.
* | Fixed the problem of wrong identification of WITH tables defined in WITH ↵Galina Shalygina2016-05-241-17/+42
| | | | | | | | | | | | | | | | | | | | | | clauses without RECURSIVE. Added test cases to check the fix. Fixed the problem of wrong types of recursive tables when the type of anchor part does not coincide with the type of recursive part. Prevented usage of marerialization and subquery cache for subqueries with recursive references. Introduced system variables 'max_recursion_level'. Added a test case to test usage of this variable.
* | Fixed many problems in the code of With_element::check_unrestricted_recursive().Galina Shalygina2016-05-191-4/+8
| | | | | | | | | | | | | | Added the check whether there are set functions in the specifications of recursive CTE. Added the check whether there are recursive references in subqueries. Introduced boolean system variable 'standards_compliant_cte'. By default it's set to 'on'. When it's set to 'off' non-standard compliant CTE can be executed.
* | Made prepared statement, explain and views working with recursuve CTE.Galina Shalygina2016-05-121-9/+14
| |
* | Main patch for mdev-9864Galina Shalygina2016-05-091-15/+124
|/
* Addressed the issues raised in the review for the main patchbb-10.2-mdev8789Igor Babaev2016-02-171-5/+3
| | | | | | | | of mdev-8789. Fixed a bug in TABLE_LIST::print. Fixed another bug for the case when the definition of a WITH table contained column list while the join in the main query used two instances of this table.
* Fixed compile errors of the merge of the patch for mdev-8789 with 10.2.Igor Babaev2015-12-211-1/+1
|
* MDEV-8789 Implement non-recursive common table expressionsGalina Shalygina2015-12-181-0/+180
Initial implementation