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.
		
			
				
	
	
		
			10 lines
		
	
	
		
			304 B
		
	
	
	
		
			PL/PgSQL
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			304 B
		
	
	
	
		
			PL/PgSQL
		
	
	
	
	
	
use test;
 | 
						|
drop table if exists t1;
 | 
						|
create table t1 (id integer);
 | 
						|
set autocommit=0;               -- open transaction
 | 
						|
begin;                         
 | 
						|
insert into t1 values(1);       -- write to master
 | 
						|
commit;
 | 
						|
select count(*) from t1;        -- read from master since autocommit is disabled
 | 
						|
drop table t1;
 |