Current Path : /home/usr.opt/mysql57/mysql-test/suite/json/inc/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : /home/usr.opt/mysql57/mysql-test/suite/json/inc/json_client.inc |
# Can't run with embedded server. --source include/not_embedded.inc --echo # Verify that the client can show JSON data and metadata. CREATE TABLE t(i INT, j1 JSON, j2 JSON NOT NULL); SHOW CREATE TABLE t; INSERT INTO t VALUES (0, NULL, 'null'), (1, '1', '1'), (2, '[1,2,3]', '[4,5,6]'), (3, '{"abc":"def"}', '{"a":"b","c":"d"}'); # Filter out unstable timing information for the query. --replace_regex /\([0-9]+\.[0-9]+ sec\)/<FILTERED>/ # Execute the client. Enable printing of column metadata. --exec $MYSQL -vvv --column-type-info test -e "SELECT j1, j2 FROM t ORDER BY i" DROP TABLE t;