Skip to content

Commit d64fa1d

Browse files
author
Jan Lindström
committed
Additional merge to lp:maria/10.0
2 parents 7322270 + 5ec49e6 commit d64fa1d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+541
-199
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ INCLUDE(readline)
153153
INCLUDE(libutils)
154154
INCLUDE(dtrace)
155155
INCLUDE(jemalloc)
156+
INCLUDE(pcre)
156157
INCLUDE(ctest)
157158
INCLUDE(plugin)
158159
INCLUDE(install_macros)
@@ -362,6 +363,8 @@ MYSQL_CHECK_READLINE()
362363
SET(MALLOC_LIBRARY "system")
363364
CHECK_JEMALLOC()
364365

366+
CHECK_PCRE()
367+
365368
#
366369
# Setup maintainer mode options. Platform checks are
367370
# not run with the warning options as to not perturb fragile checks
@@ -397,7 +400,6 @@ ADD_SUBDIRECTORY(include)
397400
ADD_SUBDIRECTORY(dbug)
398401
ADD_SUBDIRECTORY(strings)
399402
ADD_SUBDIRECTORY(vio)
400-
ADD_SUBDIRECTORY(pcre)
401403
ADD_SUBDIRECTORY(mysys)
402404
ADD_SUBDIRECTORY(mysys_ssl)
403405
ADD_SUBDIRECTORY(libmysql)

client/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515

1616
INCLUDE_DIRECTORIES(
1717
${CMAKE_SOURCE_DIR}/include
18-
${CMAKE_BINARY_DIR}/pcre
19-
${CMAKE_SOURCE_DIR}/pcre
18+
${PCRE_INCLUDES}
2019
${CMAKE_SOURCE_DIR}/mysys_ssl
2120
${ZLIB_INCLUDE_DIR}
2221
${SSL_INCLUDE_DIRS}

cmake/jemalloc.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ ELSE()
4646
ENDIF()
4747

4848
SET(WITH_JEMALLOC ${WITH_JEMALLOC_DEFAULT} CACHE STRING
49-
"Which jemalloc to use (possible values are 'no', 'bundled', 'system', 'yes' (system if possible, otherwise bundled)")
49+
"Which jemalloc to use. Possible values are 'no', 'bundled', 'system', 'yes' (system if possible, otherwise bundled)")
5050

5151
MACRO (CHECK_JEMALLOC)
5252
IF(WITH_JEMALLOC STREQUAL "system" OR WITH_JEMALLOC STREQUAL "yes")

cmake/pcre.cmake

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
SET(WITH_PCRE "auto" CACHE STRING
2+
"Which pcre to use (possible values are 'bundled', 'system', or 'auto')")
3+
4+
MACRO (CHECK_PCRE)
5+
IF(WITH_PCRE STREQUAL "system" OR WITH_PCRE STREQUAL "auto")
6+
CHECK_LIBRARY_EXISTS(pcre pcre_stack_guard "" HAVE_PCRE)
7+
ENDIF()
8+
IF(NOT HAVE_PCRE)
9+
IF (WITH_PCRE STREQUAL "system")
10+
MESSAGE(FATAL_ERROR "system pcre is not found or unusable")
11+
ENDIF()
12+
SET(PCRE_INCLUDES ${CMAKE_BINARY_DIR}/pcre ${CMAKE_SOURCE_DIR}/pcre)
13+
ADD_SUBDIRECTORY(pcre)
14+
ENDIF()
15+
ENDMACRO()
16+

cmake/plugin.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ MACRO(MYSQL_ADD_PLUGIN)
3737
# Add common include directories
3838
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include
3939
${CMAKE_SOURCE_DIR}/sql
40-
${CMAKE_BINARY_DIR}/pcre
41-
${CMAKE_SOURCE_DIR}/pcre
40+
${PCRE_INCLUDES}
4241
${SSL_INCLUDE_DIRS}
4342
${ZLIB_INCLUDE_DIR})
4443

libmysql/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
INCLUDE_DIRECTORIES(
1818
${CMAKE_SOURCE_DIR}/include
1919
${CMAKE_SOURCE_DIR}/libmysql
20-
${CMAKE_BINARY_DIR}/pcre
21-
${CMAKE_SOURCE_DIR}/pcre
20+
${PCRE_INCLUDES}
2221
${CMAKE_SOURCE_DIR}/strings
2322
${SSL_INCLUDE_DIRS}
2423
${SSL_INTERNAL_INCLUDE_DIRS}

libmysqld/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ ${CMAKE_SOURCE_DIR}/libmysql
2222
${CMAKE_SOURCE_DIR}/libmysqld
2323
${CMAKE_SOURCE_DIR}/sql
2424
${CMAKE_BINARY_DIR}/sql
25-
${CMAKE_BINARY_DIR}/pcre
26-
${CMAKE_SOURCE_DIR}/pcre
25+
${PCRE_INCLUDES}
2726
${ZLIB_INCLUDE_DIR}
2827
${SSL_INCLUDE_DIRS}
2928
${SSL_INTERNAL_INCLUDE_DIRS}

libmysqld/examples/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515

1616
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include
1717
${CMAKE_SOURCE_DIR}/libmysqld/include
18-
${CMAKE_BINARY_DIR}/pcre
19-
${CMAKE_SOURCE_DIR}/pcre
18+
${PCRE_INCLUDES}
2019
${CMAKE_SOURCE_DIR}/sql
2120
${MY_READLINE_INCLUDE_DIR}
2221
)

mysql-test/r/plugin.result

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,16 @@ drop table t1;
127127
SET @OLD_SQL_MODE=@@SQL_MODE;
128128
SET SQL_MODE='IGNORE_BAD_TABLE_OPTIONS';
129129
#illegal value fixed
130-
CREATE TABLE t1 (a int) ENGINE=example ULL=10000000000000000000 one_or_two='ttt' YESNO=SSS;
130+
CREATE TABLE t1 (a int, b int) ENGINE=example ULL=10000000000000000000 one_or_two='ttt' YESNO=SSS;
131131
Warnings:
132132
Warning 1912 Incorrect value '10000000000000000000' for option 'ULL'
133133
Warning 1912 Incorrect value 'ttt' for option 'one_or_two'
134134
Warning 1912 Incorrect value 'SSS' for option 'YESNO'
135135
show create table t1;
136136
Table Create Table
137137
t1 CREATE TABLE `t1` (
138-
`a` int(11) DEFAULT NULL
138+
`a` int(11) DEFAULT NULL,
139+
`b` int(11) DEFAULT NULL
139140
) ENGINE=EXAMPLE DEFAULT CHARSET=latin1 `ULL`=10000000000000000000 `one_or_two`='ttt' `YESNO`=SSS `VAROPT`='5'
140141
#alter table
141142
alter table t1 ULL=10000000;
@@ -144,23 +145,24 @@ Note 1105 EXAMPLE DEBUG: ULL 4294967290 -> 10000000
144145
show create table t1;
145146
Table Create Table
146147
t1 CREATE TABLE `t1` (
147-
`a` int(11) DEFAULT NULL
148+
`a` int(11) DEFAULT NULL,
149+
`b` int(11) DEFAULT NULL
148150
) ENGINE=EXAMPLE DEFAULT CHARSET=latin1 `one_or_two`='ttt' `YESNO`=SSS `VAROPT`='5' `ULL`=10000000
149151
alter table t1 change a a int complex='c,c,c';
150152
Warnings:
151153
Note 1105 EXAMPLE DEBUG: Field `a` COMPLEX '(null)' -> 'c,c,c'
152154
show create table t1;
153155
Table Create Table
154156
t1 CREATE TABLE `t1` (
155-
`a` int(11) DEFAULT NULL `complex`='c,c,c'
157+
`a` int(11) DEFAULT NULL `complex`='c,c,c',
158+
`b` int(11) DEFAULT NULL
156159
) ENGINE=EXAMPLE DEFAULT CHARSET=latin1 `one_or_two`='ttt' `YESNO`=SSS `VAROPT`='5' `ULL`=10000000
157160
alter table t1 one_or_two=two;
158-
Warnings:
159-
Note 1105 EXAMPLE DEBUG: Field `a` COMPLEX 'c,c,c' -> 'c,c,c'
160161
show create table t1;
161162
Table Create Table
162163
t1 CREATE TABLE `t1` (
163-
`a` int(11) DEFAULT NULL `complex`='c,c,c'
164+
`a` int(11) DEFAULT NULL `complex`='c,c,c',
165+
`b` int(11) DEFAULT NULL
164166
) ENGINE=EXAMPLE DEFAULT CHARSET=latin1 `YESNO`=SSS `VAROPT`='5' `ULL`=10000000 `one_or_two`=two
165167
drop table t1;
166168
#illegal value error
@@ -204,8 +206,6 @@ t1 CREATE TABLE `t1` (
204206
`a` int(11) DEFAULT NULL
205207
) ENGINE=EXAMPLE DEFAULT CHARSET=latin1 `varopt`=15
206208
alter table t1 varopt=default;
207-
Warnings:
208-
Note 1105 EXAMPLE DEBUG: Field `a` COMPLEX '(null)' -> '(null)'
209209
show create table t1;
210210
Table Create Table
211211
t1 CREATE TABLE `t1` (
1.01 KB
Binary file not shown.

0 commit comments

Comments
 (0)