diff options
author | Alexander Barkov <bar@mariadb.com> | 2020-03-10 16:05:42 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2020-03-10 20:43:32 +0400 |
commit | e40858a7bdc65be4386a9e74262731fae964958b (patch) | |
tree | 184b48fea049e6e7ca4763480e6d6a7bd1ff9abd /mysql-test/main/mysql-metadata.test | |
parent | 00749980acf617fbc26b5cdaff6e256a673dab76 (diff) | |
download | mariadb-git-e40858a7bdc65be4386a9e74262731fae964958b.tar.gz |
MDEV-17832 Protocol: extensions for Pluggable types and JSON, GEOMETRY
Diffstat (limited to 'mysql-test/main/mysql-metadata.test')
-rw-r--r-- | mysql-test/main/mysql-metadata.test | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mysql-test/main/mysql-metadata.test b/mysql-test/main/mysql-metadata.test new file mode 100644 index 00000000000..bab44496f78 --- /dev/null +++ b/mysql-test/main/mysql-metadata.test @@ -0,0 +1,22 @@ +-- source include/have_working_dns.inc +-- source include/not_embedded.inc + +--echo # +--echo # MDEV-17832 Protocol: extensions for Pluggable types and JSON, GEOMETRY +--echo # + +SET NAMES utf8; +CREATE TABLE t1 ( + js0 JSON, + js1 TEXT CHECK (JSON_VALID(js1)), + js2 TEXT CHECK (LENGTH(js2) > 0 AND JSON_VALID(js2)), + js3 TEXT CHECK (LENGTH(js2) > 0 OR JSON_VALID(js2)) +) CHARACTER SET utf8; + +--replace_regex /0 rows in set [(].*[)]/0 rows in set (TIME)/ +--exec $MYSQL -vvv --column-type-info --database=test -e "SELECT * FROM t1;" + +--replace_regex /0 rows in set [(].*[)]/0 rows in set (TIME)/ +--exec $MYSQL -vvv --column-type-info --database=test -e "SELECT JSON_COMPACT(js0) FROM t1;" + +DROP TABLE t1; |