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/admin_create_index_string.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."); RUN drop schema if exists xtest 0 rows affected RUN create schema xtest default charset 'utf8mb4' 1 rows affected RUN use xtest 0 rows affected send Mysqlx.Sql.StmtExecute { stmt: "create_collection" args { type: SCALAR scalar { type: V_STRING v_string { value: "xtest" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "books1" } } } namespace: "xplugin" } command ok Namespace 'xplugin' is deprecated, please use 'mysqlx' instead send Mysqlx.Sql.StmtExecute { stmt: "create_collection_index" args { type: SCALAR scalar { type: V_STRING v_string { value: "xtest" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "books1" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "isbn" } } } args { type: SCALAR scalar { type: V_BOOL v_bool: true } } args { type: SCALAR scalar { type: V_STRING v_string { value: "$.isbn" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "TEXT(13)" } } } args { type: SCALAR scalar { type: V_BOOL v_bool: false } } namespace: "xplugin" } command ok send Mysqlx.Crud.Insert { collection { name: "books1" schema: "xtest" } data_model: DOCUMENT row { field { type: LITERAL literal { type: V_STRING v_string { value: "{\"_id\": \"one\", \"name\": \"The Bla\", \"isbn\" : \"9780262527804\", \"pages\":30}" } } } } } 1 rows affected send Mysqlx.Crud.Insert { collection { name: "books1" schema: "xtest" } data_model: DOCUMENT row { field { type: LITERAL literal { type: V_STRING v_string { value: "{\"_id\": \"two\", \"name\": \"The Bla II\", \"isbn\" : \"9780262527805\"}" } } } } } 1 rows affected send Mysqlx.Crud.Insert { collection { name: "books1" schema: "xtest" } data_model: DOCUMENT row { field { type: LITERAL literal { type: V_STRING v_string { value: "{\"_id\": \"three\", \"name\": \"The Bla III\"}" } } } } } 1 rows affected send Mysqlx.Sql.StmtExecute { stmt: "create_collection_index" args { type: SCALAR scalar { type: V_STRING v_string { value: "xtest" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "books1" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "pages" } } } args { type: SCALAR scalar { type: V_BOOL v_bool: true } } args { type: SCALAR scalar { type: V_STRING v_string { value: "$.pages" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "INT" } } } args { type: SCALAR scalar { type: V_BOOL v_bool: true } } namespace: "xplugin" } Got expected error: Mysqlx.Error { severity: ERROR code: 5117 msg: "Collection contains document missing required field" sql_state: "HY000" } send Mysqlx.Sql.StmtExecute { stmt: "create_collection_index" args { type: SCALAR scalar { type: V_STRING v_string { value: "xtest" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "books1" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "name" } } } args { type: SCALAR scalar { type: V_BOOL v_bool: true } } args { type: SCALAR scalar { type: V_STRING v_string { value: "$.name" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "TEXT(80)" } } } args { type: SCALAR scalar { type: V_BOOL v_bool: true } } namespace: "xplugin" } command ok send Mysqlx.Crud.Insert { collection { name: "books1" schema: "xtest" } data_model: DOCUMENT row { field { type: LITERAL literal { type: V_STRING v_string { value: "{\"_id\": \"four\", \"isbn\": \"9780262527809\"}" } } } } } Got expected error: Mysqlx.Error { severity: ERROR code: 5115 msg: "Document is missing a required field" sql_state: "HY000" } send Mysqlx.Sql.StmtExecute { stmt: "create_collection_index" args { type: SCALAR scalar { type: V_STRING v_string { value: "xtest" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "books1" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "datetime`;drop table" } } } args { type: SCALAR scalar { type: V_BOOL v_bool: false } } args { type: SCALAR scalar { type: V_STRING v_string { value: "$.data.datetime" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "DATETIME" } } } args { type: SCALAR scalar { type: V_BOOL v_bool: false } } namespace: "xplugin" } command ok send Mysqlx.Sql.StmtExecute { stmt: "create_collection_index" args { type: SCALAR scalar { type: V_STRING v_string { value: "xtest" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "books1" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "datetime\\`;drop table" } } } args { type: SCALAR scalar { type: V_BOOL v_bool: false } } args { type: SCALAR scalar { type: V_STRING v_string { value: "$.data.datetime" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "DATETIME" } } } args { type: SCALAR scalar { type: V_BOOL v_bool: false } } namespace: "xplugin" } command ok send Mysqlx.Sql.StmtExecute { stmt: "create_collection_index" args { type: SCALAR scalar { type: V_STRING v_string { value: "xtest" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "books1" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "_id" } } } args { type: SCALAR scalar { type: V_BOOL v_bool: false } } args { type: SCALAR scalar { type: V_STRING v_string { value: "$.data.datetime" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "DATETIME" } } } args { type: SCALAR scalar { type: V_BOOL v_bool: false } } namespace: "xplugin" } command ok send Mysqlx.Sql.StmtExecute { stmt: "create_collection_index" args { type: SCALAR scalar { type: V_STRING v_string { value: "xtest" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "books1" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "" } } } args { type: SCALAR scalar { type: V_BOOL v_bool: false } } args { type: SCALAR scalar { type: V_STRING v_string { value: "$.data.datetime" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "DATETIME" } } } args { type: SCALAR scalar { type: V_BOOL v_bool: false } } namespace: "xplugin" } Mysqlx.Error { severity: ERROR code: 5017 msg: "Argument value \'\' for index name is invalid" sql_state: "HY000" } send Mysqlx.Sql.StmtExecute { stmt: "create_collection_index" args { type: SCALAR scalar { type: V_STRING v_string { value: "xtest" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "books1" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "aaa" } } } args { type: SCALAR scalar { type: V_BOOL v_bool: false } } args { type: SCALAR scalar { type: V_STRING v_string { value: "$.data.datetime" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "text(20);drop table" } } } args { type: SCALAR scalar { type: V_BOOL v_bool: false } } namespace: "xplugin" } Got expected error: Mysqlx.Error { severity: ERROR code: 5017 msg: "Invalid or unsupported type specification \'text(20);drop table\'" sql_state: "HY000" } send Mysqlx.Sql.StmtExecute { stmt: "create_collection_index" args { type: SCALAR scalar { type: V_STRING v_string { value: "xtest" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "books1" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "aaa" } } } args { type: SCALAR scalar { type: V_BOOL v_bool: false } } args { type: SCALAR scalar { type: V_STRING v_string { value: "$.data.datetime" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "varchar(20)" } } } args { type: SCALAR scalar { type: V_BOOL v_bool: false } } namespace: "xplugin" } Got expected error: Mysqlx.Error { severity: ERROR code: 5017 msg: "Invalid or unsupported type specification \'varchar(20)\'" sql_state: "HY000" } send Mysqlx.Sql.StmtExecute { stmt: "create_collection_index" args { type: SCALAR scalar { type: V_STRING v_string { value: "xtest" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "books1" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "aaa" } } } args { type: SCALAR scalar { type: V_BOOL v_bool: false } } args { type: SCALAR scalar { type: V_STRING v_string { value: "$.data datetime" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "int" } } } args { type: SCALAR scalar { type: V_BOOL v_bool: false } } namespace: "xplugin" } Got expected error: Mysqlx.Error { severity: ERROR code: 3143 msg: "Invalid JSON path expression. The error is around character position 7." sql_state: "42000" } send Mysqlx.Sql.StmtExecute { stmt: "create_collection_index" args { type: SCALAR scalar { type: V_STRING v_string { value: "xtest" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "books1" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "aaa" } } } args { type: SCALAR scalar { type: V_BOOL v_bool: false } } args { type: SCALAR scalar { type: V_STRING v_string { value: "$.data\' foo" } } } args { type: SCALAR scalar { type: V_STRING v_string { value: "int" } } } args { type: SCALAR scalar { type: V_BOOL v_bool: false } } namespace: "xplugin" } Got expected error: Mysqlx.Error { severity: ERROR code: 3143 msg: "Invalid JSON path expression. The error is around character position 7." sql_state: "42000" } RUN drop schema if exists xtest 1 rows affected Mysqlx.Ok { msg: "bye!" } ok uninstall plugin mysqlx;