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
24faa5de
Commit
24faa5de
authored
Jun 28, 2023
by
Yuchen Pei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-30542 Fixing spider/bugfix.self_reference_multi
The server needs to have a unique name
parent
84dbd025
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
storage/spider/mysql-test/spider/bugfix/r/self_reference_multi.result
...er/mysql-test/spider/bugfix/r/self_reference_multi.result
+4
-4
storage/spider/mysql-test/spider/bugfix/t/self_reference_multi.test
...ider/mysql-test/spider/bugfix/t/self_reference_multi.test
+5
-5
No files found.
storage/spider/mysql-test/spider/bugfix/r/self_reference_multi.result
View file @
24faa5de
...
...
@@ -4,11 +4,11 @@ for child3
MDEV-6268 SPIDER table with no COMMENT clause causes queries to wait forever
CREATE SERVER srv FOREIGN DATA WRAPPER MYSQL OPTIONS (SOCKET "$MASTER_1_MYSOCK", DATABASE 'test',user 'root');
CREATE SERVER
$
srv FOREIGN DATA WRAPPER MYSQL OPTIONS (SOCKET "$MASTER_1_MYSOCK", DATABASE 'test',user 'root');
create table t2 (c int);
create table t1 (c int) ENGINE=Spider COMMENT='WRAPPER "mysql", srv "srv",TABLE "t2"';
create table t0 (c int) ENGINE=Spider COMMENT='WRAPPER "mysql", srv "srv",TABLE "t1"';
alter table t2 ENGINE=Spider COMMENT='WRAPPER "mysql", srv "srv",TABLE "t0"';
create table t1 (c int) ENGINE=Spider COMMENT='WRAPPER "mysql", srv "srv
_self_reference_multi
",TABLE "t2"';
create table t0 (c int) ENGINE=Spider COMMENT='WRAPPER "mysql", srv "srv
_self_reference_multi
",TABLE "t1"';
alter table t2 ENGINE=Spider COMMENT='WRAPPER "mysql", srv "srv
_self_reference_multi
",TABLE "t0"';
select * from t0;
ERROR HY000: An infinite loop is detected when opening table test.t0
select * from t1;
...
...
storage/spider/mysql-test/spider/bugfix/t/self_reference_multi.test
View file @
24faa5de
...
...
@@ -8,12 +8,12 @@
--
echo
MDEV
-
6268
SPIDER
table
with
no
COMMENT
clause
causes
queries
to
wait
forever
--
echo
--
replace_regex
/
SOCKET
".*"
/
SOCKET
"
$MASTER_1_MYSOCK
"
/
eval
CREATE
SERVER
srv
FOREIGN
DATA
WRAPPER
MYSQL
OPTIONS
(
SOCKET
"
$MASTER_1_MYSOCK
"
,
DATABASE
'test'
,
user
'root'
);
--
let
$srv
=
srv_self_reference_multi
eval
p
CREATE
SERVER
$
srv
FOREIGN
DATA
WRAPPER
MYSQL
OPTIONS
(
SOCKET
"
$MASTER_1_MYSOCK
"
,
DATABASE
'test'
,
user
'root'
);
create
table
t2
(
c
int
);
create
table
t1
(
c
int
)
ENGINE
=
Spider
COMMENT
=
'WRAPPER "mysql", srv "
srv",TABLE "t2"'
;
create
table
t0
(
c
int
)
ENGINE
=
Spider
COMMENT
=
'WRAPPER "mysql", srv "
srv",TABLE "t1"'
;
alter
table
t2
ENGINE
=
Spider
COMMENT
=
'WRAPPER "mysql", srv "
srv",TABLE "t0"'
;
eval
create
table
t1
(
c
int
)
ENGINE
=
Spider
COMMENT
=
'WRAPPER "mysql", srv "$
srv",TABLE "t2"'
;
eval
create
table
t0
(
c
int
)
ENGINE
=
Spider
COMMENT
=
'WRAPPER "mysql", srv "$
srv",TABLE "t1"'
;
eval
alter
table
t2
ENGINE
=
Spider
COMMENT
=
'WRAPPER "mysql", srv "$
srv",TABLE "t0"'
;
--
error
12719
select
*
from
t0
;
--
error
12719
...
...
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