You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+1-11Lines changed: 1 addition & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,7 @@ MariaDB Server has a vibrant community contributing in a wide range of areas. Th
11
11
- The MariaDB Foundation and MariaDB Corporation have a presence on Reddit, Twitter and Facebook. See the [social media page](https://mariadb.com/docs/general-resources/community/joining-the-community).
12
12
13
13
### Help document MariaDB
14
-
---
15
-
- Contribute towards [documenting MariaDB Server](https://mariadb.com/docs/general-resources/about/readme/contributing-documentation) and its ecosystem by adding new content or improving existing content.
- Contribute towards [documenting MariaDB Server](https://mariadb.com/docs/general-resources/about/readme/contributing-documentation) and its ecosystem by adding new content or improving existing content.
17
15
18
16
### Help develop MariaDB
19
17
---
@@ -34,14 +32,6 @@ You’re very welcome to support MariaDB Server as an individual, or talk your c
34
32
---
35
33
- Attend an event
36
34
-[Events and Conferences page](https://mariadb.org/events/)
# MDEV-32299 Segfault when preparing unreferenced select in recursive CTE
6068
6068
#
6069
6069
SELECT ( WITH RECURSIVE x AS ( SELECT * FROM ( SELECT UTC_TIMESTAMP FROM ( SELECT ( WITH x AS ( WITH x AS ( SELECT * FROM x ) SELECT 1 ) SELECT 1 ) ) x ) x UNION SELECT NULL ) ( SELECT x FROM x ) ) ;
6070
-
ERROR 42S22: Unknown column 'x' in 'SELECT'
6070
+
ERROR HY000: Restrictions imposed on recursive definitions are violated for table 'x'
6071
6071
select (
6072
6072
with recursive x as (
6073
6073
select * from (
@@ -6089,7 +6089,7 @@ select null
6089
6089
)
6090
6090
(select x from x)
6091
6091
);
6092
-
ERROR 42S22: Unknown column 'x' in 'SELECT'
6092
+
ERROR HY000: Restrictions imposed on recursive definitions are violated for table 'x'
6093
6093
select (
6094
6094
with recursive r as (
6095
6095
select * from (
@@ -6241,4 +6241,13 @@ y
6241
6241
2
6242
6242
2
6243
6243
4
6244
+
#
6245
+
# MDEV-32326: Recursive reference in scalar subquery should be rejected
6246
+
#
6247
+
WITH RECURSIVE x AS (
6248
+
SELECT 1
6249
+
UNION
6250
+
SELECT 1 > ( WITH cte AS ( SELECT 1 FROM x ) SELECT 1 FROM cte ) )
6251
+
SELECT 1 FROM x;
6252
+
ERROR HY000: Restrictions imposed on recursive definitions are violated for table 'x'
Copy file name to clipboardExpand all lines: mysql-test/main/cte_recursive.test
+13-2Lines changed: 13 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4074,12 +4074,12 @@ SELECT ( WITH RECURSIVE x AS ( WITH x AS ( SELECT 1 FROM t14 ) SELECT x ) , t14
4074
4074
--echo #
4075
4075
4076
4076
# As in bug report
4077
-
--error ER_BAD_FIELD_ERROR
4077
+
--error ER_NOT_STANDARD_COMPLIANT_RECURSIVE
4078
4078
SELECT ( WITH RECURSIVE x AS ( SELECT * FROM ( SELECT UTC_TIMESTAMP FROM ( SELECT ( WITH x AS ( WITH x AS ( SELECT * FROM x ) SELECT 1 ) SELECT 1 ) ) x ) x UNION SELECT NULL ) ( SELECT x FROM x ) ) ;
4079
4079
4080
4080
#0 0x00005555569dff7b in TABLE_LIST::reset_const_table (this=0x7fffe0019938) at ../src/sql/table.cc:9615
4081
4081
#1 0x00005555569dffd4 in TABLE_LIST::reset_const_table (this=0x7fffe001a8c0) at ../src/sql/table.cc:9622
4082
-
--error ER_BAD_FIELD_ERROR
4082
+
--error ER_NOT_STANDARD_COMPLIANT_RECURSIVE
4083
4083
select (
4084
4084
with recursive x as (
4085
4085
select * from (
@@ -4243,4 +4243,15 @@ with recursive r (y) as (
4243
4243
select z * 2 from r where z < 10)
4244
4244
select y from r;
4245
4245
4246
+
--echo #
4247
+
--echo # MDEV-32326: Recursive reference in scalar subquery should be rejected
4248
+
--echo #
4249
+
4250
+
--error ER_NOT_STANDARD_COMPLIANT_RECURSIVE
4251
+
WITH RECURSIVE x AS (
4252
+
SELECT 1
4253
+
UNION
4254
+
SELECT 1 > ( WITH cte AS ( SELECT 1 FROM x ) SELECT 1 FROM cte ) )
0 commit comments