Current Path : /home/usr.opt/mysql57/mysql-test/suite/x/r/ |
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/x/r/crud_pipe.result |
install plugin mysqlx soname "mysqlx.so"; call mtr.add_suppression("Plugin mysqlx reported: .Failed at SSL configuration: .SSL context is not usable without certificate and private key.."); call mtr.add_suppression("Plugin mysqlx reported: .SSL_CTX_load_verify_locations failed."); DROP DATABASE IF EXISTS xplugintest; Warnings: Note 1008 Can't drop database 'xplugintest'; database doesn't exist CREATE DATABASE xplugintest; USE xplugintest; CREATE TABLE test.counttest1 ( i INT ); Send SELECT SLEEP (?) send Mysqlx.Sql.StmtExecute { stmt: " SELECT SLEEP (?) " args { type: SCALAR scalar { type: V_UINT v_unsigned_int: 5 } } } send Mysqlx.Sql.StmtExecute { stmt: "create_collection" args { type: SCALAR scalar { type: V_STRING v_string { value: "xplugintest" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "table2" } } } namespace: "xplugin" } send SELECT (100+?) send Mysqlx.Sql.StmtExecute { stmt: "SELECT (100+?) " args { type: SCALAR scalar { type: V_UINT v_unsigned_int: 10 } } } retrive result of send message at once SLEEP (5) 0 0 rows affected command ok Namespace 'xplugin' is deprecated, please use 'mysqlx' instead (100+10) 110 0 rows affected send Insert send Mysqlx.Crud.Insert { collection { name: "table2" schema: "xplugintest" } data_model: DOCUMENT row { field { type: LITERAL literal { type: V_STRING v_string { value: "\n{\n \"_id\": \"1\",\n \"name\": \"Omar Bras\", \"id\": \"1\"\n}" } } } } row { field { type: LITERAL literal { type: V_STRING v_string { value: "\n{\n \"_id\": \"2\",\n \"name\": \"Omar Mex\", \"id\": \"2\"\n}" } } } } } Send SELECT SLEEP (?) send Mysqlx.Sql.StmtExecute { stmt: " SELECT SLEEP (?) " args { type: SCALAR scalar { type: V_UINT v_unsigned_int: 2 } } } Send SELECT FROM table2 send Mysqlx.Sql.StmtExecute { stmt: " SELECT * FROM xplugintest.table2" } Send SELECT FROM table2 send Mysqlx.Sql.StmtExecute { stmt: " DROP DATABASE xplugintest" } retrive result of send message at once 2 rows affected Records: 2 Duplicates: 0 Warnings: 0 SLEEP (2) 0 0 rows affected doc _id {"id": "1", "_id": "1", "name": "Omar Bras"} 1 {"id": "2", "_id": "2", "name": "Omar Mex"} 2 0 rows affected 1 rows affected Mysqlx.Ok { msg: "bye!" } ok DROP TABLE test.counttest1; UNINSTALL PLUGIN mysqlx;