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.
		
			
				
	
	
		
			11 lines
		
	
	
		
			259 B
		
	
	
	
		
			PL/PgSQL
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			259 B
		
	
	
	
		
			PL/PgSQL
		
	
	
	
	
	
USE test;
 | 
						|
DROP TABLE IF EXISTS T1;
 | 
						|
CREATE TABLE T1 (id integer); -- implicit commit
 | 
						|
SET autocommit=1;
 | 
						|
BEGIN;
 | 
						|
CREATE INDEX foo_t1 on T1 (id); -- implicit commit
 | 
						|
SELECT (@@server_id) INTO @a;
 | 
						|
SELECT @a; --should read from slave
 | 
						|
DROP TABLE IF EXISTS T1;
 | 
						|
COMMIT;
 |