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
92c8864f
Commit
92c8864f
authored
Sep 02, 2017
by
Olivier Bertrand
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ob-10.1' into 10.1
parents
6884f562
c23b8325
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
28 deletions
+37
-28
storage/connect/CMakeLists.txt
storage/connect/CMakeLists.txt
+29
-28
storage/connect/mysql-test/connect/r/tbl_thread.result
storage/connect/mysql-test/connect/r/tbl_thread.result
+4
-0
storage/connect/mysql-test/connect/t/tbl_thread.test
storage/connect/mysql-test/connect/t/tbl_thread.test
+4
-0
No files found.
storage/connect/CMakeLists.txt
View file @
92c8864f
...
...
@@ -38,7 +38,7 @@ user_connect.h valblk.h value.h xindex.h xobject.h xtable.h)
# Definitions that are shared for all OSes
#
add_definitions
(
-DMARIADB -DFORCE_INIT_OF_VARS -Dconnect_EXPORTS
)
add_definitions
(
-DHUGE_SUPPORT -DGZ_SUPPORT -DPIVOT_SUPPORT
-DUSE_TRY
)
add_definitions
(
-DHUGE_SUPPORT -DGZ_SUPPORT -DPIVOT_SUPPORT
)
#
...
...
@@ -290,33 +290,33 @@ IF(CONNECT_WITH_ZIP)
ENDIF
(
CONNECT_WITH_ZIP
)
#
# MONGO C Driver
(CMAKE NOT YET WORKING)
# MONGO C Driver
#
#
IF(CONNECT_WITH_MONGO)
#
IF(WIN32)
#
# Adding some typical places to search in
#
SET(PC_MONGO_INCLUDE_DIRS
#
C:/mongo-c-driver/include
#
D:/mongo-c-driver/include)
#
SET(PC_MONGO_LIBRARY_DIRS
#
C:/mongo-c-driver/lib
#
D:/mongo-c-driver/lib)
#
ENDIF(WIN32)
# FIND_PACKAGE(libmongoc
1.7)
# IF (MONGO
_FOUND)
# INCLUDE_DIRECTORIES(${MONGO_INCLUDE_DIR
})
# SET(MONGO_LIBRARY ${MONGO
_LIBRARIES})
#
SET(CONNECT_SOURCES ${CONNECT_SOURCES}
#
cmgoconn.cpp cmgfam.cpp tabcmg.cpp
#
cmgoconn.h cmgfam.h tabcmg.h)
#
add_definitions(-DCMGO_SUPPORT)
#
IF (NOT JAVA_FOUND AND JNI_FOUND)
#
SET(CONNECT_SOURCES ${CONNECT_SOURCES} mongo.cpp mongo.h)
#
add_definitions(-DMONGO_SUPPORT)
#
ENDIF (NOT JAVA_FOUND AND JNI_FOUND)
# ENDIF(MONGO
_FOUND)
#
ENDIF(CONNECT_WITH_MONGO)
IF
(
CONNECT_WITH_MONGO
)
IF
(
WIN32
)
# Adding some typical places to search in
SET
(
PC_MONGO_INCLUDE_DIRS
C:/mongo-c-driver/include
D:/mongo-c-driver/include
)
SET
(
PC_MONGO_LIBRARY_DIRS
C:/mongo-c-driver/lib
D:/mongo-c-driver/lib
)
ENDIF
(
WIN32
)
FIND_PACKAGE
(
libmongoc-1.0
1.7
)
IF
(
libmongoc-1.0
_FOUND
)
INCLUDE_DIRECTORIES
(
${
MONGOC_INCLUDE_DIRS
}
)
SET
(
MONGOC_LIBRARY
${
MONGOC
_LIBRARIES
}
)
SET
(
CONNECT_SOURCES
${
CONNECT_SOURCES
}
cmgoconn.cpp cmgfam.cpp tabcmg.cpp
cmgoconn.h cmgfam.h tabcmg.h
)
add_definitions
(
-DCMGO_SUPPORT
)
IF
(
NOT JAVA_FOUND AND JNI_FOUND
)
SET
(
CONNECT_SOURCES
${
CONNECT_SOURCES
}
mongo.cpp mongo.h
)
add_definitions
(
-DMONGO_SUPPORT
)
ENDIF
(
NOT JAVA_FOUND AND JNI_FOUND
)
ENDIF
(
libmongoc-1.0
_FOUND
)
ENDIF
(
CONNECT_WITH_MONGO
)
#
...
...
@@ -337,9 +337,8 @@ MYSQL_ADD_PLUGIN(connect ${CONNECT_SOURCES}
STORAGE_ENGINE
COMPONENT connect-engine
RECOMPILE_FOR_EMBEDDED
# LINK_LIBRARIES ${ZLIB_LIBRARY} ${XML_LIBRARY} ${ICONV_LIBRARY} $(MONGO_LIBRARY)
LINK_LIBRARIES
${
ZLIB_LIBRARY
}
${
XML_LIBRARY
}
${
ICONV_LIBRARY
}
${
ODBC_LIBRARY
}
${
JDB
C_LIBRARY
}
${
IPHLPAPI_LIBRARY
}
)
${
ODBC_LIBRARY
}
${
JDBC_LIBRARY
}
${
MONGO
C_LIBRARY
}
${
IPHLPAPI_LIBRARY
}
)
IF
(
NOT TARGET connect
)
RETURN
()
...
...
@@ -369,3 +368,5 @@ IF(CONNECT_WITH_JDBC AND JAVA_FOUND AND JNI_FOUND)
DESTINATION
${
INSTALL_PLUGINDIR
}
COMPONENT connect-engine
)
ENDIF
()
storage/connect/mysql-test/connect/r/tbl_thread.result
View file @
92c8864f
...
...
@@ -79,6 +79,7 @@ a b
CREATE TABLE total (a int, b char(10))
ENGINE=CONNECT TABLE_TYPE=TBL TABLE_LIST='t1,t2,t3,t4,t5'
OPTION_LIST='thread=yes,port=PORT';
set connect_xtrace=1;
SELECT * FROM total order by a desc;
a b
19 test19
...
...
@@ -101,6 +102,7 @@ a b
2 test02
1 test01
0 test00
set connect_xtrace=0;
DROP TABLE rt2;
DROP TABLE rt3,rt4,rt5;
DROP TABLE t1,t2,t3,t4,t5,total;
...
...
@@ -116,10 +118,12 @@ 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';;
set connect_xtrace=1;
SELECT * FROM total order by v desc;
v
22
11
set connect_xtrace=0;
DROP TABLE t1,t2,total;
#
# Old thread TBL tables test not modified (suppressed until MDEV-10179 is fixed)
...
...
storage/connect/mysql-test/connect/t/tbl_thread.test
View file @
92c8864f
...
...
@@ -56,7 +56,9 @@ SELECT * FROM t5;
eval
CREATE
TABLE
total
(
a
int
,
b
char
(
10
))
ENGINE
=
CONNECT
TABLE_TYPE
=
TBL
TABLE_LIST
=
't1,t2,t3,t4,t5'
OPTION_LIST
=
'thread=yes,port=$PORT'
;
set
connect_xtrace
=
1
;
SELECT
*
FROM
total
order
by
a
desc
;
set
connect_xtrace
=
0
;
connection
master
;
...
...
@@ -83,7 +85,9 @@ 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'
;
set
connect_xtrace
=
1
;
SELECT
*
FROM
total
order
by
v
desc
;
set
connect_xtrace
=
0
;
DROP
TABLE
t1
,
t2
,
total
;
--
echo
#
...
...
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