mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	Warning handling and initial prepared statement handling (last not complete yet) Changed a lot of functions that returned 0/1 to my_bool type. GRANT handling now uses read/write locks instead of mutex Change basic net functions to use THD instead of NET (needed for 4.1 protocol) Use my_sprintf instead of sprintf() + strlen() Added alloc_query() to be able to chare query initialization code with prepared statements. Cleanup handling of SHOW COUNT(*) WARNINGS and SELECT LAST_INSERT_ID() Note that the following test fails (will be fixed ASAP): sub_select, union, rpl_rotate_logs and rpl_mystery22
		
			
				
	
	
		
			30 lines
		
	
	
		
			580 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			580 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
drop table if exists t1;
 | 
						|
create table t1 (n int not null primary key) type=myisam;
 | 
						|
begin work;
 | 
						|
insert into t1 values (4);
 | 
						|
insert into t1 values (5);
 | 
						|
rollback;
 | 
						|
Warnings:
 | 
						|
Warning	1196	Some non-transactional changed tables couldn't be rolled back
 | 
						|
select @@warning_count;
 | 
						|
@@warning_count
 | 
						|
1
 | 
						|
select @@error_count;
 | 
						|
@@error_count
 | 
						|
0
 | 
						|
show warnings;
 | 
						|
Level	Code	Message
 | 
						|
Warning	1196	Some non-transactional changed tables couldn't be rolled back
 | 
						|
show errors;
 | 
						|
Level	Code	Message
 | 
						|
select * from t1;
 | 
						|
n
 | 
						|
4
 | 
						|
5
 | 
						|
select @@warning_count;
 | 
						|
@@warning_count
 | 
						|
0
 | 
						|
show warnings;
 | 
						|
Level	Code	Message
 | 
						|
drop table t1;
 |