diff options
author | Galina Shalygina <galashalygina@gmail.com> | 2016-05-19 22:07:53 +0300 |
---|---|---|
committer | Galina Shalygina <galashalygina@gmail.com> | 2016-05-19 22:07:53 +0300 |
commit | 46a2e4139830d176c31be1c53e533167ea4f95b9 (patch) | |
tree | bb940fefff718b925609a85dabba3ba86c26cf50 /sql/sql_derived.cc | |
parent | 3b47632bfc74a548c2f0a057f39e99a8a761a57a (diff) | |
download | mariadb-git-46a2e4139830d176c31be1c53e533167ea4f95b9.tar.gz |
Fixed many problems in the code of With_element::check_unrestricted_recursive().
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.
Diffstat (limited to 'sql/sql_derived.cc')
-rw-r--r-- | sql/sql_derived.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_derived.cc b/sql/sql_derived.cc index 95a7ee91435..0db94421aa5 100644 --- a/sql/sql_derived.cc +++ b/sql/sql_derived.cc @@ -771,7 +771,7 @@ exit: */ if (res) { - if (derived->table) + if (derived->table && !derived->is_with_table_recursive_reference()) free_tmp_table(thd, derived->table); delete derived->derived_result; } |