-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-33493 Spider: Make a symlink result file a normal file
- Loading branch information
1 parent
b04c857
commit 0f0da95
Showing
1 changed file
with
43 additions
and
1 deletion.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
storage/spider/mysql-test/spider/bugfix/r/udf_mysql_func_early_init_file.result
This file was deleted.
Oops, something went wrong.
43 changes: 43 additions & 0 deletions
43
storage/spider/mysql-test/spider/bugfix/r/udf_mysql_func_early_init_file.result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# | ||
# Test that udf created by inserting into mysql_func works as expected | ||
# | ||
CREATE SERVER s_1 FOREIGN DATA WRAPPER mysql OPTIONS ( | ||
HOST 'localhost', | ||
DATABASE 'auto_test_local', | ||
USER 'root', | ||
PASSWORD '', | ||
SOCKET '$MASTER_1_MYSOCK' | ||
); | ||
CREATE SERVER s_2_1 FOREIGN DATA WRAPPER mysql OPTIONS ( | ||
HOST 'localhost', | ||
DATABASE 'auto_test_remote', | ||
USER 'root', | ||
PASSWORD '', | ||
SOCKET '$CHILD2_1_MYSOCK' | ||
); | ||
connect master_1, localhost, root, , , $MASTER_1_MYPORT, $MASTER_1_MYSOCK; | ||
connect child2_1, localhost, root, , , $CHILD2_1_MYPORT, $CHILD2_1_MYSOCK; | ||
connection child2_1; | ||
CREATE DATABASE auto_test_remote; | ||
USE auto_test_remote; | ||
CREATE TABLE tbl_a ( | ||
a INT | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
insert into tbl_a values (42); | ||
connection master_1; | ||
CREATE DATABASE auto_test_local; | ||
USE auto_test_local; | ||
CREATE TABLE tbl_a ( | ||
a INT | ||
) ENGINE=Spider DEFAULT CHARSET=utf8 COMMENT='table "tbl_a", srv "s_2_1"'; | ||
create temporary table results (a int); | ||
SELECT SPIDER_DIRECT_SQL('select * from tbl_a', 'results', 'srv "s_2_1", database "auto_test_remote"'); | ||
SPIDER_DIRECT_SQL('select * from tbl_a', 'results', 'srv "s_2_1", database "auto_test_remote"') | ||
1 | ||
select * from results; | ||
a | ||
42 | ||
connection master_1; | ||
DROP DATABASE IF EXISTS auto_test_local; | ||
connection child2_1; | ||
DROP DATABASE IF EXISTS auto_test_remote; |