summaryrefslogtreecommitdiff
path: root/mysql-test/suite/json/t/rpl_json_varchar.test
blob: 9464f6709195c3f5ec4bdc857f3120ced0bdaf26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--source include/master-slave.inc

--echo #
--echo # Start of 10.5 tests
--echo #

--echo #
--echo # MDEV-27018 IF and COALESCE lose "json" property
--echo #

CREATE TABLE t1 (a VARCHAR(100) CHECK(JSON_VALID(a)));

--sync_slave_with_master

--connection master
INSERT INTO t1 VALUES (JSON_OBJECT('a','b'));
--sync_slave_with_master
SELECT * FROM t1 ORDER BY a;

--connection master
DROP TABLE t1;

--echo #
--echo # End of 10.5 tests
--echo #

--source include/rpl_end.inc