| 1 |
## This is test file for verification of counting warning notices functionality |
| 2 |
|
| 3 |
--source include/xplugin_preamble.inc |
| 4 |
--source include/xplugin_create_user.inc |
| 5 |
|
| 6 |
## Test starts here |
| 7 |
--let $xtest_result= $MYSQL_TMP_DIR/status_variable_notices.xpl |
| 8 |
--write_file $xtest_result |
| 9 |
-->import assert_variable.macro |
| 10 |
-->quiet |
| 11 |
-->stmtadmin enable_notices {"notice":["warnings"]} |
| 12 |
-->recvresult |
| 13 |
|
| 14 |
-->stmtsql SELECT 1/0 |
| 15 |
-->recvresult |
| 16 |
-->stmtsql INSERT IGNORE INTO xtest.tab VALUES ('21474836461') |
| 17 |
-->recvresult |
| 18 |
|
| 19 |
-->callmacro Assert_received_notices |
| 20 |
EOF |
| 21 |
|
| 22 |
CREATE SCHEMA xtest; |
| 23 |
CREATE TABLE xtest.tab (c INT); |
| 24 |
|
| 25 |
--exec $MYSQLXTEST --import=$MYSQLXTEST_MACRO_DIR -ux_root --password='' --file=$xtest_result 2>&1 |
| 26 |
|
| 27 |
## Cleanup |
| 28 |
--source ../include/xplugin_cleanup.inc |