mirror of
https://github.com/MariaDB/server.git
synced 2025-02-14 09:25:35 +01:00
![Yuchen Pei](/assets/img/avatar_default.png)
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.
13 lines
419 B
Text
13 lines
419 B
Text
#
|
|
# MDEV-32254 Server crashes when adding records to table after setting redirect_url with empty variable
|
|
#
|
|
set @old_redirect_url=@@global.redirect_url;
|
|
set global redirect_url=@empty_value;
|
|
ERROR 42000: Variable 'redirect_url' can't be set to the value of 'NULL'
|
|
CREATE TABLE t (c1 INT) ENGINE=INNODB;
|
|
INSERT INTO t VALUES (1),(1);
|
|
drop table t;
|
|
set global redirect_url=@old_redirect_url;
|
|
#
|
|
# end of test mdev_32254
|
|
#
|