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
1c5ca7c1
Commit
1c5ca7c1
authored
Jan 12, 2017
by
Vicențiu Ciorbaru
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '5.5' into 10.0
parents
9a4bc0d0
ab93a4d4
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
116 additions
and
5 deletions
+116
-5
.gitignore
.gitignore
+1
-0
mysql-test/r/ctype_ucs.result
mysql-test/r/ctype_ucs.result
+10
-0
mysql-test/r/ctype_utf16.result
mysql-test/r/ctype_utf16.result
+10
-0
mysql-test/r/ctype_utf32.result
mysql-test/r/ctype_utf32.result
+10
-0
mysql-test/t/ctype_ucs.test
mysql-test/t/ctype_ucs.test
+8
-0
mysql-test/t/ctype_utf16.test
mysql-test/t/ctype_utf16.test
+9
-0
mysql-test/t/ctype_utf32.test
mysql-test/t/ctype_utf32.test
+9
-0
scripts/mysqld_safe.sh
scripts/mysqld_safe.sh
+7
-2
sql/sys_vars.h
sql/sys_vars.h
+1
-1
support-files/CMakeLists.txt
support-files/CMakeLists.txt
+1
-1
support-files/SELinux/CMakeLists.txt
support-files/SELinux/CMakeLists.txt
+35
-0
support-files/SELinux/centos6-mariadb.te
support-files/SELinux/centos6-mariadb.te
+9
-0
support-files/SELinux/rhel4-mysql.fc
support-files/SELinux/rhel4-mysql.fc
+0
-0
support-files/SELinux/rhel4-mysql.te
support-files/SELinux/rhel4-mysql.te
+0
-0
support-files/rpm/server-postin.sh
support-files/rpm/server-postin.sh
+6
-1
No files found.
.gitignore
View file @
1c5ca7c1
...
...
@@ -214,6 +214,7 @@ support-files/mysql.spec
support-files/mysqld_multi.server
support-files/wsrep.cnf
support-files/wsrep_notify
support-files/SELinux/centos6-mariadb.pp
tags
tests/async_queries
tests/bug25714
...
...
mysql-test/r/ctype_ucs.result
View file @
1c5ca7c1
...
...
@@ -4550,6 +4550,16 @@ SELECT CHAR_LENGTH(TRIM(BOTH 0x00 FROM _ucs2 0x0061));
CHAR_LENGTH(TRIM(BOTH 0x00 FROM _ucs2 0x0061))
1
#
# MDEV-11685: sql_mode can't be set with non-ascii connection charset
#
SET character_set_connection=ucs2;
SET sql_mode='NO_ENGINE_SUBSTITUTION';
SELECT @@sql_mode;
@@sql_mode
NO_ENGINE_SUBSTITUTION
SET sql_mode=DEFAULT;
SET NAMES utf8;
#
# End of 5.5 tests
#
#
...
...
mysql-test/r/ctype_utf16.result
View file @
1c5ca7c1
...
...
@@ -1580,6 +1580,16 @@ ERROR HY000: Invalid utf16 character string: 'DE9899'
DO LPAD(_utf16 0x0061 COLLATE utf16_unicode_ci, 10000, 0x0061DE989999);
ERROR HY000: Invalid utf16 character string: 'DE9899'
#
# MDEV-11685: sql_mode can't be set with non-ascii connection charset
#
SET character_set_connection=utf16;
SET sql_mode='NO_ENGINE_SUBSTITUTION';
SELECT @@sql_mode;
@@sql_mode
NO_ENGINE_SUBSTITUTION
SET sql_mode=DEFAULT;
SET NAMES utf8;
#
# End of 5.5 tests
#
#
...
...
mysql-test/r/ctype_utf32.result
View file @
1c5ca7c1
...
...
@@ -1662,6 +1662,16 @@ select hex(lower(cast(0xffff0000 as char character set utf32))) as c;
c
FFFF0000
#
# MDEV-11685: sql_mode can't be set with non-ascii connection charset
#
SET character_set_connection=utf32;
SET sql_mode='NO_ENGINE_SUBSTITUTION';
SELECT @@sql_mode;
@@sql_mode
NO_ENGINE_SUBSTITUTION
SET sql_mode=DEFAULT;
SET NAMES utf8;
#
# End of 5.5 tests
#
#
...
...
mysql-test/t/ctype_ucs.test
View file @
1c5ca7c1
...
...
@@ -811,6 +811,14 @@ SELECT CHAR_LENGTH(TRIM(BOTH 0x0001 FROM _ucs2 0x0061));
SELECT
CHAR_LENGTH
(
TRIM
(
BOTH
0x61
FROM
_ucs2
0x0061
));
SELECT
CHAR_LENGTH
(
TRIM
(
BOTH
0x00
FROM
_ucs2
0x0061
));
--
echo
#
--
echo
# MDEV-11685: sql_mode can't be set with non-ascii connection charset
--
echo
#
SET
character_set_connection
=
ucs2
;
SET
sql_mode
=
'NO_ENGINE_SUBSTITUTION'
;
SELECT
@@
sql_mode
;
SET
sql_mode
=
DEFAULT
;
SET
NAMES
utf8
;
--
echo
#
--
echo
# End of 5.5 tests
...
...
mysql-test/t/ctype_utf16.test
View file @
1c5ca7c1
...
...
@@ -795,6 +795,15 @@ DO RPAD(_utf16 0x0061 COLLATE utf16_unicode_ci, 10000, 0x0061DE989999);
--
error
ER_INVALID_CHARACTER_STRING
DO
LPAD
(
_utf16
0x0061
COLLATE
utf16_unicode_ci
,
10000
,
0x0061DE989999
);
--
echo
#
--
echo
# MDEV-11685: sql_mode can't be set with non-ascii connection charset
--
echo
#
SET
character_set_connection
=
utf16
;
SET
sql_mode
=
'NO_ENGINE_SUBSTITUTION'
;
SELECT
@@
sql_mode
;
SET
sql_mode
=
DEFAULT
;
SET
NAMES
utf8
;
--
echo
#
--
echo
# End of 5.5 tests
--
echo
#
...
...
mysql-test/t/ctype_utf32.test
View file @
1c5ca7c1
...
...
@@ -894,6 +894,15 @@ SELECT CHAR_LENGTH(TRIM(BOTH 0x00 FROM _utf32 0x00000061));
#
select
hex
(
lower
(
cast
(
0xffff0000
as
char
character
set
utf32
)))
as
c
;
--
echo
#
--
echo
# MDEV-11685: sql_mode can't be set with non-ascii connection charset
--
echo
#
SET
character_set_connection
=
utf32
;
SET
sql_mode
=
'NO_ENGINE_SUBSTITUTION'
;
SELECT
@@
sql_mode
;
SET
sql_mode
=
DEFAULT
;
SET
NAMES
utf8
;
--
echo
#
--
echo
# End of 5.5 tests
--
echo
#
...
...
scripts/mysqld_safe.sh
View file @
1c5ca7c1
...
...
@@ -870,8 +870,13 @@ max_fast_restarts=5
have_sleep
=
1
# close stdout and stderr, everything goes to $logging now
exec
1>&-
exec
2>&-
if
expr
"
${
-
}
"
:
'.*x'
>
/dev/null
then
:
else
exec
1>&-
exec
2>&-
fi
while
true
do
...
...
sql/sys_vars.h
View file @
1c5ca7c1
...
...
@@ -1235,7 +1235,7 @@ class Sys_var_set: public Sys_var_typelib
if
(
var
->
value
->
result_type
()
==
STRING_RESULT
)
{
if
(
!
(
res
=
var
->
value
->
val_str
(
&
str
)))
if
(
!
(
res
=
var
->
value
->
val_str
_ascii
(
&
str
)))
return
true
;
else
{
...
...
support-files/CMakeLists.txt
View file @
1c5ca7c1
...
...
@@ -67,7 +67,7 @@ IF(UNIX)
ENDFOREACH
()
IF
(
INSTALL_SUPPORTFILESDIR
)
INSTALL
(
FILES magic DESTINATION
${
inst_location
}
COMPONENT SupportFiles
)
INSTALL
(
DIRECTORY RHEL4-SElinux/ DESTINATION
${
inst_location
}
/SELinux/RHEL4 COMPONENT SupportFiles
)
ADD_SUBDIRECTORY
(
SELinux
)
ENDIF
()
INSTALL
(
FILES mysql.m4 DESTINATION
${
INSTALL_SHAREDIR
}
/aclocal COMPONENT Development
)
...
...
support-files/SELinux/CMakeLists.txt
0 → 100644
View file @
1c5ca7c1
# Copyright (c) 2017, MariaDB
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
FIND_PROGRAM
(
CHECKMODULE checkmodule
)
FIND_PROGRAM
(
SEMODULE_PACKAGE semodule_package
)
MARK_AS_ADVANCED
(
CHECKMODULE SEMODULE_PACKAGE
)
SET
(
params DESTINATION
${
INSTALL_SUPPORTFILESDIR
}
/SELinux COMPONENT SupportFiles
)
IF
(
CHECKMODULE AND SEMODULE_PACKAGE
)
FOREACH
(
pol centos6-mariadb
)
SET
(
src
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
pol
}
.te
)
SET
(
mod
${
CMAKE_CURRENT_BINARY_DIR
}${
CMAKE_FILES_DIRECTORY
}
/
${
pol
}
-pp.dir/
${
pol
}
.mod
)
SET
(
out
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
pol
}
.pp
)
ADD_CUSTOM_COMMAND
(
OUTPUT
${
out
}
COMMAND
${
CHECKMODULE
}
-M -m
${
src
}
-o
${
mod
}
COMMAND
${
SEMODULE_PACKAGE
}
-m
${
mod
}
-o
${
out
}
DEPENDS
${
src
}
)
ADD_CUSTOM_TARGET
(
${
pol
}
-pp ALL DEPENDS
${
out
}
)
INSTALL
(
FILES
${
out
}
${
params
}
)
ENDFOREACH
()
ENDIF
()
INSTALL
(
FILES centos6-mariadb.te rhel4-mysql.fc rhel4-mysql.te
${
params
}
)
support-files/SELinux/centos6-mariadb.te
0 → 100644
View file @
1c5ca7c1
module mariadb 1.0;
require {
type mysqld_safe_t;
class capability { setuid setgid };
}
#============= mysqld_safe_t ==============
allow mysqld_safe_t self:capability { setuid setgid };
support-files/
RHEL4-SElinux/
mysql.fc
→
support-files/
SELinux/rhel4-
mysql.fc
View file @
1c5ca7c1
File moved
support-files/
RHEL4-SElinux/
mysql.te
→
support-files/
SELinux/rhel4-
mysql.te
View file @
1c5ca7c1
File moved
support-files/rpm/server-postin.sh
View file @
1c5ca7c1
...
...
@@ -79,7 +79,12 @@ if [ -f /etc/redhat-release ] ; then
echo
' make load'
echo
echo
fi
fi
if
grep
'CentOS release 6'
/etc/redhat-release
>
/dev/null 2>&1
;
then
if
[
-x
/usr/sbin/semodule
]
;
then
/usr/sbin/semodule
-i
/usr/share/mysql/SELinux/centos6-mariadb.pp
fi
fi
fi
if
[
-x
sbin/restorecon
]
;
then
...
...
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