config root man

Current Path : /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 : //usr/opt/mysql57/mysql-test/suite/x/t/crud_drop_view.test

## Drop view

## Preamble
--source ../include/xplugin_preamble.inc

## Test data
## Test starts here
--let $xtest_file= $MYSQL_TMP_DIR/create_view.tmp
--write_file $xtest_file
-->quiet

-->macro Drop_view	%OPTION%  %ERROR%
Mysqlx.Crud.DropView {
  collection { name: "xview" schema: "xtest" }
  %OPTION%
}
-->recvuntil %ERROR%
-->endmacro


-->title -Drop view (success)
-->callmacro Drop_view	#	Mysqlx.Ok


-->title -Drop view (error: view removed)
-->callmacro Drop_view	#	Mysqlx.Error


-->title -Drop view (if exists)
-->callmacro Drop_view	if_exists: true	Mysqlx.Ok


-->stmtsql SHOW STATUS LIKE 'Mysqlx_crud_drop_view'
-->recvresult

EOF


CREATE SCHEMA xtest;
CREATE TABLE xtest.xtable (first INT, second JSON);
CREATE VIEW xtest.xview AS SELECT first FROM xtest.xtable;
SHOW CREATE VIEW xtest.xview;

--exec $MYSQLXTEST -uroot --password='' --file=$xtest_file 2>&1

--remove_file $xtest_file

--let $assert_text= Global status of 'Mysqlx_crud_drop_view'
--let $assert_cond= [SHOW GLOBAL STATUS LIKE \'Mysqlx_crud_drop_view\', Value, 1] = 3
--source include/assert.inc

## Postamble
DROP SCHEMA IF EXISTS xtest;
UNINSTALL PLUGIN mysqlx;

Man Man