mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 02:46:29 +01:00 
			
		
		
		
	 cfa6143453
			
		
	
	
	cfa6143453
	
	
	
		
			
			This problem was earlier fixed by this commit:
> commit 08c7ab404f
> Author: Aleksey Midenkov <midenok@gmail.com>
> Date:   Mon Apr 18 12:44:27 2022 +0300
>
>    MDEV-24176 Server crashes after insert in the table with virtual
>    column generated using date_format() and if()
Adding an mtr test only.
		
	
			
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			702 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			702 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| --source include/have_utf32.inc
 | |
| 
 | |
| --echo #
 | |
| --echo # MDEV-27966 Assertion `fixed()' failed and Assertion `fixed == 1' failed, both in Item_func_concat::val_str on SELECT after INSERT with collation utf32_bin on utf8_bin table
 | |
| --echo #
 | |
| 
 | |
| SET NAMES utf8mb3;
 | |
| SET sql_mode='';
 | |
| CREATE TABLE t (c1 INT,c2 CHAR AS (CONCAT ('',DAYNAME ('')))) COLLATE utf8_bin ENGINE=InnoDB;
 | |
| INSERT INTO t VALUES (0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0);
 | |
| SET collation_connection='utf32_bin';
 | |
| --error ER_CANT_AGGREGATE_2COLLATIONS
 | |
| INSERT INTO t VALUES (0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0);
 | |
| --error ER_CANT_AGGREGATE_2COLLATIONS
 | |
| SELECT * FROM t;
 | |
| DROP TABLE t;
 | |
| SET sql_mode=DEFAULT;
 | |
| SET NAMES utf8mb3;
 |