34 lines
1.2 KiB
Plaintext
34 lines
1.2 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;
|