Spracherkennung für: .test vermutete Sprache: Abap {ABAP[391] Lisp[136] Masm[136]} [Methode: maximale Elemente, drei Dimensionen]
#
# A fairly exhaustive test for operator precedence
#
disable_warnings;
#################### I couldn't come up with a test where precedence changes the result here
#
#create or replace view v1 as select BINARY 2 IS TRUE, BINARY (2 IS TRUE), (BINARY 2) IS TRUE;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select BINARY 2 IS TRUE, BINARY (2 IS TRUE), (BINARY 2) IS TRUE union select * from v1;
#
#create or replace view v1 as select BINARY 2 OR 3, BINARY (2 OR 3), (BINARY 2) OR 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select BINARY 2 OR 3, BINARY (2 OR 3), (BINARY 2) OR 3 union select * from v1;
#
#create or replace view v1 as select BINARY 2 || 3, BINARY (2 || 3), (BINARY 2) || 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select BINARY 2 || 3, BINARY (2 || 3), (BINARY 2) || 3 union select * from v1;
#
#create or replace view v1 as select BINARY 2 XOR 3, BINARY (2 XOR 3), (BINARY 2) XOR 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select BINARY 2 XOR 3, BINARY (2 XOR 3), (BINARY 2) XOR 3 union select * from v1;
#
#create or replace view v1 as select BINARY 2 AND 3, BINARY (2 AND 3), (BINARY 2) AND 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select BINARY 2 AND 3, BINARY (2 AND 3), (BINARY 2) AND 3 union select * from v1;
#
#create or replace view v1 as select BINARY 2 && 3, BINARY (2 && 3), (BINARY 2) && 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select BINARY 2 && 3, BINARY (2 && 3), (BINARY 2) && 3 union select * from v1;
#
#create or replace view v1 as select BINARY 2 | 3, BINARY (2 | 3), (BINARY 2) | 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select BINARY 2 | 3, BINARY (2 | 3), (BINARY 2) | 3 union select * from v1;
#
#create or replace view v1 as select BINARY 2 & 3, BINARY (2 & 3), (BINARY 2) & 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select BINARY 2 & 3, BINARY (2 & 3), (BINARY 2) & 3 union select * from v1;
#
#create or replace view v1 as select BINARY 2 << 3, BINARY (2 << 3), (BINARY 2) << 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select BINARY 2 << 3, BINARY (2 << 3), (BINARY 2) << 3 union select * from v1;
#
#create or replace view v1 as select BINARY 2 >> 3, BINARY (2 >> 3), (BINARY 2) >> 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select BINARY 2 >> 3, BINARY (2 >> 3), (BINARY 2) >> 3 union select * from v1;
#
#create or replace view v1 as select BINARY '2000-01-01' +INTERVAL 1 DAY, BINARY ('2000-01-01' +INTERVAL 1 DAY), (BINARY '2000-01-01') +INTERVAL 1 DAY;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select BINARY '2000-01-01' +INTERVAL 1 DAY, BINARY ('2000-01-01' +INTERVAL 1 DAY), (BINARY '2000-01-01') +INTERVAL 1 DAY union select * from v1;
#
#create or replace view v1 as select BINARY 2 + 3, BINARY (2 + 3), (BINARY 2) + 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select BINARY 2 + 3, BINARY (2 + 3), (BINARY 2) + 3 union select * from v1;
#
#create or replace view v1 as select BINARY 2 - 3, BINARY (2 - 3), (BINARY 2) - 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select BINARY 2 - 3, BINARY (2 - 3), (BINARY 2) - 3 union select * from v1;
#
#create or replace view v1 as select BINARY 2 * 3, BINARY (2 * 3), (BINARY 2) * 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select BINARY 2 * 3, BINARY (2 * 3), (BINARY 2) * 3 union select * from v1;
#
#create or replace view v1 as select BINARY 2 / 3, BINARY (2 / 3), (BINARY 2) / 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select BINARY 2 / 3, BINARY (2 / 3), (BINARY 2) / 3 union select * from v1;
#
#create or replace view v1 as select BINARY 2 DIV 3, BINARY (2 DIV 3), (BINARY 2) DIV 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select BINARY 2 DIV 3, BINARY (2 DIV 3), (BINARY 2) DIV 3 union select * from v1;
#
#create or replace view v1 as select BINARY 2 MOD 3, BINARY (2 MOD 3), (BINARY 2) MOD 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select BINARY 2 MOD 3, BINARY (2 MOD 3), (BINARY 2) MOD 3 union select * from v1;
#
#create or replace view v1 as select BINARY 2 % 3, BINARY (2 % 3), (BINARY 2) % 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select BINARY 2 % 3, BINARY (2 % 3), (BINARY 2) % 3 union select * from v1;
#
#create or replace view v1 as select BINARY 2 ^ 3, BINARY (2 ^ 3), (BINARY 2) ^ 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select BINARY 2 ^ 3, BINARY (2 ^ 3), (BINARY 2) ^ 3 union select * from v1;
#
#set sql_mode=PIPES_AS_CONCAT;
#create or replace view v1 as select 2 || 3 COLLATE latin1_bin, 2 || (3 COLLATE latin1_bin), (2 || 3) COLLATE latin1_bin;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select 2 || 3 COLLATE latin1_bin, 2 || (3 COLLATE latin1_bin), (2 || 3) COLLATE latin1_bin union select * from v1;
########################## The result doesn't depend on the precedence
#
#create or replace view v1 as select NOT 2 XOR 0, NOT (2 XOR 0), (NOT 2) XOR 0;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select NOT 2 XOR 0, NOT (2 XOR 0), (NOT 2) XOR 0 union select * from v1;
#
#create or replace view v1 as select - 2 * 3, - (2 * 3), (- 2) * 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select - 2 * 3, - (2 * 3), (- 2) * 3 union select * from v1;
#
#create or replace view v1 as select - 2 / 3, - (2 / 3), (- 2) / 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select - 2 / 3, - (2 / 3), (- 2) / 3 union select * from v1;
#
#create or replace view v1 as select - 2 DIV 3, - (2 DIV 3), (- 2) DIV 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select - 2 DIV 3, - (2 DIV 3), (- 2) DIV 3 union select * from v1;
#
#create or replace view v1 as select - 2 MOD 3, - (2 MOD 3), (- 2) MOD 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select - 2 MOD 3, - (2 MOD 3), (- 2) MOD 3 union select * from v1;
#
#create or replace view v1 as select - 2 % 3, - (2 % 3), (- 2) % 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select - 2 % 3, - (2 % 3), (- 2) % 3 union select * from v1;
#
#create or replace view v1 as select ~ 2 ^ 3, ~ (2 ^ 3), (~ 2) ^ 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select ~ 2 ^ 3, ~ (2 ^ 3), (~ 2) ^ 3 union select * from v1;
#
#create or replace view v1 as select ! 2 XOR 3, ! (2 XOR 3), (! 2) XOR 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select ! 2 XOR 3, ! (2 XOR 3), (! 2) XOR 3 union select * from v1;
#
#create or replace view v1 as select 2 OR 3 OR 3, 2 OR (3 OR 3), (2 OR 3) OR 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select 2 OR 3 OR 3, 2 OR (3 OR 3), (2 OR 3) OR 3 union select * from v1;
#
#create or replace view v1 as select 2 OR 3 || 3, 2 OR (3 || 3), (2 OR 3) || 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select 2 OR 3 || 3, 2 OR (3 || 3), (2 OR 3) || 3 union select * from v1;
#
#create or replace view v1 as select 2 || 3 OR 3, 2 || (3 OR 3), (2 || 3) OR 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select 2 || 3 OR 3, 2 || (3 OR 3), (2 || 3) OR 3 union select * from v1;
#
#create or replace view v1 as select 2 || 3 || 3, 2 || (3 || 3), (2 || 3) || 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select 2 || 3 || 3, 2 || (3 || 3), (2 || 3) || 3 union select * from v1;
#
#create or replace view v1 as select 2 XOR 3 IS FALSE, 2 XOR (3 IS FALSE), (2 XOR 3) IS FALSE;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select 2 XOR 3 IS FALSE, 2 XOR (3 IS FALSE), (2 XOR 3) IS FALSE union select * from v1;
#
#create or replace view v1 as select 2 XOR 3 XOR 3, 2 XOR (3 XOR 3), (2 XOR 3) XOR 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select 2 XOR 3 XOR 3, 2 XOR (3 XOR 3), (2 XOR 3) XOR 3 union select * from v1;
#
#create or replace view v1 as select 2 AND 3 AND 3, 2 AND (3 AND 3), (2 AND 3) AND 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select 2 AND 3 AND 3, 2 AND (3 AND 3), (2 AND 3) AND 3 union select * from v1;
#
#create or replace view v1 as select 2 AND 3 && 3, 2 AND (3 && 3), (2 AND 3) && 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select 2 AND 3 && 3, 2 AND (3 && 3), (2 AND 3) && 3 union select * from v1;
#
#create or replace view v1 as select 2 && 3 AND 3, 2 && (3 AND 3), (2 && 3) AND 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select 2 && 3 AND 3, 2 && (3 AND 3), (2 && 3) AND 3 union select * from v1;
#
#create or replace view v1 as select 2 && 3 && 3, 2 && (3 && 3), (2 && 3) && 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select 2 && 3 && 3, 2 && (3 && 3), (2 && 3) && 3 union select * from v1;
#
#create or replace view v1 as select 2 | 3 | 3, 2 | (3 | 3), (2 | 3) | 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select 2 | 3 | 3, 2 | (3 | 3), (2 | 3) | 3 union select * from v1;
#
#create or replace view v1 as select 2 & 3 & 3, 2 & (3 & 3), (2 & 3) & 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select 2 & 3 & 3, 2 & (3 & 3), (2 & 3) & 3 union select * from v1;
#
#create or replace view v1 as select 2 + 3 + 3, 2 + (3 + 3), (2 + 3) + 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select 2 + 3 + 3, 2 + (3 + 3), (2 + 3) + 3 union select * from v1;
#
#create or replace view v1 as select 2 + 3 - 3, 2 + (3 - 3), (2 + 3) - 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select 2 + 3 - 3, 2 + (3 - 3), (2 + 3) - 3 union select * from v1;
#
#create or replace view v1 as select 2 * 3 << 3, 2 * (3 << 3), (2 * 3) << 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select 2 * 3 << 3, 2 * (3 << 3), (2 * 3) << 3 union select * from v1;
#
#create or replace view v1 as select 2 * 3 * 3, 2 * (3 * 3), (2 * 3) * 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select 2 * 3 * 3, 2 * (3 * 3), (2 * 3) * 3 union select * from v1;
#
#create or replace view v1 as select 2 * 3 / 3, 2 * (3 / 3), (2 * 3) / 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select 2 * 3 / 3, 2 * (3 / 3), (2 * 3) / 3 union select * from v1;
#
#create or replace view v1 as select 2 ^ 3 ^ 3, 2 ^ (3 ^ 3), (2 ^ 3) ^ 3;
#Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
#select 2 ^ 3 ^ 3, 2 ^ (3 ^ 3), (2 ^ 3) ^ 3 union select * from v1;
create or replace view v1 as select NOT NULL IS TRUE, NOT (NULL IS TRUE), (NOT NULL) IS TRUE;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT NULL IS TRUE, NOT (NULL IS TRUE), (NOT NULL) IS TRUE union select * from v1;
create or replace view v1 as select ! NULL IS TRUE, ! (NULL IS TRUE), (! NULL) IS TRUE;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! NULL IS TRUE, ! (NULL IS TRUE), (! NULL) IS TRUE union select * from v1;
create or replace view v1 as select charset(NOT 2 COLLATE latin1_bin), charset(NOT (2 COLLATE latin1_bin)), charset((NOT 2) COLLATE latin1_bin);
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select charset(NOT 2 COLLATE latin1_bin), charset(NOT (2 COLLATE latin1_bin)), charset((NOT 2) COLLATE latin1_bin) union select * from v1;
create or replace view v1 as select NOT 2 IN (0,2), NOT (2 IN (0,2)), (NOT 2) IN (0,2);
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT 2 IN (0,2), NOT (2 IN (0,2)), (NOT 2) IN (0,2) union select * from v1;
create or replace view v1 as select NOT 2 OR 3, NOT (2 OR 3), (NOT 2) OR 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT 2 OR 3, NOT (2 OR 3), (NOT 2) OR 3 union select * from v1;
create or replace view v1 as select NOT 2 || 3, NOT (2 || 3), (NOT 2) || 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT 2 || 3, NOT (2 || 3), (NOT 2) || 3 union select * from v1;
create or replace view v1 as select NOT 2 AND 0, NOT (2 AND 0), (NOT 2) AND 0;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT 2 AND 0, NOT (2 AND 0), (NOT 2) AND 0 union select * from v1;
create or replace view v1 as select NOT 2 && 0, NOT (2 && 0), (NOT 2) && 0;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT 2 && 0, NOT (2 && 0), (NOT 2) && 0 union select * from v1;
create or replace view v1 as select NOT 2 = 3, NOT (2 = 3), (NOT 2) = 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT 2 = 3, NOT (2 = 3), (NOT 2) = 3 union select * from v1;
create or replace view v1 as select NOT 2 <=> 3, NOT (2 <=> 3), (NOT 2) <=> 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT 2 <=> 3, NOT (2 <=> 3), (NOT 2) <=> 3 union select * from v1;
create or replace view v1 as select NOT 2 >= 3, NOT (2 >= 3), (NOT 2) >= 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT 2 >= 3, NOT (2 >= 3), (NOT 2) >= 3 union select * from v1;
create or replace view v1 as select NOT 2 <= 3, NOT (2 <= 3), (NOT 2) <= 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT 2 <= 3, NOT (2 <= 3), (NOT 2) <= 3 union select * from v1;
create or replace view v1 as select NOT 2 < 3, NOT (2 < 3), (NOT 2) < 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT 2 < 3, NOT (2 < 3), (NOT 2) < 3 union select * from v1;
create or replace view v1 as select NOT 2 <> 3, NOT (2 <> 3), (NOT 2) <> 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT 2 <> 3, NOT (2 <> 3), (NOT 2) <> 3 union select * from v1;
create or replace view v1 as select NOT 2 > 3, NOT (2 > 3), (NOT 2) > 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT 2 > 3, NOT (2 > 3), (NOT 2) > 3 union select * from v1;
create or replace view v1 as select NOT 2 != 3, NOT (2 != 3), (NOT 2) != 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT 2 != 3, NOT (2 != 3), (NOT 2) != 3 union select * from v1;
create or replace view v1 as select NOT 2 LIKE 3, NOT (2 LIKE 3), (NOT 2) LIKE 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT 2 LIKE 3, NOT (2 LIKE 3), (NOT 2) LIKE 3 union select * from v1;
create or replace view v1 as select NOT 2 REGEXP 3, NOT (2 REGEXP 3), (NOT 2) REGEXP 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT 2 REGEXP 3, NOT (2 REGEXP 3), (NOT 2) REGEXP 3 union select * from v1;
create or replace view v1 as select NOT 2 | 3, NOT (2 | 3), (NOT 2) | 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT 2 | 3, NOT (2 | 3), (NOT 2) | 3 union select * from v1;
create or replace view v1 as select NOT 0 & 2, NOT (0 & 2), (NOT 0) & 2;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT 0 & 2, NOT (0 & 2), (NOT 0) & 2 union select * from v1;
create or replace view v1 as select NOT 0 << 3, NOT (0 << 3), (NOT 0) << 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT 0 << 3, NOT (0 << 3), (NOT 0) << 3 union select * from v1;
create or replace view v1 as select NOT 2 >> 3, NOT (2 >> 3), (NOT 2) >> 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT 2 >> 3, NOT (2 >> 3), (NOT 2) >> 3 union select * from v1;
create or replace view v1 as select NOT '2000-01-01' +INTERVAL 1 DAY, NOT ('2000-01-01' +INTERVAL 1 DAY), (NOT '2000-01-01') +INTERVAL 1 DAY;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT '2000-01-01' +INTERVAL 1 DAY, NOT ('2000-01-01' +INTERVAL 1 DAY), (NOT '2000-01-01') +INTERVAL 1 DAY union select * from v1;
create or replace view v1 as select NOT 2 + 3, NOT (2 + 3), (NOT 2) + 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT 2 + 3, NOT (2 + 3), (NOT 2) + 3 union select * from v1;
create or replace view v1 as select NOT 2 - 3, NOT (2 - 3), (NOT 2) - 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT 2 - 3, NOT (2 - 3), (NOT 2) - 3 union select * from v1;
create or replace view v1 as select NOT 0 * 3, NOT (0 * 3), (NOT 0) * 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT 0 * 3, NOT (0 * 3), (NOT 0) * 3 union select * from v1;
create or replace view v1 as select NOT 0 / 3, NOT (0 / 3), (NOT 0) / 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT 0 / 3, NOT (0 / 3), (NOT 0) / 3 union select * from v1;
create or replace view v1 as select NOT 2 DIV 3, NOT (2 DIV 3), (NOT 2) DIV 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT 2 DIV 3, NOT (2 DIV 3), (NOT 2) DIV 3 union select * from v1;
create or replace view v1 as select NOT 6 MOD 3, NOT (6 MOD 3), (NOT 6) MOD 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT 6 MOD 3, NOT (6 MOD 3), (NOT 6) MOD 3 union select * from v1;
create or replace view v1 as select NOT 6 % 3, NOT (6 % 3), (NOT 6) % 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT 6 % 3, NOT (6 % 3), (NOT 6) % 3 union select * from v1;
create or replace view v1 as select NOT 2 ^ 3, NOT (2 ^ 3), (NOT 2) ^ 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT 2 ^ 3, NOT (2 ^ 3), (NOT 2) ^ 3 union select * from v1;
create or replace view v1 as select NOT 2 BETWEEN 3 AND 4, NOT (2 BETWEEN 3 AND 4), (NOT 2) BETWEEN 3 AND 4;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select NOT 2 BETWEEN 3 AND 4, NOT (2 BETWEEN 3 AND 4), (NOT 2) BETWEEN 3 AND 4 union select * from v1;
create or replace view v1 as select - 2 IS TRUE, - (2 IS TRUE), (- 2) IS TRUE;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select - 2 IS TRUE, - (2 IS TRUE), (- 2) IS TRUE union select * from v1;
create or replace view v1 as select charset(- "2" COLLATE latin1_bin), charset(- ("2" COLLATE latin1_bin)), charset((- "2") COLLATE latin1_bin);
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select charset(- "2" COLLATE latin1_bin), charset(- ("2" COLLATE latin1_bin)), charset((- "2") COLLATE latin1_bin) union select * from v1;
create or replace view v1 as select - 2 IN (2,1), - (2 IN (2,1)), (- 2) IN (2,1);
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select - 2 IN (2,1), - (2 IN (2,1)), (- 2) IN (2,1) union select * from v1;
create or replace view v1 as select - 2 OR 3, - (2 OR 3), (- 2) OR 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select - 2 OR 3, - (2 OR 3), (- 2) OR 3 union select * from v1;
create or replace view v1 as select - 2 || 3, - (2 || 3), (- 2) || 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select - 2 || 3, - (2 || 3), (- 2) || 3 union select * from v1;
create or replace view v1 as select - 0 XOR 3, - (0 XOR 3), (- 0) XOR 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select - 0 XOR 3, - (0 XOR 3), (- 0) XOR 3 union select * from v1;
create or replace view v1 as select - 2 AND 3, - (2 AND 3), (- 2) AND 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select - 2 AND 3, - (2 AND 3), (- 2) AND 3 union select * from v1;
create or replace view v1 as select - 2 && 3, - (2 && 3), (- 2) && 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select - 2 && 3, - (2 && 3), (- 2) && 3 union select * from v1;
create or replace view v1 as select - 2 = 2, - (2 = 2), (- 2) = 2;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select - 2 = 2, - (2 = 2), (- 2) = 2 union select * from v1;
create or replace view v1 as select - 2 <=> 2, - (2 <=> 2), (- 2) <=> 2;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select - 2 <=> 2, - (2 <=> 2), (- 2) <=> 2 union select * from v1;
create or replace view v1 as select - 2 >= 1, - (2 >= 1), (- 2) >= 1;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select - 2 >= 1, - (2 >= 1), (- 2) >= 1 union select * from v1;
create or replace view v1 as select - 2 <= 3, - (2 <= 3), (- 2) <= 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select - 2 <= 3, - (2 <= 3), (- 2) <= 3 union select * from v1;
create or replace view v1 as select - 2 < 3, - (2 < 3), (- 2) < 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select - 2 < 3, - (2 < 3), (- 2) < 3 union select * from v1;
create or replace view v1 as select - 2 <> 3, - (2 <> 3), (- 2) <> 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select - 2 <> 3, - (2 <> 3), (- 2) <> 3 union select * from v1;
create or replace view v1 as select - 2 > 1, - (2 > 1), (- 2) > 1;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select - 2 > 1, - (2 > 1), (- 2) > 1 union select * from v1;
create or replace view v1 as select - 2 != 3, - (2 != 3), (- 2) != 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select - 2 != 3, - (2 != 3), (- 2) != 3 union select * from v1;
create or replace view v1 as select - 2 LIKE 2, - (2 LIKE 2), (- 2) LIKE 2;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select - 2 LIKE 2, - (2 LIKE 2), (- 2) LIKE 2 union select * from v1;
create or replace view v1 as select - 2 REGEXP 2, - (2 REGEXP 2), (- 2) REGEXP 2;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select - 2 REGEXP 2, - (2 REGEXP 2), (- 2) REGEXP 2 union select * from v1;
create or replace view v1 as select - 2 | 3, - (2 | 3), (- 2) | 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select - 2 | 3, - (2 | 3), (- 2) | 3 union select * from v1;
create or replace view v1 as select - 2 & 3, - (2 & 3), (- 2) & 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select - 2 & 3, - (2 & 3), (- 2) & 3 union select * from v1;
create or replace view v1 as select - 2 << 3, - (2 << 3), (- 2) << 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select - 2 << 3, - (2 << 3), (- 2) << 3 union select * from v1;
create or replace view v1 as select - 2 >> 3, - (2 >> 3), (- 2) >> 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select - 2 >> 3, - (2 >> 3), (- 2) >> 3 union select * from v1;
create or replace view v1 as select - '2000-01-01' +INTERVAL 1 DAY, - ('2000-01-01' +INTERVAL 1 DAY), (- '2000-01-01') +INTERVAL 1 DAY;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select - '2000-01-01' +INTERVAL 1 DAY, - ('2000-01-01' +INTERVAL 1 DAY), (- '2000-01-01') +INTERVAL 1 DAY union select * from v1;
create or replace view v1 as select - 2 + 3, - (2 + 3), (- 2) + 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select - 2 + 3, - (2 + 3), (- 2) + 3 union select * from v1;
create or replace view v1 as select - 2 - 3, - (2 - 3), (- 2) - 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select - 2 - 3, - (2 - 3), (- 2) - 3 union select * from v1;
create or replace view v1 as select - 2 ^ 3, - (2 ^ 3), (- 2) ^ 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select - 2 ^ 3, - (2 ^ 3), (- 2) ^ 3 union select * from v1;
create or replace view v1 as select - 2 BETWEEN 1 AND 3, - (2 BETWEEN 1 AND 3), (- 2) BETWEEN 1 AND 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select - 2 BETWEEN 1 AND 3, - (2 BETWEEN 1 AND 3), (- 2) BETWEEN 1 AND 3 union select * from v1;
create or replace view v1 as select ~ 2 IS TRUE, ~ (2 IS TRUE), (~ 2) IS TRUE;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ 2 IS TRUE, ~ (2 IS TRUE), (~ 2) IS TRUE union select * from v1;
create or replace view v1 as select charset(~ 2 COLLATE latin1_bin), charset(~ (2 COLLATE latin1_bin)), charset((~ 2) COLLATE latin1_bin);
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select charset(~ 2 COLLATE latin1_bin), charset(~ (2 COLLATE latin1_bin)), charset((~ 2) COLLATE latin1_bin) union select * from v1;
create or replace view v1 as select ~ 2 IN (0,1), ~ (2 IN (0,1)), (~ 2) IN (0,1);
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ 2 IN (0,1), ~ (2 IN (0,1)), (~ 2) IN (0,1) union select * from v1;
create or replace view v1 as select ~ 2 OR 3, ~ (2 OR 3), (~ 2) OR 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ 2 OR 3, ~ (2 OR 3), (~ 2) OR 3 union select * from v1;
create or replace view v1 as select ~ 2 || 3, ~ (2 || 3), (~ 2) || 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ 2 || 3, ~ (2 || 3), (~ 2) || 3 union select * from v1;
create or replace view v1 as select ~ 2 XOR 3, ~ (2 XOR 3), (~ 2) XOR 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ 2 XOR 3, ~ (2 XOR 3), (~ 2) XOR 3 union select * from v1;
create or replace view v1 as select ~ 2 AND 3, ~ (2 AND 3), (~ 2) AND 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ 2 AND 3, ~ (2 AND 3), (~ 2) AND 3 union select * from v1;
create or replace view v1 as select ~ 2 && 3, ~ (2 && 3), (~ 2) && 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ 2 && 3, ~ (2 && 3), (~ 2) && 3 union select * from v1;
create or replace view v1 as select ~ 2 = 3, ~ (2 = 3), (~ 2) = 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ 2 = 3, ~ (2 = 3), (~ 2) = 3 union select * from v1;
create or replace view v1 as select ~ 2 <=> 3, ~ (2 <=> 3), (~ 2) <=> 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ 2 <=> 3, ~ (2 <=> 3), (~ 2) <=> 3 union select * from v1;
create or replace view v1 as select ~ 2 >= 3, ~ (2 >= 3), (~ 2) >= 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ 2 >= 3, ~ (2 >= 3), (~ 2) >= 3 union select * from v1;
create or replace view v1 as select ~ 2 <= 3, ~ (2 <= 3), (~ 2) <= 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ 2 <= 3, ~ (2 <= 3), (~ 2) <= 3 union select * from v1;
create or replace view v1 as select ~ 2 < 3, ~ (2 < 3), (~ 2) < 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ 2 < 3, ~ (2 < 3), (~ 2) < 3 union select * from v1;
create or replace view v1 as select ~ 2 <> 3, ~ (2 <> 3), (~ 2) <> 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ 2 <> 3, ~ (2 <> 3), (~ 2) <> 3 union select * from v1;
create or replace view v1 as select ~ 2 > 3, ~ (2 > 3), (~ 2) > 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ 2 > 3, ~ (2 > 3), (~ 2) > 3 union select * from v1;
create or replace view v1 as select ~ 2 != 3, ~ (2 != 3), (~ 2) != 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ 2 != 3, ~ (2 != 3), (~ 2) != 3 union select * from v1;
create or replace view v1 as select ~ 2 LIKE 3, ~ (2 LIKE 3), (~ 2) LIKE 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ 2 LIKE 3, ~ (2 LIKE 3), (~ 2) LIKE 3 union select * from v1;
create or replace view v1 as select ~ 2 REGEXP 3, ~ (2 REGEXP 3), (~ 2) REGEXP 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ 2 REGEXP 3, ~ (2 REGEXP 3), (~ 2) REGEXP 3 union select * from v1;
create or replace view v1 as select ~ 2 | 3, ~ (2 | 3), (~ 2) | 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ 2 | 3, ~ (2 | 3), (~ 2) | 3 union select * from v1;
create or replace view v1 as select ~ 2 & 3, ~ (2 & 3), (~ 2) & 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ 2 & 3, ~ (2 & 3), (~ 2) & 3 union select * from v1;
create or replace view v1 as select ~ 2 << 3, ~ (2 << 3), (~ 2) << 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ 2 << 3, ~ (2 << 3), (~ 2) << 3 union select * from v1;
create or replace view v1 as select ~ 2 >> 3, ~ (2 >> 3), (~ 2) >> 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ 2 >> 3, ~ (2 >> 3), (~ 2) >> 3 union select * from v1;
create or replace view v1 as select ~ '2000-01-01' +INTERVAL 1 DAY, ~ ('2000-01-01' +INTERVAL 1 DAY), (~ '2000-01-01') +INTERVAL 1 DAY;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ '2000-01-01' +INTERVAL 1 DAY, ~ ('2000-01-01' +INTERVAL 1 DAY), (~ '2000-01-01') +INTERVAL 1 DAY union select * from v1;
create or replace view v1 as select ~ 10000 + 3, ~ (10000 + 3), (~ 10000) + 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ 10000 + 3, ~ (10000 + 3), (~ 10000) + 3 union select * from v1;
create or replace view v1 as select ~ 2 - 3, ~ (2 - 3), (~ 2) - 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ 2 - 3, ~ (2 - 3), (~ 2) - 3 union select * from v1;
create or replace view v1 as select ~ 10000000000000000000 * 2, ~ (100 * 2), (~ 10000000000000000000) * 2;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ 10000000000000000000 * 2, ~ (100 * 2), (~ 10000000000000000000) * 2 union select * from v1;
create or replace view v1 as select ~ 2 / 3, ~ (2 / 3), (~ 2) / 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ 2 / 3, ~ (2 / 3), (~ 2) / 3 union select * from v1;
create or replace view v1 as select ~ 2 DIV 3, ~ (2 DIV 3), (~ 2) DIV 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ 2 DIV 3, ~ (2 DIV 3), (~ 2) DIV 3 union select * from v1;
create or replace view v1 as select ~ 2 MOD 3, ~ (2 MOD 3), (~ 2) MOD 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ 2 MOD 3, ~ (2 MOD 3), (~ 2) MOD 3 union select * from v1;
create or replace view v1 as select ~ 2 % 3, ~ (2 % 3), (~ 2) % 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ 2 % 3, ~ (2 % 3), (~ 2) % 3 union select * from v1;
create or replace view v1 as select ~ 2 BETWEEN 1 AND 3, ~ (2 BETWEEN 1 AND 3), (~ 2) BETWEEN 1 AND 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ~ 2 BETWEEN 1 AND 3, ~ (2 BETWEEN 1 AND 3), (~ 2) BETWEEN 1 AND 3 union select * from v1;
create or replace view v1 as select charset(! 2 COLLATE latin1_bin), charset(! (2 COLLATE latin1_bin)), charset((! 2) COLLATE latin1_bin);
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select charset(! 2 COLLATE latin1_bin), charset(! (2 COLLATE latin1_bin)), charset((! 2) COLLATE latin1_bin) union select * from v1;
create or replace view v1 as select ! 2 IN (0,2), ! (2 IN (0,2)), (! 2) IN (0,2);
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! 2 IN (0,2), ! (2 IN (0,2)), (! 2) IN (0,2) union select * from v1;
create or replace view v1 as select ! 2 OR 3, ! (2 OR 3), (! 2) OR 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! 2 OR 3, ! (2 OR 3), (! 2) OR 3 union select * from v1;
create or replace view v1 as select ! 2 || 3, ! (2 || 3), (! 2) || 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! 2 || 3, ! (2 || 3), (! 2) || 3 union select * from v1;
create or replace view v1 as select ! 2 AND 0, ! (2 AND 0), (! 2) AND 0;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! 2 AND 0, ! (2 AND 0), (! 2) AND 0 union select * from v1;
create or replace view v1 as select ! 2 && 0, ! (2 && 0), (! 2) && 0;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! 2 && 0, ! (2 && 0), (! 2) && 0 union select * from v1;
create or replace view v1 as select ! 2 = 3, ! (2 = 3), (! 2) = 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! 2 = 3, ! (2 = 3), (! 2) = 3 union select * from v1;
create or replace view v1 as select ! 2 <=> 3, ! (2 <=> 3), (! 2) <=> 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! 2 <=> 3, ! (2 <=> 3), (! 2) <=> 3 union select * from v1;
create or replace view v1 as select ! 2 >= 3, ! (2 >= 3), (! 2) >= 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! 2 >= 3, ! (2 >= 3), (! 2) >= 3 union select * from v1;
create or replace view v1 as select ! 2 <= 3, ! (2 <= 3), (! 2) <= 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! 2 <= 3, ! (2 <= 3), (! 2) <= 3 union select * from v1;
create or replace view v1 as select ! 2 < 3, ! (2 < 3), (! 2) < 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! 2 < 3, ! (2 < 3), (! 2) < 3 union select * from v1;
create or replace view v1 as select ! 2 <> 3, ! (2 <> 3), (! 2) <> 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! 2 <> 3, ! (2 <> 3), (! 2) <> 3 union select * from v1;
create or replace view v1 as select ! 2 > 3, ! (2 > 3), (! 2) > 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! 2 > 3, ! (2 > 3), (! 2) > 3 union select * from v1;
create or replace view v1 as select ! 2 != 3, ! (2 != 3), (! 2) != 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! 2 != 3, ! (2 != 3), (! 2) != 3 union select * from v1;
create or replace view v1 as select ! 2 LIKE 3, ! (2 LIKE 3), (! 2) LIKE 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! 2 LIKE 3, ! (2 LIKE 3), (! 2) LIKE 3 union select * from v1;
create or replace view v1 as select ! 2 REGEXP 3, ! (2 REGEXP 3), (! 2) REGEXP 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! 2 REGEXP 3, ! (2 REGEXP 3), (! 2) REGEXP 3 union select * from v1;
create or replace view v1 as select ! 2 | 3, ! (2 | 3), (! 2) | 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! 2 | 3, ! (2 | 3), (! 2) | 3 union select * from v1;
create or replace view v1 as select ! 2 & 0, ! (2 & 0), (! 2) & 0;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! 2 & 0, ! (2 & 0), (! 2) & 0 union select * from v1;
create or replace view v1 as select ! 0 << 3, ! (0 << 3), (! 0) << 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! 0 << 3, ! (0 << 3), (! 0) << 3 union select * from v1;
create or replace view v1 as select ! 2 >> 3, ! (2 >> 3), (! 2) >> 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! 2 >> 3, ! (2 >> 3), (! 2) >> 3 union select * from v1;
create or replace view v1 as select ! '2000-01-01' +INTERVAL 1 DAY, ! ('2000-01-01' +INTERVAL 1 DAY), (! '2000-01-01') +INTERVAL 1 DAY;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! '2000-01-01' +INTERVAL 1 DAY, ! ('2000-01-01' +INTERVAL 1 DAY), (! '2000-01-01') +INTERVAL 1 DAY union select * from v1;
create or replace view v1 as select ! 2 + 3, ! (2 + 3), (! 2) + 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! 2 + 3, ! (2 + 3), (! 2) + 3 union select * from v1;
create or replace view v1 as select ! 2 - 3, ! (2 - 3), (! 2) - 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! 2 - 3, ! (2 - 3), (! 2) - 3 union select * from v1;
create or replace view v1 as select ! 0 * 3, ! (0 * 3), (! 0) * 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! 0 * 3, ! (0 * 3), (! 0) * 3 union select * from v1;
create or replace view v1 as select ! 0 / 3, ! (0 / 3), (! 0) / 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! 0 / 3, ! (0 / 3), (! 0) / 3 union select * from v1;
create or replace view v1 as select ! 2 DIV 3, ! (2 DIV 3), (! 2) DIV 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! 2 DIV 3, ! (2 DIV 3), (! 2) DIV 3 union select * from v1;
create or replace view v1 as select ! 6 MOD 3, ! (6 MOD 3), (! 6) MOD 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! 6 MOD 3, ! (6 MOD 3), (! 6) MOD 3 union select * from v1;
create or replace view v1 as select ! 6 % 3, ! (6 % 3), (! 6) % 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! 6 % 3, ! (6 % 3), (! 6) % 3 union select * from v1;
create or replace view v1 as select ! 2 ^ 3, ! (2 ^ 3), (! 2) ^ 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! 2 ^ 3, ! (2 ^ 3), (! 2) ^ 3 union select * from v1;
create or replace view v1 as select ! 2 BETWEEN 3 AND 4, ! (2 BETWEEN 3 AND 4), (! 2) BETWEEN 3 AND 4;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select ! 2 BETWEEN 3 AND 4, ! (2 BETWEEN 3 AND 4), (! 2) BETWEEN 3 AND 4 union select * from v1;
create or replace view v1 as select CHARSET(BINARY '2' COLLATE latin1_bin), CHARSET(BINARY ('2' COLLATE latin1_bin)), 'error'/*CHARSET((BINARY '2') COLLATE latin1_bin)*/;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select CHARSET(BINARY '2' COLLATE latin1_bin), CHARSET(BINARY ('2' COLLATE latin1_bin)), 'error'/*CHARSET((BINARY '2') COLLATE latin1_bin)*/ union select * from v1;
create or replace view v1 as select BINARY 'c' IN ('C','X'), BINARY ('c' IN ('C','X')), (BINARY 'c') IN ('C','X');
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select BINARY 'c' IN ('C','X'), BINARY ('c' IN ('C','X')), (BINARY 'c') IN ('C','X') union select * from v1;
create or replace view v1 as select BINARY 'c' = 'C', BINARY ('c' = 'C'), (BINARY 'c') = 'C';
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select BINARY 'c' = 'C', BINARY ('c' = 'C'), (BINARY 'c') = 'C' union select * from v1;
create or replace view v1 as select BINARY 'c' <=> 'C', BINARY ('c' <=> 'C'), (BINARY 'c') <=> 'C';
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select BINARY 'c' <=> 'C', BINARY ('c' <=> 'C'), (BINARY 'c') <=> 'C' union select * from v1;
create or replace view v1 as select BINARY 'c' >= 'D', BINARY ('c' >= 'D'), (BINARY 'c') >= 'D';
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select BINARY 'c' >= 'D', BINARY ('c' >= 'D'), (BINARY 'c') >= 'D' union select * from v1;
create or replace view v1 as select BINARY 'c' <= 'C', BINARY ('c' <= 'C'), (BINARY 'c') <= 'C';
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select BINARY 'c' <= 'C', BINARY ('c' <= 'C'), (BINARY 'c') <= 'C' union select * from v1;
create or replace view v1 as select BINARY 'c' < 'D', BINARY ('c' < 'D'), (BINARY 'c') < 'D';
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select BINARY 'c' < 'D', BINARY ('c' < 'D'), (BINARY 'c') < 'D' union select * from v1;
create or replace view v1 as select BINARY 'c' <> 'C', BINARY ('c' <> 'C'), (BINARY 'c') <> 'C';
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select BINARY 'c' <> 'C', BINARY ('c' <> 'C'), (BINARY 'c') <> 'C' union select * from v1;
create or replace view v1 as select BINARY 'c' > 'C', BINARY ('c' > 'C'), (BINARY 'c') > 'C';
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select BINARY 'c' > 'C', BINARY ('c' > 'C'), (BINARY 'c') > 'C' union select * from v1;
create or replace view v1 as select BINARY 'c' != 'C', BINARY ('c' != 'C'), (BINARY 'c') != 'C';
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select BINARY 'c' != 'C', BINARY ('c' != 'C'), (BINARY 'c') != 'C' union select * from v1;
create or replace view v1 as select BINARY 'c' LIKE 'C', BINARY ('c' LIKE 'C'), (BINARY 'c') LIKE 'C';
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select BINARY 'c' LIKE 'C', BINARY ('c' LIKE 'C'), (BINARY 'c') LIKE 'C' union select * from v1;
create or replace view v1 as select BINARY 'c' REGEXP 'C', BINARY ('c' REGEXP 'C'), (BINARY 'c') REGEXP 'C';
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select BINARY 'c' REGEXP 'C', BINARY ('c' REGEXP 'C'), (BINARY 'c') REGEXP 'C' union select * from v1;
create or replace view v1 as select BINARY 'c' BETWEEN 'A' AND 'D', BINARY ('c' BETWEEN 'A' AND 'D'), (BINARY 'c') BETWEEN 'A' AND 'D';
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select BINARY 'c' BETWEEN 'A' AND 'D', BINARY ('c' BETWEEN 'A' AND 'D'), (BINARY 'c') BETWEEN 'A' AND 'D' union select * from v1;
create or replace view v1 as select 2 OR 3 IS FALSE, 2 OR (3 IS FALSE), (2 OR 3) IS FALSE;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 2 OR 3 IS FALSE, 2 OR (3 IS FALSE), (2 OR 3) IS FALSE union select * from v1;
create or replace view v1 as select charset(2 OR 3 COLLATE latin1_bin), charset(2 OR (3 COLLATE latin1_bin)), charset((2 OR 3) COLLATE latin1_bin);
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select charset(2 OR 3 COLLATE latin1_bin), charset(2 OR (3 COLLATE latin1_bin)), charset((2 OR 3) COLLATE latin1_bin) union select * from v1;
create or replace view v1 as select 0 OR 3 IN (3,10), 0 OR (3 IN (3,10)), (0 OR 3) IN (3,10);
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 0 OR 3 IN (3,10), 0 OR (3 IN (3,10)), (0 OR 3) IN (3,10) union select * from v1;
create or replace view v1 as select 1 OR 0 XOR 1, 1 OR (0 XOR 1), (1 OR 0) XOR 1;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 1 OR 0 XOR 1, 1 OR (0 XOR 1), (1 OR 0) XOR 1 union select * from v1;
create or replace view v1 as select 1 OR 1 AND 0, 1 OR (1 AND 0), (1 OR 1) AND 0;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 1 OR 1 AND 0, 1 OR (1 AND 0), (1 OR 1) AND 0 union select * from v1;
create or replace view v1 as select 1 OR 1 && 0, 1 OR (1 && 0), (1 OR 1) && 0;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 1 OR 1 && 0, 1 OR (1 && 0), (1 OR 1) && 0 union select * from v1;
create or replace view v1 as select 2 OR 3 = 3, 2 OR (3 = 3), (2 OR 3) = 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 2 OR 3 = 3, 2 OR (3 = 3), (2 OR 3) = 3 union select * from v1;
create or replace view v1 as select 2 OR 3 <=> 3, 2 OR (3 <=> 3), (2 OR 3) <=> 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 2 OR 3 <=> 3, 2 OR (3 <=> 3), (2 OR 3) <=> 3 union select * from v1;
create or replace view v1 as select 2 OR 3 >= 3, 2 OR (3 >= 3), (2 OR 3) >= 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 2 OR 3 >= 3, 2 OR (3 >= 3), (2 OR 3) >= 3 union select * from v1;
create or replace view v1 as select 2 OR 3 <= 0, 2 OR (3 <= 0), (2 OR 3) <= 0;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 2 OR 3 <= 0, 2 OR (3 <= 0), (2 OR 3) <= 0 union select * from v1;
create or replace view v1 as select 2 OR 3 < 0, 2 OR (3 < 0), (2 OR 3) < 0;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 2 OR 3 < 0, 2 OR (3 < 0), (2 OR 3) < 0 union select * from v1;
create or replace view v1 as select 0 OR 3 <> 3, 0 OR (3 <> 3), (0 OR 3) <> 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 0 OR 3 <> 3, 0 OR (3 <> 3), (0 OR 3) <> 3 union select * from v1;
create or replace view v1 as select 2 OR 3 > 3, 2 OR (3 > 3), (2 OR 3) > 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 2 OR 3 > 3, 2 OR (3 > 3), (2 OR 3) > 3 union select * from v1;
create or replace view v1 as select 0 OR 3 != 3, 0 OR (3 != 3), (0 OR 3) != 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 0 OR 3 != 3, 0 OR (3 != 3), (0 OR 3) != 3 union select * from v1;
create or replace view v1 as select 2 OR 3 LIKE 3, 2 OR (3 LIKE 3), (2 OR 3) LIKE 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 2 OR 3 LIKE 3, 2 OR (3 LIKE 3), (2 OR 3) LIKE 3 union select * from v1;
create or replace view v1 as select 2 OR 3 REGEXP 3, 2 OR (3 REGEXP 3), (2 OR 3) REGEXP 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 2 OR 3 REGEXP 3, 2 OR (3 REGEXP 3), (2 OR 3) REGEXP 3 union select * from v1;
create or replace view v1 as select 2 OR 3 | 3, 2 OR (3 | 3), (2 OR 3) | 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 2 OR 3 | 3, 2 OR (3 | 3), (2 OR 3) | 3 union select * from v1;
create or replace view v1 as select 0 OR 2 & 2, 0 OR (2 & 2), (0 OR 2) & 2;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 0 OR 2 & 2, 0 OR (2 & 2), (0 OR 2) & 2 union select * from v1;
create or replace view v1 as select 2 OR 3 << 3, 2 OR (3 << 3), (2 OR 3) << 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 2 OR 3 << 3, 2 OR (3 << 3), (2 OR 3) << 3 union select * from v1;
create or replace view v1 as select 2 OR 3 >> 3, 2 OR (3 >> 3), (2 OR 3) >> 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 2 OR 3 >> 3, 2 OR (3 >> 3), (2 OR 3) >> 3 union select * from v1;
create or replace view v1 as select 2 OR '2000-01-01' +INTERVAL 1 DAY, 2 OR ('2000-01-01' +INTERVAL 1 DAY), (2 OR '2000-01-01') +INTERVAL 1 DAY;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 2 OR '2000-01-01' +INTERVAL 1 DAY, 2 OR ('2000-01-01' +INTERVAL 1 DAY), (2 OR '2000-01-01') +INTERVAL 1 DAY union select * from v1;
create or replace view v1 as select 2 OR 3 + 3, 2 OR (3 + 3), (2 OR 3) + 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 2 OR 3 + 3, 2 OR (3 + 3), (2 OR 3) + 3 union select * from v1;
create or replace view v1 as select 2 OR 3 - 3, 2 OR (3 - 3), (2 OR 3) - 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 2 OR 3 - 3, 2 OR (3 - 3), (2 OR 3) - 3 union select * from v1;
create or replace view v1 as select 2 OR 3 * 3, 2 OR (3 * 3), (2 OR 3) * 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 2 OR 3 * 3, 2 OR (3 * 3), (2 OR 3) * 3 union select * from v1;
create or replace view v1 as select 2 OR 3 / 3, 2 OR (3 / 3), (2 OR 3) / 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 2 OR 3 / 3, 2 OR (3 / 3), (2 OR 3) / 3 union select * from v1;
create or replace view v1 as select 2 OR 3 DIV 3, 2 OR (3 DIV 3), (2 OR 3) DIV 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 2 OR 3 DIV 3, 2 OR (3 DIV 3), (2 OR 3) DIV 3 union select * from v1;
create or replace view v1 as select 0 OR 3 MOD 3, 0 OR (3 MOD 3), (0 OR 3) MOD 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 0 OR 3 MOD 3, 0 OR (3 MOD 3), (0 OR 3) MOD 3 union select * from v1;
create or replace view v1 as select 0 OR 3 % 3, 0 OR (3 % 3), (0 OR 3) % 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 0 OR 3 % 3, 0 OR (3 % 3), (0 OR 3) % 3 union select * from v1;
create or replace view v1 as select 2 OR 3 ^ 3, 2 OR (3 ^ 3), (2 OR 3) ^ 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 2 OR 3 ^ 3, 2 OR (3 ^ 3), (2 OR 3) ^ 3 union select * from v1;
create or replace view v1 as select 2 OR 3 BETWEEN 2 AND 3, 2 OR (3 BETWEEN 2 AND 3), (2 OR 3) BETWEEN 2 AND 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 2 OR 3 BETWEEN 2 AND 3, 2 OR (3 BETWEEN 2 AND 3), (2 OR 3) BETWEEN 2 AND 3 union select * from v1;
create or replace view v1 as select 2 || 3 IS FALSE, 2 || (3 IS FALSE), (2 || 3) IS FALSE;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 2 || 3 IS FALSE, 2 || (3 IS FALSE), (2 || 3) IS FALSE union select * from v1;
create or replace view v1 as select charset(2 || 3 COLLATE latin1_bin), charset(2 || (3 COLLATE latin1_bin)), charset((2 || 3) COLLATE latin1_bin);
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select charset(2 || 3 COLLATE latin1_bin), charset(2 || (3 COLLATE latin1_bin)), charset((2 || 3) COLLATE latin1_bin) union select * from v1;
create or replace view v1 as select 0 || 3 IN (3,10), 0 || (3 IN (3,10)), (0 || 3) IN (3,10);
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 0 || 3 IN (3,10), 0 || (3 IN (3,10)), (0 || 3) IN (3,10) union select * from v1;
create or replace view v1 as select 1 || 0 XOR 1, 1 || (0 XOR 1), (1 || 0) XOR 1;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 1 || 0 XOR 1, 1 || (0 XOR 1), (1 || 0) XOR 1 union select * from v1;
create or replace view v1 as select 1 || 1 AND 0, 1 || (1 AND 0), (1 || 1) AND 0;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 1 || 1 AND 0, 1 || (1 AND 0), (1 || 1) AND 0 union select * from v1;
create or replace view v1 as select 1 || 1 && 0, 1 || (1 && 0), (1 || 1) && 0;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 1 || 1 && 0, 1 || (1 && 0), (1 || 1) && 0 union select * from v1;
create or replace view v1 as select 2 || 3 = 3, 2 || (3 = 3), (2 || 3) = 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 2 || 3 = 3, 2 || (3 = 3), (2 || 3) = 3 union select * from v1;
create or replace view v1 as select 2 || 3 <=> 3, 2 || (3 <=> 3), (2 || 3) <=> 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 2 || 3 <=> 3, 2 || (3 <=> 3), (2 || 3) <=> 3 union select * from v1;
create or replace view v1 as select 2 || 3 >= 3, 2 || (3 >= 3), (2 || 3) >= 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 2 || 3 >= 3, 2 || (3 >= 3), (2 || 3) >= 3 union select * from v1;
create or replace view v1 as select 2 || 3 <= 0, 2 || (3 <= 0), (2 || 3) <= 0;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 2 || 3 <= 0, 2 || (3 <= 0), (2 || 3) <= 0 union select * from v1;
create or replace view v1 as select 2 || 3 < 0, 2 || (3 < 0), (2 || 3) < 0;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 2 || 3 < 0, 2 || (3 < 0), (2 || 3) < 0 union select * from v1;
create or replace view v1 as select 0 || 3 <> 3, 0 || (3 <> 3), (0 || 3) <> 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 0 || 3 <> 3, 0 || (3 <> 3), (0 || 3) <> 3 union select * from v1;
create or replace view v1 as select 2 || 3 > 3, 2 || (3 > 3), (2 || 3) > 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 2 || 3 > 3, 2 || (3 > 3), (2 || 3) > 3 union select * from v1;
create or replace view v1 as select 0 || 3 != 3, 0 || (3 != 3), (0 || 3) != 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 0 || 3 != 3, 0 || (3 != 3), (0 || 3) != 3 union select * from v1;
create or replace view v1 as select 2 || 3 LIKE 3, 2 || (3 LIKE 3), (2 || 3) LIKE 3;
Select view_definition from information_schema.views where table_schema='test' and table_name='v1';
select 2 || 3 LIKE 3, 2 || (3 LIKE 3), (2 || 3) LIKE 3 union select * from v1;
create or replace view v1 as select 2 || 3 REGEXP 3, 2 || (3 REGEXP 3), (2 || 3) REGEXP 3;
Select view_definition from information_schema.views where table_schema='test' and table_name=