Debian Codegraph @

mysql-test/suite/x/t/admin_bogus.test

raw
1 ## generated
2 ## Invalid admin command
3
4 --source include/xplugin_preamble.inc
5 --source include/xplugin_create_user.inc
6 ## Test starts here
7 --let $xtest_file= $MYSQL_TMP_DIR/admin_bogus_mysqlx.xpl
8 --write_file $xtest_file
9 -->quiet
10
11 Mysqlx.Sql.StmtExecute {
12 stmt: "whatever"
13 namespace: "mysqlx"
14 }
15 -->expecterror ER_X_INVALID_ADMIN_COMMAND
16 -->recvresult
17
18
19 Mysqlx.Sql.StmtExecute {
20 stmt: "whatever"
21 namespace: "bogus"
22 }
23 -->expecterror ER_X_INVALID_NAMESPACE
24 -->recvresult
25
26
27 Mysqlx.Sql.StmtExecute {
28 stmt: "ping"
29 namespace: "xplugin"
30 }
31 -->expecterror ER_X_INVALID_NAMESPACE
32 -->recvresult
33
34 -->sql
35 SHOW STATUS LIKE 'Mysqlx_stmt_execute_mysqlx';
36 -->endsql
37 EOF
38
39
40 --exec $MYSQLXTEST -ux_root --password='' --file=$xtest_file 2>&1
41
42 ## Cleanup
43 --source ../include/xplugin_cleanup.inc
44