 4b8206ee1d
			
		
	
	4b8206ee1d
	
	
	
		
			
			The test generates a large session command and makes sure queries after it work correctly.
		
			
				
	
	
		
			21 lines
		
	
	
		
			519 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			519 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /**
 | |
|  * MXS-1873: Large session commands cause errors
 | |
|  *
 | |
|  * https://jira.mariadb.org/browse/MXS-1873
 | |
|  */
 | |
| 
 | |
| #include "testconnections.h"
 | |
| 
 | |
| int main(int argc, char** argv)
 | |
| {
 | |
|     TestConnections test(argc, argv);
 | |
| 
 | |
|     test.maxscales->connect();
 | |
|     test.try_query(test.maxscales->conn_rwsplit[0],
 | |
|                    "SET STATEMENT max_statement_time=30 FOR SELECT seq FROM seq_0_to_100000");
 | |
|     test.try_query(test.maxscales->conn_rwsplit[0], "SELECT 1");
 | |
|     test.maxscales->disconnect();
 | |
| 
 | |
|     return test.global_result;
 | |
| }
 |