MINI MINI MANI MO
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
1 rows affected
RUN use xtest
0 rows affected
RUN create table mycoll (doc JSON, _id VARCHAR(32) NOT NULL PRIMARY KEY)
0 rows affected
RUN insert into mycoll (doc, _id) values ('{"_id": "1", "name": "Joe1"}', json_unquote(json_extract(doc, '$._id')))
1 rows affected
RUN insert into mycoll (doc, _id) values ('{"_id": "2", "name": "Joe2", "last_name": "Smith"}', json_unquote(json_extract(doc, '$._id')))
1 rows affected
RUN insert into mycoll (doc, _id) values ('{"_id": "3", "name": "Joe2", "last_name": "Shmo"}', json_unquote(json_extract(doc, '$._id')))
1 rows affected
RUN create table mytable (id int primary key, name varchar(40), price decimal(5,2), info json)
0 rows affected
RUN insert into mytable values (1, 'banana', 1.20, '{"color": "yellow"}')
1 rows affected
RUN insert into mytable values (2, 'apple', 0.25, '{"color":"red"}')
1 rows affected
RUN insert into mytable values (3, 'tomato', 1.80, '{"color":"red"}')
1 rows affected
RUN insert into mytable values (4, 'mango', 3.14, '{"color":"green"}')
1 rows affected
RUN insert into mytable values (5, 'orange', 0.90, '{"color":"orange"}')
1 rows affected
send Mysqlx.Crud.Delete {
collection {
name: "mycoll"
schema: ""
}
data_model: DOCUMENT
}
3 rows affected
send Mysqlx.Crud.Delete {
collection {
name: "mycoll"
schema: ""
}
data_model: TABLE
}
0 rows affected
send Mysqlx.Crud.Delete {
collection {
name: ""
schema: "xtest"
}
data_model: DOCUMENT
}
Got expected error: Invalid name of table/collection (code 5113)
send Mysqlx.Crud.Delete {
collection {
name: ""
schema: "xtest"
}
data_model: TABLE
}
Got expected error: Invalid name of table/collection (code 5113)
Mysqlx.Ok {
msg: "bye!"
}
ok
drop schema if exists xtest;
uninstall plugin mysqlx;
OHA YOOOO