mirror of
https://github.com/MariaDB/server.git
synced 2025-04-18 21:44:20 +03:00
MDEV-36633 MDEV-35452 spider/bugfix.mdev_33434 reports wrong error in view protocol
With view protocol collation_connection is reset in mysql_make_view in the "SELECT * FROM mysqltest_tmp_v" query. In the case of spider/bugfix.mdev_33434, it is reset to latin1_swedish_ci, with the latin1 charset. This results in no conversion needed since it is the same as character_set_client and the corresponding argument in the udf remains unchanged, with "dummy" srv value. Thus the reported error is 1477: 'The foreign server name you are trying to reference does not exist. Data source error: dummy' Without view protocol, the character_set_connection ucs2 setting in the test survives, and the conversion results in empty connection parameters, and the reported error is 1429 ER_CONNECT_TO_FOREIGN_DATA_SOURCE This failure is irrelevant to the test, or to spider at all. Therefore we disable view protocol for the statement.
This commit is contained in:
parent
0030c0ca58
commit
db352cfaf2
@ -4,8 +4,10 @@
|
||||
|
||||
INSTALL SONAME 'ha_spider';
|
||||
SET character_set_connection=ucs2;
|
||||
--disable_view_protocol
|
||||
--error ER_CONNECT_TO_FOREIGN_DATA_SOURCE
|
||||
SELECT SPIDER_DIRECT_SQL('SELECT SLEEP(1)', '', 'srv "dummy", port "3307"');
|
||||
--enable_view_protocol
|
||||
--disable_query_log
|
||||
--source ../../include/clean_up_spider.inc
|
||||
--enable_query_log
|
||||
|
Loading…
x
Reference in New Issue
Block a user