config root man

Current Path : /home/usr.opt/mysql57/mysql-test/suite/x/t/

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
Upload File :
Current File : //home/usr.opt/mysql57/mysql-test/suite/x/t/delete_del_missing_arg.test

## generated
## Delete with missing schema or table

--source ../include/xplugin_preamble.inc
## Test starts here
--write_file $MYSQL_TMP_DIR/delete_del_missing_arg.tmp
## Test data
-->sql
drop schema if exists xtest;
create schema xtest;
use xtest;
create table mycoll (doc JSON, _id VARCHAR(32) NOT NULL PRIMARY KEY);
insert into mycoll (doc, _id) values ('{"_id": "1", "name": "Joe1"}', json_unquote(json_extract(doc, '$._id')));
insert into mycoll (doc, _id) values ('{"_id": "2", "name": "Joe2", "last_name": "Smith"}', json_unquote(json_extract(doc, '$._id')));
insert into mycoll (doc, _id) values ('{"_id": "3", "name": "Joe2", "last_name": "Shmo"}', json_unquote(json_extract(doc, '$._id')));
create table mytable (id int primary key, name varchar(40), price decimal(5,2), info json);
insert into mytable values (1, 'banana', 1.20, '{"color": "yellow"}');
insert into mytable values (2, 'apple', 0.25, '{"color":"red"}');
insert into mytable values (3, 'tomato', 1.80, '{"color":"red"}');
insert into mytable values (4, 'mango', 3.14, '{"color":"green"}');
insert into mytable values (5, 'orange', 0.90, '{"color":"orange"}');
-->endsql

Mysqlx.Crud.Delete {
  collection {
    name: "mycoll"
    schema: ""
  }
  data_model: DOCUMENT
}
-->recvresult

Mysqlx.Crud.Delete {
  collection {
    name: "mycoll"
    schema: ""
  }
  data_model: TABLE
}
-->recvresult

Mysqlx.Crud.Delete {
  collection {
    name: ""
    schema: "xtest"
  }
  data_model: DOCUMENT
}
-->expecterror 5113
-->recvresult

Mysqlx.Crud.Delete {
  collection {
    name: ""
    schema: "xtest"
  }
  data_model: TABLE
}
-->expecterror 5113
-->recvresult

EOF

--exec $MYSQLXTEST -uroot --password='' --file=$MYSQL_TMP_DIR/delete_del_missing_arg.tmp 2>&1
--remove_file $MYSQL_TMP_DIR/delete_del_missing_arg.tmp

## Postamble
drop schema if exists xtest;
uninstall plugin mysqlx;

Man Man