mirror of
https://github.com/MariaDB/server.git
synced 2025-10-23 16:17:30 +02:00
Adding a global/session var `redirect_url' of string type. The initial
value is empty. Can be supplied in mysqld with --redirect-url or set
in --init-connect. A valid redirect_url should be of the format
{mysql,mariadb}://host[:port]
where <host> is an arbitrary string not containing colons, and <port>
is a number between 0 and 65535 inclusive.
The variable will be used by the server to notify clients that they
should connect to another server, specified by the value of the
variable, if not empty.
The notification is done by the inclusion of the variable in
session_track_system_variable.
17 lines
528 B
Text
17 lines
528 B
Text
--echo #
|
|
--echo # MDEV-32254 Server crashes when adding records to table after setting redirect_url with empty variable
|
|
--echo #
|
|
--source include/have_innodb.inc
|
|
# redirect_url is undefined in embedded.
|
|
--source include/not_embedded.inc
|
|
set @old_redirect_url=@@global.redirect_url;
|
|
--error ER_WRONG_VALUE_FOR_VAR
|
|
set global redirect_url=@empty_value;
|
|
CREATE TABLE t (c1 INT) ENGINE=INNODB;
|
|
INSERT INTO t VALUES (1),(1);
|
|
drop table t;
|
|
set global redirect_url=@old_redirect_url;
|
|
|
|
--echo #
|
|
--echo # end of test mdev_32254
|
|
--echo #
|