Increased skygw_query_type_t to 16 bits, and corrected the way how those bit fields are checked. Added tests for cases where autocommit is disabled and corrected old tests.
		
			
				
	
	
		
			9 lines
		
	
	
		
			197 B
		
	
	
	
		
			PL/PgSQL
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			197 B
		
	
	
	
		
			PL/PgSQL
		
	
	
	
	
	
DROP DATABASE If EXISTS FOO;
 | 
						|
SET autocommit=1;
 | 
						|
BEGIN;
 | 
						|
CREATE DATABASE FOO; -- implicit commit
 | 
						|
SELECT (@@server_id) INTO @a;
 | 
						|
SELECT @a; --should read from slave
 | 
						|
DROP DATABASE If EXISTS FOO;
 | 
						|
COMMIT;
 |