mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-17832 Protocol: extensions for Pluggable types and JSON, GEOMETRY
This commit is contained in:
22
mysql-test/main/mysql-metadata.test
Normal file
22
mysql-test/main/mysql-metadata.test
Normal file
@ -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;
|
Reference in New Issue
Block a user