Skip to content
/ server Public
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mysql-test/lib/My/Config.pm
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ my %multipart_options=
(
"plugin-load-add" => 1,
"optimizer-switch" => 1,
"replicate-do-table" => 1,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only addition that should be kept. Also, please add a unit tests for this in mariadb-test-run.pl!

);


Expand Down
6 changes: 6 additions & 0 deletions mysql-test/main/list_parsing.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
!include include/default_my.cnf

[mysqld.1]
replicate_do_table=test.t1
replicate_do_table=test.t2
replicate_do_table=test.t3
9 changes: 9 additions & 0 deletions mysql-test/main/list_parsing.result
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
SELECT GROUP_CONCAT(tbl ORDER BY tbl) AS sorted_replicate_do_table
FROM JSON_TABLE(
CONCAT('["', REPLACE(@@replicate_do_table, ',', '","'), '"]'),
'$[*]' COLUMNS (
tbl VARCHAR(255) PATH '$'
)
) AS jt;
sorted_replicate_do_table
test.t1,test.t2,test.t3
8 changes: 8 additions & 0 deletions mysql-test/main/list_parsing.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
--source include/not_embedded.inc
SELECT GROUP_CONCAT(tbl ORDER BY tbl) AS sorted_replicate_do_table
FROM JSON_TABLE(
CONCAT('["', REPLACE(@@replicate_do_table, ',', '","'), '"]'),
'$[*]' COLUMNS (
tbl VARCHAR(255) PATH '$'
)
) AS jt;