 ad4e8dad94
			
		
	
	ad4e8dad94
	
	
	
		
			
			But for the most trivial statements did not really provide useful information. The arguments of the "function" '=' are now reported.
		
			
				
	
	
		
			47 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| #MXS qc_mysqlembedded does not return all functions
 | |
| #MXS qc_get_function_info     : ERR:  != /()
 | |
| insert t1 (data) values (default), (1/0), ('dead beef');
 | |
| 
 | |
| #MXS qc_mysqlembedded does not return all functions
 | |
| #MXS qc_get_function_info     : ERR: coalesce() != case() coalesce() if()
 | |
| insert into t1 values
 | |
|   (if(1, 9223372036854775808, 1)),
 | |
|   (case when 1 then 9223372036854775808 else 1 end),
 | |
|   (coalesce(9223372036854775808, 1));
 | |
| 
 | |
| #MXS qc_mysqlembedded
 | |
| #MXS qc_get_function_info     : ERR: <(QC_USED_IN_WHERE) != <(QC_USED_IN_WHERE) >(QC_USED_IN_WHERE)
 | |
| #
 | |
| create view v1 as
 | |
|   select a from t2 where a < 3
 | |
|   union
 | |
|   select a from t2 where a > 4;
 | |
| 
 | |
| #MXS qc_mysqlembedded
 | |
| #MXS qc_get_function_info     : ERR: <(a)[QC_USED_IN_WHERE] >=(b)[QC_USED_IN_WHERE] != <(a)[QC_USED_IN_WHERE] >=(a, b)[QC_USED_IN_WHERE]
 | |
| with t as (select a from t1 where b >= 'c')
 | |
|   select * from t where a < 2
 | |
|   union
 | |
|   select * from t where a >= 4;
 | |
| 
 | |
| #MXS qc_mysqlembedded
 | |
| #MXS qc_get_function_info     : ERR: <(t.a)[QC_USED_IN_WHERE] >=(b)[QC_USED_IN_WHERE] != <(t.a)[QC_USED_IN_WHERE] >=(b, t.a)[QC_USED_IN_WHERE]
 | |
| select * from (select a from t1 where b >= 'c') as t
 | |
|   where t.a < 2
 | |
| union
 | |
| select * from (select a from t1 where b >= 'c') as t
 | |
|   where t.a >= 4;
 | |
| 
 | |
| #MXS qc_myselembedded
 | |
| #MXS qc_get_function_info     : ERR:  != =(f1)
 | |
| delete from t1 where (@a:= f1) order by f1 limit 1;
 | |
| 
 | |
| #MXS qc_mysqlembedded
 | |
| #MXS qc_get_function_info     : ERR: *(t1.a) +(t1.a) != *(t1.a) +(t1.a) =()
 | |
| insert into t2
 | |
|   select @a:= A.a + 10*(B.a + 10*C.a), @a, 'filler' from t1 A, t1 B, t1 C;
 | |
| 
 | |
| #MXS qc_mysqlembedded
 | |
| #MXS qc_get_function_info     : ERR: *(t1.a) +(t1.a) != *(t1.a) +(t1.a) =()
 | |
| insert into t2 select @v:=A.a+10*B.a, @v  from t1 A, t1 B;
 |