用于EagleEye3.0 规则集漏报和误报测试的示例项目,项目收集于github和gitee
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
639 B

#
# Resolution of alias
#
select QN.a from (select 1 as a) as qn;
a
1
select QN.a from (select 1 as a) as QN;
a
1
select qn.a from (select 1 as a) as QN;
a
1
select 3 from (select 1) as qn, (select 2) as QN;
ERROR 42000: Not unique table/alias: 'QN'
with qn as (select 1) select * from QN;
1
1
with QN as (select 1) select * from QN;
1
1
with QN as (select 1) select * from qn;
1
1
with qn as (select 1 as a) select QN.a from qn;
a
1
with qn as (select 1), QN as (select 2) select 3;
ERROR 42000: Not unique table/alias: 'qn'
with qn as (select 1 as a), QN as (select 2 as a) select QN.a from QN;
ERROR 42000: Not unique table/alias: 'qn'