mirror of
https://github.com/MariaDB/server.git
synced 2025-06-06 05:21:19 +03:00
MDEV-14900 Upstream 10.3 debian patches
applied (at least partially): * armhf_mroonga_storage_fail.patch (unaligned write) * mysqld_multi.server_lsb-header.patch (add LSB header) * fix-spelling-errors.patch (tabxml.cpp) * hurd_socket.patch (in Platform.pm) * remove-systemd-obsolete-target.patch
This commit is contained in:
parent
08b91548db
commit
a39337415d
@ -112,6 +112,8 @@ sub check_socket_path_length {
|
||||
return 0 if ($^O eq 'aix');
|
||||
# See Debian bug #670722 - failing on kFreeBSD even after setting short path
|
||||
return 0 if $^O eq 'gnukfreebsd' and length $path < 40;
|
||||
# GNU/Hurd doesn't have hostpath(), but no limitation either
|
||||
return 0 if $^O eq 'gnu';
|
||||
|
||||
require IO::Socket::UNIX;
|
||||
|
||||
|
@ -25,7 +25,7 @@ ALTER TABLE t1 ADD FULLTEXT INDEX idx_1 (a);
|
||||
ALTER TABLE t1 ADD FULLTEXT INDEX idx_2 (b);
|
||||
EVAL SHOW CREATE TABLE t1;
|
||||
|
||||
# check mutiple index with transaction
|
||||
# check multiple index with transaction
|
||||
START TRANSACTION;
|
||||
# Insert rows
|
||||
INSERT INTO t1 (a,b) VALUES
|
||||
|
@ -51,14 +51,14 @@ WEB XQuery Kick Start en Per Bothner 2003 49.99
|
||||
WEB XQuery Kick Start en Kurt Cagle 2003 49.99
|
||||
WEB Learning XML en Erik T. Ray 2003 39.95
|
||||
Warnings:
|
||||
Warning 1105 Mutiple values limited to 3
|
||||
Warning 1105 Multiple values limited to 3
|
||||
# One line lost because the where clause is applied only on the first 3 rows
|
||||
SELECT category, title, author, price FROM bookstore WHERE author LIKE 'J%';
|
||||
category title author price
|
||||
CHILDREN Harry Potter J K. Rowling 29.99
|
||||
WEB XQuery Kick Start James McGovern 49.99
|
||||
Warnings:
|
||||
Warning 1105 Mutiple values limited to 3
|
||||
Warning 1105 Multiple values limited to 3
|
||||
#
|
||||
# Testing concatenated values
|
||||
#
|
||||
@ -91,12 +91,12 @@ CHILDREN Harry Potter en J K. Rowling 2005 29.99
|
||||
WEB XQuery Kick Start en James McGovern, Per Bothner, Kurt Cagle, James Linn 2003 49.99
|
||||
WEB Learning XML en Erik T. Ray 2003 39.95
|
||||
Warnings:
|
||||
Warning 1105 Mutiple values limited to 4
|
||||
Warning 1105 Multiple values limited to 4
|
||||
# The where clause is applied on the concatenated column result
|
||||
SELECT category, title, author, price FROM bookstore WHERE author LIKE 'J%';
|
||||
category title author price
|
||||
CHILDREN Harry Potter J K. Rowling 29.99
|
||||
WEB XQuery Kick Start James McGovern, Per Bothner, Kurt Cagle, James Linn 49.99
|
||||
Warnings:
|
||||
Warning 1105 Mutiple values limited to 4
|
||||
Warning 1105 Multiple values limited to 4
|
||||
DROP TABLE bookstore;
|
||||
|
@ -49,14 +49,14 @@ WEB XQuery Kick Start en Per Bothner 2003 49.99
|
||||
WEB XQuery Kick Start en Kurt Cagle 2003 49.99
|
||||
WEB Learning XML en Erik T. Ray 2003 39.95
|
||||
Warnings:
|
||||
Warning 1105 Mutiple values limited to 3
|
||||
Warning 1105 Multiple values limited to 3
|
||||
# One line lost because the where clause is applied only on the first 3 rows
|
||||
SELECT category, title, author, price FROM bookstore WHERE author LIKE 'J%';
|
||||
category title author price
|
||||
CHILDREN Harry Potter J K. Rowling 29.99
|
||||
WEB XQuery Kick Start James McGovern 49.99
|
||||
Warnings:
|
||||
Warning 1105 Mutiple values limited to 3
|
||||
Warning 1105 Multiple values limited to 3
|
||||
#
|
||||
# Testing concatenated values
|
||||
#
|
||||
@ -89,12 +89,12 @@ CHILDREN Harry Potter en J K. Rowling 2005 29.99
|
||||
WEB XQuery Kick Start en James McGovern, Per Bothner, Kurt Cagle, James Linn 2003 49.99
|
||||
WEB Learning XML en Erik T. Ray 2003 39.95
|
||||
Warnings:
|
||||
Warning 1105 Mutiple values limited to 4
|
||||
Warning 1105 Multiple values limited to 4
|
||||
# The where clause is applied on the concatenated column result
|
||||
SELECT category, title, author, price FROM bookstore WHERE author LIKE 'J%';
|
||||
category title author price
|
||||
CHILDREN Harry Potter J K. Rowling 29.99
|
||||
WEB XQuery Kick Start James McGovern, Per Bothner, Kurt Cagle, James Linn 49.99
|
||||
Warnings:
|
||||
Warning 1105 Mutiple values limited to 4
|
||||
Warning 1105 Multiple values limited to 4
|
||||
DROP TABLE bookstore;
|
||||
|
@ -1845,7 +1845,7 @@ void XMULCOL::ReadColumn(PGLOBAL g)
|
||||
|
||||
if (N > Tdbp->Limit) {
|
||||
N = Tdbp->Limit;
|
||||
sprintf(g->Message, "Mutiple values limited to %d", Tdbp->Limit);
|
||||
sprintf(g->Message, "Multiple values limited to %d", Tdbp->Limit);
|
||||
PushWarning(g, Tdbp);
|
||||
} // endif N
|
||||
|
||||
|
@ -624,9 +624,10 @@ namespace mrn {
|
||||
long long int long_long_value;
|
||||
mrn_byte_order_network_to_host(&long_long_value, grn_key, grn_key_size);
|
||||
int max_bit = (grn_key_size * 8 - 1);
|
||||
*((long long int *)mysql_key) =
|
||||
long_long_value =
|
||||
long_long_value ^ (((long_long_value ^ (1LL << max_bit)) >> max_bit) |
|
||||
(1LL << max_bit));
|
||||
memcpy(mysql_key, &long_long_value, sizeof(long_long_value));
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,6 @@ Description=MariaDB @VERSION@ database server
|
||||
Documentation=man:mysqld(8)
|
||||
Documentation=https://mariadb.com/kb/en/library/systemd/
|
||||
After=network.target
|
||||
After=syslog.target
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -22,7 +22,6 @@ Description=MariaDB @VERSION@ database server (multi-instance)
|
||||
Documentation=man:mysqld(8)
|
||||
Documentation=https://mariadb.com/kb/en/library/systemd/
|
||||
After=network.target
|
||||
After=syslog.target
|
||||
|
||||
ConditionPathExists=@sysconf2dir@/my%I.cnf
|
||||
|
||||
|
@ -14,8 +14,23 @@
|
||||
# Version 1.0
|
||||
#
|
||||
|
||||
basedir=/usr/local/mysql
|
||||
bindir=/usr/local/mysql/bin
|
||||
### BEGIN INIT INFO
|
||||
# Provides: mysqld_multi
|
||||
# Required-Start: $local_fs $network $remote_fs
|
||||
# Should-Start: ypbind nscd ldap ntpd xntpd
|
||||
# Required-Stop: $local_fs $network $remote_fs
|
||||
# Default-Start: 2 3 4 5
|
||||
# Default-Stop: 0 1 6
|
||||
# Short-Description: Start and stop multiple mysql database server daemon instances
|
||||
# Description: Controls multiple MariaDB database server daemon instances
|
||||
### END INIT INFO
|
||||
|
||||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||||
NAME=mysqld_multi
|
||||
DESC=mysqld_multi
|
||||
|
||||
basedir=/usr
|
||||
bindir=/usr/bin
|
||||
|
||||
if test -x $bindir/mysqld_multi
|
||||
then
|
||||
|
Loading…
x
Reference in New Issue
Block a user