MXS-1677: Add test case
Added test case that reproduces the problem and verified that it is fixed.
This commit is contained in:
@ -605,6 +605,10 @@ add_test_executable(mxs1643_extra_events.cpp mxs1643_extra_events mxs1643_extra_
|
||||
# https://jira.mariadb.org/browse/MXS-1653
|
||||
add_test_executable(mxs1653_ps_hang.cpp mxs1653_ps_hang replication LABELS REPL_BACKEND)
|
||||
|
||||
# MXS-1677: sysbench failed to initialize w/ MaxScale read/write splitter
|
||||
# https://jira.mariadb.org/browse/MXS-1677
|
||||
add_test_executable(mxs1677_temp_table.cpp mxs1677_temp_table replication LABELS REPL_BACKEND)
|
||||
|
||||
# 'namedserverfilter' test
|
||||
add_test_executable(namedserverfilter.cpp namedserverfilter namedserverfilter LABELS namedserverfilter LIGHT REPL_BACKEND)
|
||||
|
||||
|
||||
18
maxscale-system-test/mxs1677_temp_table.cpp
Normal file
18
maxscale-system-test/mxs1677_temp_table.cpp
Normal file
@ -0,0 +1,18 @@
|
||||
/**
|
||||
* MXS-1677: Error messages logged for non-text queries after temporary table is created
|
||||
*
|
||||
* https://jira.mariadb.org/browse/MXS-1677
|
||||
*/
|
||||
#include "testconnections.h"
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
TestConnections test(argc, argv);
|
||||
|
||||
test.maxscales->connect();
|
||||
test.try_query(test.maxscales->conn_rwsplit[0], "CREATE TEMPORARY TABLE test.temp(id INT)");
|
||||
test.maxscales->disconnect();
|
||||
|
||||
test.check_log_err(0, "The provided buffer does not contain a COM_QUERY, but a COM_QUIT", false);
|
||||
return test.global_result;
|
||||
}
|
||||
Reference in New Issue
Block a user