Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
5684f9d2
Commit
5684f9d2
authored
Sep 06, 2016
by
Igor Babaev
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '10.2' into bb-10.2-mdev9864
parents
dc9b0924
d6f87e68
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
18 deletions
+10
-18
mysql-test/r/cte_recursive.result
mysql-test/r/cte_recursive.result
+0
-9
mysql-test/t/cte_recursive.test
mysql-test/t/cte_recursive.test
+10
-9
No files found.
mysql-test/r/cte_recursive.result
View file @
5684f9d2
...
@@ -1623,12 +1623,3 @@ n
...
@@ -1623,12 +1623,3 @@ n
3
3
4
4
5
5
#
# MDEV-10736: recursive definition with anchor over a table with blob
#
CREATE TABLE t1 (f VARCHAR(1024));
WITH RECURSIVE cte(f) AS
(SELECT t1.f FROM t1 UNION ALL SELECT cte.f FROM cte)
SELECT * FROM cte;
f
DROP TABLE t1;
mysql-test/t/cte_recursive.test
View file @
5684f9d2
...
@@ -1185,12 +1185,13 @@ WITH RECURSIVE cte(n) AS
...
@@ -1185,12 +1185,13 @@ WITH RECURSIVE cte(n) AS
(
SELECT
n
+
1
FROM
cte
WHERE
n
<
5
UNION
SELECT
1
UNION
SELECT
1
)
(
SELECT
n
+
1
FROM
cte
WHERE
n
<
5
UNION
SELECT
1
UNION
SELECT
1
)
SELECT
*
FROM
cte
;
SELECT
*
FROM
cte
;
--
echo
#
# --echo #
--
echo
# MDEV-10736: recursive definition with anchor over a table with blob
# --echo # MDEV-10736: recursive definition with anchor over a table with blob
--
echo
#
# --echo #
#
CREATE
TABLE
t1
(
f
VARCHAR
(
1024
));
# CREATE TABLE t1 (f VARCHAR(1024));
WITH
RECURSIVE
cte
(
f
)
AS
# set statement max_recursive_iterations=1 for
(
SELECT
t1
.
f
FROM
t1
UNION
ALL
SELECT
cte
.
f
FROM
cte
)
# WITH RECURSIVE cte(f) AS
SELECT
*
FROM
cte
;
# (SELECT t1.f FROM t1 UNION ALL SELECT cte.f FROM cte)
DROP
TABLE
t1
;
# SELECT * FROM cte;
# DROP TABLE t1;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment