Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Olaf van der Spek
mariadb-10.1
Commits
de111ba6
Commit
de111ba6
authored
Dec 28, 2017
by
Otto Kekäläinen
Browse files
New upstream version 10.1.30
parent
255c2398
Changes
217
Expand all
Hide whitespace changes
Inline
Side-by-side
mysql-test/suite/rpl/r/rpl_row_log.result
View file @
de111ba6
...
@@ -215,7 +215,6 @@ master-bin.000001 # Query # # COMMIT
...
@@ -215,7 +215,6 @@ master-bin.000001 # Query # # COMMIT
master-bin.000001 # Rotate # # master-bin.000002;pos=POS
master-bin.000001 # Rotate # # master-bin.000002;pos=POS
include/show_binlog_events.inc
include/show_binlog_events.inc
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000002 # Binlog_checkpoint # # master-bin.000002
master-bin.000002 # Gtid # # GTID #-#-#
master-bin.000002 # Gtid # # GTID #-#-#
master-bin.000002 # Query # # use `test`; create table t3 (a int)ENGINE=MyISAM
master-bin.000002 # Query # # use `test`; create table t3 (a int)ENGINE=MyISAM
master-bin.000002 # Gtid # # GTID #-#-#
master-bin.000002 # Gtid # # GTID #-#-#
...
@@ -253,7 +252,6 @@ slave-bin.000001 # Query # # use `test`; create table t3 (a int)ENGINE=MyISAM
...
@@ -253,7 +252,6 @@ slave-bin.000001 # Query # # use `test`; create table t3 (a int)ENGINE=MyISAM
slave-bin.000001 # Rotate # # slave-bin.000002;pos=POS
slave-bin.000001 # Rotate # # slave-bin.000002;pos=POS
include/show_binlog_events.inc
include/show_binlog_events.inc
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
slave-bin.000002 # Binlog_checkpoint # # slave-bin.000002
slave-bin.000002 # Gtid # # GTID #-#-#
slave-bin.000002 # Gtid # # GTID #-#-#
slave-bin.000002 # Query # # use `test`; create table t2 (n int)ENGINE=MyISAM
slave-bin.000002 # Query # # use `test`; create table t2 (n int)ENGINE=MyISAM
slave-bin.000002 # Gtid # # BEGIN GTID #-#-#
slave-bin.000002 # Gtid # # BEGIN GTID #-#-#
...
...
mysql-test/suite/rpl/r/rpl_row_log_innodb.result
View file @
de111ba6
...
@@ -215,7 +215,6 @@ master-bin.000001 # Xid # # COMMIT /* XID */
...
@@ -215,7 +215,6 @@ master-bin.000001 # Xid # # COMMIT /* XID */
master-bin.000001 # Rotate # # master-bin.000002;pos=POS
master-bin.000001 # Rotate # # master-bin.000002;pos=POS
include/show_binlog_events.inc
include/show_binlog_events.inc
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000002 # Binlog_checkpoint # # master-bin.000002
master-bin.000002 # Gtid # # GTID #-#-#
master-bin.000002 # Gtid # # GTID #-#-#
master-bin.000002 # Query # # use `test`; create table t3 (a int)ENGINE=InnoDB
master-bin.000002 # Query # # use `test`; create table t3 (a int)ENGINE=InnoDB
master-bin.000002 # Gtid # # GTID #-#-#
master-bin.000002 # Gtid # # GTID #-#-#
...
@@ -253,7 +252,6 @@ slave-bin.000001 # Query # # use `test`; create table t3 (a int)ENGINE=InnoDB
...
@@ -253,7 +252,6 @@ slave-bin.000001 # Query # # use `test`; create table t3 (a int)ENGINE=InnoDB
slave-bin.000001 # Rotate # # slave-bin.000002;pos=POS
slave-bin.000001 # Rotate # # slave-bin.000002;pos=POS
include/show_binlog_events.inc
include/show_binlog_events.inc
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
slave-bin.000002 # Binlog_checkpoint # # slave-bin.000002
slave-bin.000002 # Gtid # # GTID #-#-#
slave-bin.000002 # Gtid # # GTID #-#-#
slave-bin.000002 # Query # # use `test`; create table t2 (n int)ENGINE=InnoDB
slave-bin.000002 # Query # # use `test`; create table t2 (n int)ENGINE=InnoDB
slave-bin.000002 # Gtid # # BEGIN GTID #-#-#
slave-bin.000002 # Gtid # # BEGIN GTID #-#-#
...
...
mysql-test/suite/rpl/r/rpl_stm_log.result
View file @
de111ba6
...
@@ -215,7 +215,6 @@ master-bin.000001 # Query # # COMMIT
...
@@ -215,7 +215,6 @@ master-bin.000001 # Query # # COMMIT
master-bin.000001 # Rotate # # master-bin.000002;pos=POS
master-bin.000001 # Rotate # # master-bin.000002;pos=POS
include/show_binlog_events.inc
include/show_binlog_events.inc
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000002 # Binlog_checkpoint # # master-bin.000002
master-bin.000002 # Gtid # # GTID #-#-#
master-bin.000002 # Gtid # # GTID #-#-#
master-bin.000002 # Query # # use `test`; create table t3 (a int)ENGINE=MyISAM
master-bin.000002 # Query # # use `test`; create table t3 (a int)ENGINE=MyISAM
master-bin.000002 # Gtid # # GTID #-#-#
master-bin.000002 # Gtid # # GTID #-#-#
...
@@ -252,7 +251,6 @@ slave-bin.000001 # Query # # use `test`; create table t3 (a int)ENGINE=MyISAM
...
@@ -252,7 +251,6 @@ slave-bin.000001 # Query # # use `test`; create table t3 (a int)ENGINE=MyISAM
slave-bin.000001 # Rotate # # slave-bin.000002;pos=POS
slave-bin.000001 # Rotate # # slave-bin.000002;pos=POS
include/show_binlog_events.inc
include/show_binlog_events.inc
Log_name Pos Event_type Server_id End_log_pos Info
Log_name Pos Event_type Server_id End_log_pos Info
slave-bin.000002 # Binlog_checkpoint # # slave-bin.000002
slave-bin.000002 # Gtid # # GTID #-#-#
slave-bin.000002 # Gtid # # GTID #-#-#
slave-bin.000002 # Query # # use `test`; create table t2 (n int)ENGINE=MyISAM
slave-bin.000002 # Query # # use `test`; create table t2 (n int)ENGINE=MyISAM
slave-bin.000002 # Gtid # # BEGIN GTID #-#-#
slave-bin.000002 # Gtid # # BEGIN GTID #-#-#
...
...
mysql-test/suite/rpl/t/rpl_gtid_delete_domain.test
0 → 100644
View file @
de111ba6
# In case master's gtid binlog state is divergent from the slave's gtid_slave_pos
# slave may not be able to connect.
# For instance when slave is more updated in some of domains, see
# MDEV-12012 as example, the master's state may require adjustment.
# In a specific case of an "old" divergent domain, that is there
# won't be no more event groups from it generated, the states can be
# made compatible with wiping the problematic domain away. After that slave
# becomes connectable.
#
# Notice that the slave applied gtid state is not really required to
# be similarly cleaned in order for replication to flow.
# However this could lead to an expected error when the master
# resumes binlogging of such domain which the test demonstrate.
--
source
include
/
master
-
slave
.
inc
--
connection
master
# enforce the default domain_id binlogging explicitly
SET
@@
SESSION
.
gtid_domain_id
=
0
;
CREATE
TABLE
t
(
a
INT
);
--
sync_slave_with_master
--
connection
slave
call
mtr
.
add_suppression
(
"connecting slave requested to start from.*which is not in the master's binlog"
);
--
source
include
/
stop_slave
.
inc
CHANGE
MASTER
TO
master_use_gtid
=
slave_pos
;
--
connection
master
# create extra gtid domains for binlog state
--
let
$extra_domain_id
=
11
--
let
$extra_domain_server_id
=
111
--
let
$extra_gtid_seq_no
=
1
--
eval
SET
@@
SESSION
.
gtid_domain_id
=
$extra_domain_id
--
eval
SET
@@
SESSION
.
server_id
=
$extra_domain_server_id
--
eval
SET
@@
SESSION
.
gtid_seq_no
=
$extra_gtid_seq_no
INSERT
INTO
t
SET
a
=
1
;
#
# Set up the slave replication state as if slave knows more events from the extra
# domain.
#
--
connection
slave
SET
@
save
.
gtid_slave_pos
=@@
global
.
gtid_slave_pos
;
--
eval
SET
@@
global
.
gtid_slave_pos
=
concat
(
@@
global
.
gtid_slave_pos
,
","
,
$extra_domain_id
,
"-"
,
$extra_domain_server_id
,
"-"
,
$extra_gtid_seq_no
+
1
)
# unsuccessful attempt to start slave
START
SLAVE
IO_THREAD
;
--
let
$slave_io_errno
=
1236
--
source
include
/
wait_for_slave_io_error
.
inc
--
connection
master
# adjust the master binlog state
FLUSH
BINARY
LOGS
;
--
let
$purge_to_binlog
=
query_get_value
(
SHOW
MASTER
STATUS
,
File
,
1
)
--
eval
PURGE
BINARY
LOGS
TO
'$purge_to_binlog'
;
# with final removal of the extra domain
--
eval
FLUSH
BINARY
LOGS
DELETE_DOMAIN_ID
=
(
$extra_domain_id
)
--
connection
slave
# start the slave sucessfully
--
source
include
/
start_slave
.
inc
--
connection
master
# but the following gtid from the *extra* domain will break replication
INSERT
INTO
t
SET
a
=
1
;
# take note of the slave io thread error due to being dismissed
# extra domain at connection to master which tried becoming active;
# slave is to stop.
--
connection
slave
--
let
$errno
=
1236
--
source
include
/
wait_for_slave_io_error
.
inc
# let's apply the very same medicine
--
connection
master
FLUSH
BINARY
LOGS
;
--
let
$purge_to_binlog
=
query_get_value
(
SHOW
MASTER
STATUS
,
File
,
1
)
--
eval
PURGE
BINARY
LOGS
TO
'$purge_to_binlog'
;
# with final removal of the extra domain
--
eval
FLUSH
BINARY
LOGS
DELETE_DOMAIN_ID
=
(
$extra_domain_id
)
--
connection
slave
--
source
include
/
start_slave
.
inc
#
# cleanup
#
--
connection
master
SET
@@
SESSION
.
gtid_domain_id
=
0
;
DROP
TABLE
t
;
sync_slave_with_master
;
--
source
include
/
rpl_end
.
inc
mysql-test/suite/sys_vars/r/sysvars_innodb.result
View file @
de111ba6
...
@@ -1347,7 +1347,7 @@ NUMERIC_MIN_VALUE NULL
...
@@ -1347,7 +1347,7 @@ NUMERIC_MIN_VALUE NULL
NUMERIC_MAX_VALUE NULL
NUMERIC_MAX_VALUE NULL
NUMERIC_BLOCK_SIZE NULL
NUMERIC_BLOCK_SIZE NULL
ENUM_VALUE_LIST fcfs,vats
ENUM_VALUE_LIST fcfs,vats
READ_ONLY
NO
READ_ONLY
YES
COMMAND_LINE_ARGUMENT REQUIRED
COMMAND_LINE_ARGUMENT REQUIRED
VARIABLE_NAME INNODB_LOCK_WAIT_TIMEOUT
VARIABLE_NAME INNODB_LOCK_WAIT_TIMEOUT
SESSION_VALUE 50
SESSION_VALUE 50
...
...
mysql-test/suite/sys_vars/t/wsrep_on_basic.opt
0 → 100644
View file @
de111ba6
--innodb-lock-schedule-algorithm=FCFS
mysql-test/t/ctype_utf8.test
View file @
de111ba6
...
@@ -1869,6 +1869,18 @@ SELECT _utf8 0x7E, _utf8 X'7E', _utf8 B'01111110';
...
@@ -1869,6 +1869,18 @@ SELECT _utf8 0x7E, _utf8 X'7E', _utf8 B'01111110';
let
$ctype_unescape_combinations
=
selected
;
let
$ctype_unescape_combinations
=
selected
;
--
source
include
/
ctype_unescape
.
inc
--
source
include
/
ctype_unescape
.
inc
--
echo
#
--
echo
# MDEV-12681 Wrong VIEW results for CHAR(0xDF USING latin1)
--
echo
#
SET
NAMES
utf8
;
SELECT
CHAR
(
0xDF
USING
latin1
);
CREATE
OR
REPLACE
VIEW
v1
AS
SELECT
CHAR
(
0xDF
USING
latin1
)
AS
c
;
SHOW
CREATE
VIEW
v1
;
SELECT
*
FROM
v1
;
DROP
VIEW
v1
;
--
echo
#
--
echo
#
--
echo
# End of 10.0 tests
--
echo
# End of 10.0 tests
--
echo
#
--
echo
#
...
...
mysql-test/t/ctype_utf8mb4.test
View file @
de111ba6
...
@@ -1913,6 +1913,24 @@ INSERT INTO t1 SELECT 'a 😁 b', 'a 😁 b';
...
@@ -1913,6 +1913,24 @@ INSERT INTO t1 SELECT 'a 😁 b', 'a 😁 b';
SELECT
*
FROM
t1
;
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
--
echo
#
--
echo
# MDEV-8949: COLUMN_CREATE unicode name breakage
--
echo
#
SET
NAMES
utf8mb4
;
SELECT
COLUMN_JSON
(
COLUMN_CREATE
(
_utf8mb4
0xF09F988E
,
1
));
SELECT
COLUMN_LIST
(
COLUMN_CREATE
(
_utf8mb4
0xF09F988E
,
1
));
SELECT
COLUMN_GET
(
COLUMN_CREATE
(
_utf8mb4
0xF09F988E
,
1
),
_utf8mb4
0xF09F988E
as
int
);
CREATE
TABLE
t1
AS
SELECT
COLUMN_LIST
(
COLUMN_CREATE
(
'a'
,
1
)),
COLUMN_JSON
(
COLUMN_CREATE
(
'b'
,
1
));
SHOW
CREATE
TABLE
t1
;
DROP
TABLE
t1
;
SET
NAMES
default
;
--
echo
#
--
echo
#
--
echo
# End of 10.0 tests
--
echo
# End of 10.0 tests
--
echo
#
--
echo
#
...
...
mysql-test/t/func_set.test
View file @
de111ba6
...
@@ -136,18 +136,14 @@ SELECT * FROM t1 WHERE FIND_IN_SET(NULL, NULL) IS UNKNOWN;
...
@@ -136,18 +136,14 @@ SELECT * FROM t1 WHERE FIND_IN_SET(NULL, NULL) IS UNKNOWN;
--
echo
--
echo
DROP
TABLE
t1
;
DROP
TABLE
t1
;
--
echo
#
--
echo
# Start of 5.3 tests
--
echo
#
--
echo
#
--
echo
#
--
echo
# MDEV-45
12 Valgrind warnings in my_long10_to_str_8bit on INTERVAL and DATE_ADD with incorrect types
--
echo
# MDEV-
1
45
96 Crash in INTERVAL(ROW(..),ROW(..))
--
echo
#
--
echo
#
CREATE
TABLE
t1
(
pk
INT
PRIMARY
KEY
);
INSERT
INTO
t1
VALUES
(
10
),(
11
);
SELECT
INTERVAL
(
9
,
1
,
DATE_ADD
(
pk
,
INTERVAL
pk
MINUTE_SECOND
),
9
,
8
,
3
,
5
,
2
,
1
)
FROM
t1
;
DROP
TABLE
t1
;
--
echo
#
--
error
ER_OPERAND_COLUMNS
--
echo
# End of 5.3 tests
SELECT
INTERVAL
(
ROW
(
1
,
1
),
ROW
(
1
,
2
));
--
echo
#
--
error
ER_OPERAND_COLUMNS
SELECT
INTERVAL
(
1
,
ROW
(
1
,
2
));
--
error
ER_OPERAND_COLUMNS
SELECT
INTERVAL
(
ROW
(
1
,
2
),
1
);
mysql-test/t/func_str.test
View file @
de111ba6
...
@@ -1756,6 +1756,18 @@ set global max_allowed_packet=default;
...
@@ -1756,6 +1756,18 @@ set global max_allowed_packet=default;
--
echo
# End of 5.6 tests
--
echo
# End of 5.6 tests
--
echo
#
--
echo
#
--
echo
#
--
echo
# Start of 10.0 tests
--
echo
#
--
echo
#
--
echo
# MDEV-12681 Wrong VIEW results for CHAR(0xDF USING latin1)
--
echo
#
EXPLAIN
EXTENDED
SELECT
CHAR
(
0xDF
USING
latin1
);
EXPLAIN
EXTENDED
SELECT
CHAR
(
0xDF
USING
`binary`
);
EXPLAIN
EXTENDED
SELECT
CHAR
(
0xDF
);
--
echo
#
--
echo
#
--
echo
# Start of 10.1 tests
--
echo
# Start of 10.1 tests
--
echo
#
--
echo
#
...
@@ -1800,7 +1812,6 @@ SELECT f1,HEX(f2) FROM t1 WHERE f1='YQ==' AND (f2= from_base64(
...
@@ -1800,7 +1812,6 @@ SELECT f1,HEX(f2) FROM t1 WHERE f1='YQ==' AND (f2= from_base64(
SELECT
f1
,
HEX
(
f2
)
FROM
t1
WHERE
f1
=
'YQ=='
AND
(
f2
=
from_base64
(
"Yq=="
)
OR
f2
=
from_base64
(
"YQ=="
));
SELECT
f1
,
HEX
(
f2
)
FROM
t1
WHERE
f1
=
'YQ=='
AND
(
f2
=
from_base64
(
"Yq=="
)
OR
f2
=
from_base64
(
"YQ=="
));
DROP
TABLE
t1
;
DROP
TABLE
t1
;
--
echo
#
--
echo
#
--
echo
# End of 10.1 tests
--
echo
# End of 10.1 tests
--
echo
#
--
echo
#
mysql-test/t/group_by.test
View file @
de111ba6
...
@@ -1764,6 +1764,32 @@ create table t2 (c1 int, c2 int);
...
@@ -1764,6 +1764,32 @@ create table t2 (c1 int, c2 int);
select
t1
.
c1
as
c1
,
t2
.
c2
as
c1
from
t1
,
t2
where
t1
.
c1
<
20
and
t2
.
c2
>
5
group
by
t1
.
c1
,
t2
.
c2
having
t1
.
c1
<
3
;
select
t1
.
c1
as
c1
,
t2
.
c2
as
c1
from
t1
,
t2
where
t1
.
c1
<
20
and
t2
.
c2
>
5
group
by
t1
.
c1
,
t2
.
c2
having
t1
.
c1
<
3
;
drop
table
t1
,
t2
;
drop
table
t1
,
t2
;
#
# MDEV-12350: Heap corruption, overrun buffer, ASAN errors, server crash in my_fill_8bit / filesort
#
SET
@
old_sort_buff_size
=
@@
sort_buffer_size
;
SET
@@
sort_buffer_size
=
256
*
1024
;
CREATE
TABLE
t1
(
c
INT
)
ENGINE
=
MyISAM
;
INSERT
INTO
t1
VALUES
(
2011
),(
1977
),(
1982
),(
2027
),(
2023
),(
NULL
),(
NULL
),(
2004
),(
1974
),(
2032
),
(
1993
),(
NULL
),(
1995
),(
2034
),(
NULL
),(
2009
),(
1900
),(
NULL
),(
2025
),(
1900
),
(
2033
),(
1900
),(
2012
),(
NULL
),(
2009
),(
1992
),(
1974
),(
1974
),(
2012
),(
2028
),
(
2007
),(
2012
),(
1900
),(
1983
),(
1900
),(
2010
),(
1987
),(
1994
),(
1981
),(
2032
),
(
2010
),(
1989
),(
2014
),(
1900
),(
1900
),(
1976
),(
1978
),(
2007
),(
2030
),(
NULL
),
(
2002
),(
1997
),(
1900
),(
NULL
),(
2000
),(
2027
),(
1975
),(
2026
),(
1975
),(
2026
),
(
2029
),(
1977
),(
1900
),(
1900
),(
2031
),(
1993
),(
1986
),(
2012
),(
1979
),(
2013
),
(
1994
),(
2014
),(
2025
),(
2006
),(
1971
),(
1974
),(
2021
),(
2011
),(
NULL
),(
1991
),
(
2001
),(
1977
),(
2023
),(
2012
),(
1900
),(
1978
),(
1998
),(
NULL
),(
1988
),(
1999
),
(
2017
),(
2008
),(
1976
),(
1900
),(
2005
),(
2030
),(
2023
),(
1900
),(
1978
),(
1990
),
(
1978
),(
1987
),(
2030
),(
1900
),(
2034
),(
2006
),(
2015
),(
2001
),(
2019
),(
2024
),
(
2030
),(
1989
),(
1997
),(
2007
),(
2023
),(
1994
),(
1971
),(
2011
),(
2011
),(
2015
),
(
1984
),(
1978
),(
1979
),(
1989
),(
2008
),(
2030
);
SELECT
ExtractValue
(
'<a></a>'
,
'/a'
)
AS
f1
,
SPACE
(
c
)
AS
f2
FROM
t1
GROUP
BY
f1
,
f2
WITH
ROLLUP
;
SET
@@
sort_buffer_size
=
@
old_sort_buff_size
;
DROP
TABLE
t1
;
#
#
# End of MariaDB 5.5 tests
# End of MariaDB 5.5 tests
#
#
...
...
mysql-test/t/having.test
View file @
de111ba6
...
@@ -728,6 +728,23 @@ HAVING UPPER(`column_1`) LIKE '8%';
...
@@ -728,6 +728,23 @@ HAVING UPPER(`column_1`) LIKE '8%';
drop
table
t1
;
drop
table
t1
;
--
echo
#
--
echo
# mdev-14368: grouping query with alias for aggregate function in HAVING
--
echo
# when sql_mode = 'ONLY_FULL_GROUP_BY'
set
@
save_sql_mode
=
@@
sql_mode
;
set
sql_mode
=
'ONLY_FULL_GROUP_BY'
;
create
table
t1
(
a
int
);
insert
t1
values
(
4
),(
1
),(
2
),(
1
),
(
3
),(
4
);
SELECT
a
,
COUNT
(
a
)
as
ct
FROM
t1
GROUP
BY
a
HAVING
ct
>
0
;
set
sql_mode
=@
save_sql_mode
;
drop
table
t1
;
--
echo
#
--
echo
#
--
echo
# Bug mdev-5160: two-way join with HAVING over the second table
--
echo
# Bug mdev-5160: two-way join with HAVING over the second table
--
echo
#
--
echo
#
...
...
mysql-test/t/join_outer.test
View file @
de111ba6
...
@@ -1962,6 +1962,20 @@ DROP FUNCTION f1;
...
@@ -1962,6 +1962,20 @@ DROP FUNCTION f1;
DROP
TABLE
t1
,
t2
;
DROP
TABLE
t1
,
t2
;
--
echo
#
--
echo
# MDEV-10397: Server crashes in key_copy with join_cache_level > 2 and join on BIT fields
--
echo
#
CREATE
TABLE
t1
(
b1
BIT
NOT
NULL
);
INSERT
INTO
t1
VALUES
(
0
),(
1
);
CREATE
TABLE
t2
(
b2
BIT
NOT
NULL
);
INSERT
INTO
t2
VALUES
(
0
),(
1
);
SET
SESSION
JOIN_CACHE_LEVEL
=
3
;
SELECT
t1
.
b1
+
'0'
,
t2
.
b2
+
'0'
FROM
t1
LEFT
JOIN
t2
ON
b1
=
b2
;
DROP
TABLE
t1
,
t2
;
--
echo
# end of 5.5 tests
--
echo
# end of 5.5 tests
SET
optimizer_switch
=@
save_optimizer_switch
;
SET
optimizer_switch
=@
save_optimizer_switch
;
mysql-test/t/sp.test
View file @
de111ba6
...
@@ -9588,4 +9588,21 @@ drop procedure p;
...
@@ -9588,4 +9588,21 @@ drop procedure p;
drop
view
v
;
drop
view
v
;
drop
table
t
,
tmp_t
;
drop
table
t
,
tmp_t
;
--
echo
#
--
echo
# MDEV-13936: Server crashes in Time_and_counter_tracker::incr_loops
--
echo
#
CREATE
TABLE
t1
(
i
INT
);
CREATE
VIEW
v1
AS
SELECT
*
FROM
t1
WHERE
RAND
()
>
0.5
;
CREATE
FUNCTION
f1
()
RETURNS
INT
RETURN
(
SELECT
MAX
(
i
)
FROM
v1
);
--
error
ER_NON_INSERTABLE_TABLE
REPLACE
INTO
v1
VALUES
(
f1
());
SET
@
aux
=
f1
();
# Cleanup
DROP
FUNCTION
f1
;
DROP
VIEW
v1
;
DROP
TABLE
t1
;
--
echo
#End of 10.1 tests
--
echo
#End of 10.1 tests
mysql-test/t/trigger.test
View file @
de111ba6
...
@@ -2634,3 +2634,27 @@ INSERT INTO t1 VALUES ('a');
...
@@ -2634,3 +2634,27 @@ INSERT INTO t1 VALUES ('a');
DROP
TRIGGER
t1_bi
;
DROP
TRIGGER
t1_bi
;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
--
echo
#
--
echo
# MDEV-13936: Server crashes in Time_and_counter_tracker::incr_loops
--
echo
#
CREATE
TABLE
t1
(
i
INT
);
CREATE
VIEW
v1
AS
SELECT
*
FROM
t1
WHERE
RAND
()
>
0.5
;
CREATE
TABLE
t2
(
a
int
);
CREATE
TABLE
t3
(
a
int
);
create
trigger
trg
after
insert
on
t2
for
each
row
INSERT
INTO
t3
SELECT
MAX
(
i
)
FROM
v1
UNION
SELECT
MAX
(
i
)
FROM
v1
;
drop
table
t1
;
--
error
ER_NO_SUCH_TABLE
insert
into
t2
value
(
2
);
CREATE
TABLE
t1
(
i
INT
);
insert
into
t2
value
(
2
);
DROP
VIEW
v1
;
DROP
TABLE
t1
,
t2
,
t3
;
--
echo
End
of
10.1
tests
.
mysql-test/t/view.test
View file @
de111ba6
...
@@ -5591,6 +5591,18 @@ PREPARE stmt FROM 'REPLACE INTO v2 SELECT a FROM t3';
...
@@ -5591,6 +5591,18 @@ PREPARE stmt FROM 'REPLACE INTO v2 SELECT a FROM t3';
drop
view
v1
,
v2
;
drop
view
v1
,
v2
;
drop
table
t3
;
drop
table
t3
;
--
echo
#
--
echo
# MDEV-14619: VIEW and GROUP_CONCAT
--
echo
#
CREATE
TABLE
t1
(
str
text
);
INSERT
INTO
t1
VALUES
(
"My"
),(
"SQL"
);
CREATE
VIEW
v1
AS
SELECT
GROUP_CONCAT
(
str
SEPARATOR
'\\'
)
FROM
t1
;
SELECT
*
FROM
v1
;
SHOW
CREATE
VIEW
v1
;
drop
view
v1
;
drop
table
t1
;
--
echo
# -----------------------------------------------------------------
--
echo
# -----------------------------------------------------------------
--
echo
# -- End of 5.5 tests.
--
echo
# -- End of 5.5 tests.
--
echo
# -----------------------------------------------------------------
--
echo
# -----------------------------------------------------------------
...
...
mysql-test/t/xml.test
View file @
de111ba6
...
@@ -713,7 +713,7 @@ FROM t1;
...
@@ -713,7 +713,7 @@ FROM t1;
SELECT
UPDATEXML
(
txt
,
CONCAT
(
'//'
,
REPEAT
(
'b'
,
63
)),
'63/63+'
)
FROM
t1
;
SELECT
UPDATEXML
(
txt
,
CONCAT
(
'//'
,
REPEAT
(
'b'
,
63
)),
'63/63+'
)
FROM
t1
;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
# This will call
my_str_realloc_mysqld
()
# This will call
realloc
()
CREATE
TABLE
t1
(
a
TEXT
);
CREATE
TABLE
t1
(
a
TEXT
);
INSERT
INTO
t1
VALUES
(
CONCAT
(
'<a><'
,
REPEAT
(
'b'
,
128
),
'>b128</'
,
REPEAT
(
'b'
,
128
),
'><'
,
REPEAT
(
'c'
,
512
),
'>c512</'
,
REPEAT
(
'c'
,
512
),
'></a>'
));
INSERT
INTO
t1
VALUES
(
CONCAT
(
'<a><'
,
REPEAT
(
'b'
,
128
),
'>b128</'
,
REPEAT
(
'b'
,
128
),
'><'
,
REPEAT
(
'c'
,
512
),
'>c512</'
,
REPEAT
(
'c'
,
512
),
'></a>'
));
SELECT
ExtractValue
(
a
,
CONCAT
(
'//'
,
REPEAT
(
'c'
,
512
)))
AS
c512
FROM
t1
;
SELECT
ExtractValue
(
a
,
CONCAT
(
'//'
,
REPEAT
(
'c'
,
512
)))
AS
c512
FROM
t1
;
...
...
mysql-test/unstable-tests
View file @
de111ba6
This diff is collapsed.
Click to expand it.
mysys/ma_dyncol.c
View file @
de111ba6
...
@@ -4183,8 +4183,7 @@ mariadb_dyncol_json_internal(DYNAMIC_COLUMN *str, DYNAMIC_STRING *json,
...
@@ -4183,8 +4183,7 @@ mariadb_dyncol_json_internal(DYNAMIC_COLUMN *str, DYNAMIC_STRING *json,
}
}
else
else
{
{
if
((
rc
=
mariadb_dyncol_val_str
(
json
,
&
val
,
if
((
rc
=
mariadb_dyncol_val_str
(
json
,
&
val
,
DYNCOL_UTF
,
'"'
))
<
0
)
&
my_charset_utf8_general_ci
,
'"'
))
<
0
)
goto
err
;
goto
err
;
}
}
}
}
...
...
mysys/my_default.c
View file @
de111ba6
...
@@ -487,8 +487,7 @@ int load_defaults(const char *conf_file, const char **groups,
...
@@ -487,8 +487,7 @@ int load_defaults(const char *conf_file, const char **groups,
easily command line options override options in configuration files
easily command line options override options in configuration files
NOTES
NOTES
In case of fatal error, the function will print a warning and do
In case of fatal error, the function will print a warning and returns 2
exit(1)
To free used memory one should call free_defaults() with the argument
To free used memory one should call free_defaults() with the argument
that was put in *argv
that was put in *argv
...
@@ -641,8 +640,7 @@ int my_load_defaults(const char *conf_file, const char **groups,
...
@@ -641,8 +640,7 @@ int my_load_defaults(const char *conf_file, const char **groups,
err:
err:
fprintf
(
stderr
,
"Fatal error in defaults handling. Program aborted
\n
"
);
fprintf
(
stderr
,
"Fatal error in defaults handling. Program aborted
\n
"
);
exit
(
1
);
return
2
;
return
0
;
/* Keep compiler happy */
}
}
...
...
Prev
1
2
3
4
5
6
7
8
9
…
11
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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