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
22a675b5
Commit
22a675b5
authored
Aug 18, 2017
by
Olivier Bertrand
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ob-10.1' into 10.1
parents
5b6906cf
b6afeacd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
32 deletions
+16
-32
storage/connect/mysql-test/connect/r/tbl_thread.result
storage/connect/mysql-test/connect/r/tbl_thread.result
+3
-19
storage/connect/mysql-test/connect/t/tbl_thread.test
storage/connect/mysql-test/connect/t/tbl_thread.test
+13
-13
No files found.
storage/connect/mysql-test/connect/r/tbl_thread.result
View file @
22a675b5
...
...
@@ -29,7 +29,7 @@ a b
10 test10
11 test11
CREATE TABLE t2 ENGINE=CONNECT TABLE_TYPE=MYSQL
CONNECTION='mysql://root@
localhost
:MASTER_PORT/test/rt2';
CONNECTION='mysql://root@
127.0.0.1
:MASTER_PORT/test/rt2';
SELECT * FROM t2;
a b
4 test04
...
...
@@ -37,7 +37,7 @@ a b
6 test06
7 test07
CREATE TABLE t3 ENGINE=CONNECT TABLE_TYPE=MYSQL
CONNECTION='mysql://root@
localhost
:SLAVE_PORT/test/rt3';
CONNECTION='mysql://root@
127.0.0.1
:SLAVE_PORT/test/rt3';
SELECT * FROM t3;
a b
8 test08
...
...
@@ -82,24 +82,8 @@ v
11
DROP TABLE t1,t2,total;
#
# Old thread TBL tables test not modified
# Old thread TBL tables test not modified
(suppressed until MDEV-10179 is fixed)
#
CREATE TABLE t1 ENGINE=CONNECT TABLE_TYPE=MYSQL SRCDEF='select 11 as v';
SELECT * FROM t1;
v
11
CREATE TABLE t2 ENGINE=CONNECT TABLE_TYPE=MYSQL SRCDEF='select 22 as v';
SELECT * FROM t2;
v
22
CREATE TABLE total (v BIGINT(20) UNSIGNED NOT NULL) ENGINE=CONNECT TABLE_TYPE=TBL TABLE_LIST='t1,t2' OPTION_LIST='thread=yes,port=PORT';;
SELECT * FROM total order by v desc;
v
22
11
DROP TABLE total;
DROP TABLE t1;
DROP TABLE t2;
DROP TABLE IF EXISTS connect.t1;
DROP DATABASE IF EXISTS connect;
DROP TABLE IF EXISTS connect.t1;
...
...
storage/connect/mysql-test/connect/t/tbl_thread.test
View file @
22a675b5
...
...
@@ -28,12 +28,12 @@ connection default;
--
replace_result
$MASTER_MYPORT
MASTER_PORT
eval
CREATE
TABLE
t2
ENGINE
=
CONNECT
TABLE_TYPE
=
MYSQL
CONNECTION
=
'mysql://root@
localhost
:$MASTER_MYPORT/test/rt2'
;
CONNECTION
=
'mysql://root@
127.0.0.1
:$MASTER_MYPORT/test/rt2'
;
SELECT
*
FROM
t2
;
--
replace_result
$SLAVE_MYPORT
SLAVE_PORT
eval
CREATE
TABLE
t3
ENGINE
=
CONNECT
TABLE_TYPE
=
MYSQL
CONNECTION
=
'mysql://root@
localhost
:$SLAVE_MYPORT/test/rt3'
;
CONNECTION
=
'mysql://root@
127.0.0.1
:$SLAVE_MYPORT/test/rt3'
;
SELECT
*
FROM
t3
;
--
replace_result
$PORT
PORT
...
...
@@ -71,20 +71,20 @@ SELECT * FROM total order by v desc;
DROP
TABLE
t1
,
t2
,
total
;
--
echo
#
--
echo
# Old thread TBL tables test not modified
--
echo
# Old thread TBL tables test not modified
(suppressed until MDEV-10179 is fixed)
--
echo
#
CREATE
TABLE
t1
ENGINE
=
CONNECT
TABLE_TYPE
=
MYSQL
SRCDEF
=
'select 11 as v'
;
SELECT
*
FROM
t1
;
#
CREATE TABLE t1 ENGINE=CONNECT TABLE_TYPE=MYSQL SRCDEF='select 11 as v';
#
SELECT * FROM t1;
CREATE
TABLE
t2
ENGINE
=
CONNECT
TABLE_TYPE
=
MYSQL
SRCDEF
=
'select 22 as v'
;
SELECT
*
FROM
t2
;
#
CREATE TABLE t2 ENGINE=CONNECT TABLE_TYPE=MYSQL SRCDEF='select 22 as v';
#
SELECT * FROM t2;
--
replace_result
$PORT
PORT
--
eval
CREATE
TABLE
total
(
v
BIGINT
(
20
)
UNSIGNED
NOT
NULL
)
ENGINE
=
CONNECT
TABLE_TYPE
=
TBL
TABLE_LIST
=
't1,t2'
OPTION_LIST
=
'thread=yes,port=$PORT'
;
SELECT
*
FROM
total
order
by
v
desc
;
#
--replace_result $PORT PORT
#
--eval CREATE TABLE total (v BIGINT(20) UNSIGNED NOT NULL) ENGINE=CONNECT TABLE_TYPE=TBL TABLE_LIST='t1,t2' OPTION_LIST='thread=yes,port=$PORT';
#
SELECT * FROM total order by v desc;
DROP
TABLE
total
;
DROP
TABLE
t1
;
DROP
TABLE
t2
;
#
DROP TABLE total;
#
DROP TABLE t1;
#
DROP TABLE t2;
--
source
myconn_cleanup
.
inc
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