| 1 |
## Preamble |
| 2 |
--source include/xplugin_preamble.inc |
| 3 |
--source include/xplugin_create_user.inc |
| 4 |
|
| 5 |
## TEST STARTS HERE |
| 6 |
--write_file $MYSQL_TMP_DIR/too_large.xpl |
| 7 |
-->import wait_until_disconnect.macro |
| 8 |
|
| 9 |
-->vargen %LARGE_TEXT% . 2000 |
| 10 |
|
| 11 |
-->quiet |
| 12 |
-->varsub %1% |
| 13 |
-->echo ## Send large message |
| 14 |
-->expecterror 0,2006 |
| 15 |
Mysqlx.Sql.StmtExecute { |
| 16 |
stmt: "select '%LARGE_TEXT%' as result" |
| 17 |
} |
| 18 |
-->noquiet |
| 19 |
-->echo ## Waiting for disconnection |
| 20 |
-->callmacro Wait_until_disconnect |
| 21 |
EOF |
| 22 |
|
| 23 |
# Set the timeout for connection to 300 seconds |
| 24 |
# which is must be greater than the peerdisc/timeout |
| 25 |
SET GLOBAL mysqlx_connect_timeout = 300; |
| 26 |
SET GLOBAL mysqlx_wait_timeout = 300; |
| 27 |
SET GLOBAL mysqlx_max_allowed_packet = 1000; |
| 28 |
|
| 29 |
--exec $MYSQLXTEST -u x_root --file=$MYSQL_TMP_DIR/too_large.xpl 2>&1 |
| 30 |
|
| 31 |
## Cleanup |
| 32 |
SET GLOBAL mysqlx_connect_timeout= DEFAULT; |
| 33 |
SET GLOBAL mysqlx_wait_timeout = DEFAULT; |
| 34 |
SET GLOBAL mysqlx_max_allowed_packet = DEFAULT; |
| 35 |
--source ../include/xplugin_cleanup.inc |