mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-24 07:13:33 +03:00 
			
		
		
		
	(Bug #7788 "Table is full" occurs during a multitable update") client/mysqldump.c: Style fixes innobase/include/univ.i: UNIV_DEBUG should not depend on configure --debug but on --debug=full mysql-test/r/compare.result: Added test to find bug in previous bugfix mysql-test/t/compare.test: Added test to find bug in previous bugfix mysys/my_handler.c: Proper fix for comparision with ' ' strings/ctype-big5.c: Proper fix for comparision with ' ' strings/ctype-bin.c: Proper fix for comparision with ' ' strings/ctype-gbk.c: Proper fix for comparision with ' ' strings/ctype-latin1.c: Proper fix for comparision with ' ' strings/ctype-mb.c: Proper fix for comparision with ' ' strings/ctype-simple.c: Proper fix for comparision with ' ' strings/ctype-sjis.c: Proper fix for comparision with ' ' strings/ctype-tis620.c: Proper fix for comparision with ' ' strings/ctype-ucs2.c: Proper fix for comparision with ' ' strings/ctype-utf8.c: Proper fix for comparision with ' '
		
			
				
	
	
		
			45 lines
		
	
	
		
			1008 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			1008 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| drop table if exists t1;
 | |
| CREATE TABLE t1 (id CHAR(12) not null, PRIMARY KEY (id));
 | |
| insert into t1 values ('000000000001'),('000000000002');
 | |
| explain select * from t1 where id=000000000001;
 | |
| id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 | |
| 1	SIMPLE	t1	index	PRIMARY	PRIMARY	12	NULL	2	Using where; Using index
 | |
| select * from t1 where id=000000000001;
 | |
| id
 | |
| 000000000001
 | |
| delete from t1 where id=000000000002;
 | |
| select * from t1;
 | |
| id
 | |
| 000000000001
 | |
| drop table t1;
 | |
| SELECT 'a' = 'a ';
 | |
| 'a' = 'a '
 | |
| 1
 | |
| SELECT 'a\0' < 'a';
 | |
| 'a\0' < 'a'
 | |
| 1
 | |
| SELECT 'a\0' < 'a ';
 | |
| 'a\0' < 'a '
 | |
| 1
 | |
| SELECT 'a\t' < 'a';
 | |
| 'a\t' < 'a'
 | |
| 1
 | |
| SELECT 'a\t' < 'a ';
 | |
| 'a\t' < 'a '
 | |
| 1
 | |
| CREATE TABLE t1 (a char(10) not null);
 | |
| INSERT INTO t1 VALUES ('a'),('a\0'),('a\t'),('a ');
 | |
| SELECT hex(a),STRCMP(a,'a'), STRCMP(a,'a ') FROM t1;
 | |
| hex(a)	STRCMP(a,'a')	STRCMP(a,'a ')
 | |
| 61	0	0
 | |
| 6100	-1	-1
 | |
| 6109	-1	-1
 | |
| 61	0	0
 | |
| DROP TABLE t1;
 | |
| SELECT CHAR(31) = '', '' = CHAR(31);
 | |
| CHAR(31) = ''	'' = CHAR(31)
 | |
| 0	0
 | |
| SELECT CHAR(30) = '', '' = CHAR(30);
 | |
| CHAR(30) = ''	'' = CHAR(30)
 | |
| 0	0
 |