mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-04 12:56:14 +01:00 
			
		
		
		
	NO_ENGINE_SUBSTITUTION Analysis: When the error is hit, wrong error code is passed in my_error Fix: Pass a better error code.
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			649 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			649 B
		
	
	
	
		
			Text
		
	
	
	
	
	
SET SQL_MODE="";
 | 
						|
create table t1 (c1 int primary key auto_increment, c2 varchar(10)) engine=memory;
 | 
						|
Warnings:
 | 
						|
Note	1266	Using storage engine MyISAM for table 't1'
 | 
						|
show create table t1;
 | 
						|
Table	Create Table
 | 
						|
t1	CREATE TABLE `t1` (
 | 
						|
  `c1` int(11) NOT NULL AUTO_INCREMENT,
 | 
						|
  `c2` varchar(10) DEFAULT NULL,
 | 
						|
  PRIMARY KEY (`c1`)
 | 
						|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
 | 
						|
set session sql_mode='no_engine_substitution';
 | 
						|
create table t2 (c1 int primary key auto_increment, c2 varchar(10)) engine=memory;
 | 
						|
ERROR HY000: The MariaDB server is running with the NO_ENGINE_SUBSTITUTION option so it cannot execute this statement
 | 
						|
drop table t1;
 |