1# 2# A fairly exhastive test for operator precedence 3# 4 5disable_warnings; 6 7#################### I couldn't come up with a test where precedence changes the result here 8# 9#create or replace view v1 as select BINARY 2 IS TRUE, BINARY (2 IS TRUE), (BINARY 2) IS TRUE; 10#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 11#select BINARY 2 IS TRUE, BINARY (2 IS TRUE), (BINARY 2) IS TRUE union select * from v1; 12# 13#create or replace view v1 as select BINARY 2 OR 3, BINARY (2 OR 3), (BINARY 2) OR 3; 14#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 15#select BINARY 2 OR 3, BINARY (2 OR 3), (BINARY 2) OR 3 union select * from v1; 16# 17#create or replace view v1 as select BINARY 2 || 3, BINARY (2 || 3), (BINARY 2) || 3; 18#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 19#select BINARY 2 || 3, BINARY (2 || 3), (BINARY 2) || 3 union select * from v1; 20# 21#create or replace view v1 as select BINARY 2 XOR 3, BINARY (2 XOR 3), (BINARY 2) XOR 3; 22#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 23#select BINARY 2 XOR 3, BINARY (2 XOR 3), (BINARY 2) XOR 3 union select * from v1; 24# 25#create or replace view v1 as select BINARY 2 AND 3, BINARY (2 AND 3), (BINARY 2) AND 3; 26#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 27#select BINARY 2 AND 3, BINARY (2 AND 3), (BINARY 2) AND 3 union select * from v1; 28# 29#create or replace view v1 as select BINARY 2 && 3, BINARY (2 && 3), (BINARY 2) && 3; 30#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 31#select BINARY 2 && 3, BINARY (2 && 3), (BINARY 2) && 3 union select * from v1; 32# 33#create or replace view v1 as select BINARY 2 | 3, BINARY (2 | 3), (BINARY 2) | 3; 34#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 35#select BINARY 2 | 3, BINARY (2 | 3), (BINARY 2) | 3 union select * from v1; 36# 37#create or replace view v1 as select BINARY 2 & 3, BINARY (2 & 3), (BINARY 2) & 3; 38#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 39#select BINARY 2 & 3, BINARY (2 & 3), (BINARY 2) & 3 union select * from v1; 40# 41#create or replace view v1 as select BINARY 2 << 3, BINARY (2 << 3), (BINARY 2) << 3; 42#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 43#select BINARY 2 << 3, BINARY (2 << 3), (BINARY 2) << 3 union select * from v1; 44# 45#create or replace view v1 as select BINARY 2 >> 3, BINARY (2 >> 3), (BINARY 2) >> 3; 46#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 47#select BINARY 2 >> 3, BINARY (2 >> 3), (BINARY 2) >> 3 union select * from v1; 48# 49#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; 50#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 51#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; 52# 53#create or replace view v1 as select BINARY 2 + 3, BINARY (2 + 3), (BINARY 2) + 3; 54#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 55#select BINARY 2 + 3, BINARY (2 + 3), (BINARY 2) + 3 union select * from v1; 56# 57#create or replace view v1 as select BINARY 2 - 3, BINARY (2 - 3), (BINARY 2) - 3; 58#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 59#select BINARY 2 - 3, BINARY (2 - 3), (BINARY 2) - 3 union select * from v1; 60# 61#create or replace view v1 as select BINARY 2 * 3, BINARY (2 * 3), (BINARY 2) * 3; 62#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 63#select BINARY 2 * 3, BINARY (2 * 3), (BINARY 2) * 3 union select * from v1; 64# 65#create or replace view v1 as select BINARY 2 / 3, BINARY (2 / 3), (BINARY 2) / 3; 66#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 67#select BINARY 2 / 3, BINARY (2 / 3), (BINARY 2) / 3 union select * from v1; 68# 69#create or replace view v1 as select BINARY 2 DIV 3, BINARY (2 DIV 3), (BINARY 2) DIV 3; 70#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 71#select BINARY 2 DIV 3, BINARY (2 DIV 3), (BINARY 2) DIV 3 union select * from v1; 72# 73#create or replace view v1 as select BINARY 2 MOD 3, BINARY (2 MOD 3), (BINARY 2) MOD 3; 74#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 75#select BINARY 2 MOD 3, BINARY (2 MOD 3), (BINARY 2) MOD 3 union select * from v1; 76# 77#create or replace view v1 as select BINARY 2 % 3, BINARY (2 % 3), (BINARY 2) % 3; 78#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 79#select BINARY 2 % 3, BINARY (2 % 3), (BINARY 2) % 3 union select * from v1; 80# 81#create or replace view v1 as select BINARY 2 ^ 3, BINARY (2 ^ 3), (BINARY 2) ^ 3; 82#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 83#select BINARY 2 ^ 3, BINARY (2 ^ 3), (BINARY 2) ^ 3 union select * from v1; 84# 85#set sql_mode=PIPES_AS_CONCAT; 86#create or replace view v1 as select 2 || 3 COLLATE latin1_bin, 2 || (3 COLLATE latin1_bin), (2 || 3) COLLATE latin1_bin; 87#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 88#select 2 || 3 COLLATE latin1_bin, 2 || (3 COLLATE latin1_bin), (2 || 3) COLLATE latin1_bin union select * from v1; 89 90########################## The result doesn't depend on the precedence 91# 92#create or replace view v1 as select NOT 2 XOR 0, NOT (2 XOR 0), (NOT 2) XOR 0; 93#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 94#select NOT 2 XOR 0, NOT (2 XOR 0), (NOT 2) XOR 0 union select * from v1; 95# 96#create or replace view v1 as select - 2 * 3, - (2 * 3), (- 2) * 3; 97#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 98#select - 2 * 3, - (2 * 3), (- 2) * 3 union select * from v1; 99# 100#create or replace view v1 as select - 2 / 3, - (2 / 3), (- 2) / 3; 101#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 102#select - 2 / 3, - (2 / 3), (- 2) / 3 union select * from v1; 103# 104#create or replace view v1 as select - 2 DIV 3, - (2 DIV 3), (- 2) DIV 3; 105#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 106#select - 2 DIV 3, - (2 DIV 3), (- 2) DIV 3 union select * from v1; 107# 108#create or replace view v1 as select - 2 MOD 3, - (2 MOD 3), (- 2) MOD 3; 109#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 110#select - 2 MOD 3, - (2 MOD 3), (- 2) MOD 3 union select * from v1; 111# 112#create or replace view v1 as select - 2 % 3, - (2 % 3), (- 2) % 3; 113#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 114#select - 2 % 3, - (2 % 3), (- 2) % 3 union select * from v1; 115# 116#create or replace view v1 as select ~ 2 ^ 3, ~ (2 ^ 3), (~ 2) ^ 3; 117#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 118#select ~ 2 ^ 3, ~ (2 ^ 3), (~ 2) ^ 3 union select * from v1; 119# 120#create or replace view v1 as select ! 2 XOR 3, ! (2 XOR 3), (! 2) XOR 3; 121#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 122#select ! 2 XOR 3, ! (2 XOR 3), (! 2) XOR 3 union select * from v1; 123# 124#create or replace view v1 as select 2 OR 3 OR 3, 2 OR (3 OR 3), (2 OR 3) OR 3; 125#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 126#select 2 OR 3 OR 3, 2 OR (3 OR 3), (2 OR 3) OR 3 union select * from v1; 127# 128#create or replace view v1 as select 2 OR 3 || 3, 2 OR (3 || 3), (2 OR 3) || 3; 129#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 130#select 2 OR 3 || 3, 2 OR (3 || 3), (2 OR 3) || 3 union select * from v1; 131# 132#create or replace view v1 as select 2 || 3 OR 3, 2 || (3 OR 3), (2 || 3) OR 3; 133#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 134#select 2 || 3 OR 3, 2 || (3 OR 3), (2 || 3) OR 3 union select * from v1; 135# 136#create or replace view v1 as select 2 || 3 || 3, 2 || (3 || 3), (2 || 3) || 3; 137#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 138#select 2 || 3 || 3, 2 || (3 || 3), (2 || 3) || 3 union select * from v1; 139# 140#create or replace view v1 as select 2 XOR 3 IS FALSE, 2 XOR (3 IS FALSE), (2 XOR 3) IS FALSE; 141#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 142#select 2 XOR 3 IS FALSE, 2 XOR (3 IS FALSE), (2 XOR 3) IS FALSE union select * from v1; 143# 144#create or replace view v1 as select 2 XOR 3 XOR 3, 2 XOR (3 XOR 3), (2 XOR 3) XOR 3; 145#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 146#select 2 XOR 3 XOR 3, 2 XOR (3 XOR 3), (2 XOR 3) XOR 3 union select * from v1; 147# 148#create or replace view v1 as select 2 AND 3 AND 3, 2 AND (3 AND 3), (2 AND 3) AND 3; 149#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 150#select 2 AND 3 AND 3, 2 AND (3 AND 3), (2 AND 3) AND 3 union select * from v1; 151# 152#create or replace view v1 as select 2 AND 3 && 3, 2 AND (3 && 3), (2 AND 3) && 3; 153#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 154#select 2 AND 3 && 3, 2 AND (3 && 3), (2 AND 3) && 3 union select * from v1; 155# 156#create or replace view v1 as select 2 && 3 AND 3, 2 && (3 AND 3), (2 && 3) AND 3; 157#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 158#select 2 && 3 AND 3, 2 && (3 AND 3), (2 && 3) AND 3 union select * from v1; 159# 160#create or replace view v1 as select 2 && 3 && 3, 2 && (3 && 3), (2 && 3) && 3; 161#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 162#select 2 && 3 && 3, 2 && (3 && 3), (2 && 3) && 3 union select * from v1; 163# 164#create or replace view v1 as select 2 | 3 | 3, 2 | (3 | 3), (2 | 3) | 3; 165#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 166#select 2 | 3 | 3, 2 | (3 | 3), (2 | 3) | 3 union select * from v1; 167# 168#create or replace view v1 as select 2 & 3 & 3, 2 & (3 & 3), (2 & 3) & 3; 169#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 170#select 2 & 3 & 3, 2 & (3 & 3), (2 & 3) & 3 union select * from v1; 171# 172#create or replace view v1 as select 2 + 3 + 3, 2 + (3 + 3), (2 + 3) + 3; 173#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 174#select 2 + 3 + 3, 2 + (3 + 3), (2 + 3) + 3 union select * from v1; 175# 176#create or replace view v1 as select 2 + 3 - 3, 2 + (3 - 3), (2 + 3) - 3; 177#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 178#select 2 + 3 - 3, 2 + (3 - 3), (2 + 3) - 3 union select * from v1; 179# 180#create or replace view v1 as select 2 * 3 << 3, 2 * (3 << 3), (2 * 3) << 3; 181#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 182#select 2 * 3 << 3, 2 * (3 << 3), (2 * 3) << 3 union select * from v1; 183# 184#create or replace view v1 as select 2 * 3 * 3, 2 * (3 * 3), (2 * 3) * 3; 185#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 186#select 2 * 3 * 3, 2 * (3 * 3), (2 * 3) * 3 union select * from v1; 187# 188#create or replace view v1 as select 2 * 3 / 3, 2 * (3 / 3), (2 * 3) / 3; 189#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 190#select 2 * 3 / 3, 2 * (3 / 3), (2 * 3) / 3 union select * from v1; 191# 192#create or replace view v1 as select 2 ^ 3 ^ 3, 2 ^ (3 ^ 3), (2 ^ 3) ^ 3; 193#Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 194#select 2 ^ 3 ^ 3, 2 ^ (3 ^ 3), (2 ^ 3) ^ 3 union select * from v1; 195 196create or replace view v1 as select NOT NULL IS TRUE, NOT (NULL IS TRUE), (NOT NULL) IS TRUE; 197Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 198select NOT NULL IS TRUE, NOT (NULL IS TRUE), (NOT NULL) IS TRUE union select * from v1; 199 200create or replace view v1 as select ! NULL IS TRUE, ! (NULL IS TRUE), (! NULL) IS TRUE; 201Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 202select ! NULL IS TRUE, ! (NULL IS TRUE), (! NULL) IS TRUE union select * from v1; 203 204create or replace view v1 as select charset(NOT 2 COLLATE latin1_bin), charset(NOT (2 COLLATE latin1_bin)), charset((NOT 2) COLLATE latin1_bin); 205Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 206select charset(NOT 2 COLLATE latin1_bin), charset(NOT (2 COLLATE latin1_bin)), charset((NOT 2) COLLATE latin1_bin) union select * from v1; 207 208create or replace view v1 as select NOT 2 IN (0,2), NOT (2 IN (0,2)), (NOT 2) IN (0,2); 209Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 210select NOT 2 IN (0,2), NOT (2 IN (0,2)), (NOT 2) IN (0,2) union select * from v1; 211 212create or replace view v1 as select NOT 2 OR 3, NOT (2 OR 3), (NOT 2) OR 3; 213Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 214select NOT 2 OR 3, NOT (2 OR 3), (NOT 2) OR 3 union select * from v1; 215 216create or replace view v1 as select NOT 2 || 3, NOT (2 || 3), (NOT 2) || 3; 217Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 218select NOT 2 || 3, NOT (2 || 3), (NOT 2) || 3 union select * from v1; 219 220create or replace view v1 as select NOT 2 AND 0, NOT (2 AND 0), (NOT 2) AND 0; 221Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 222select NOT 2 AND 0, NOT (2 AND 0), (NOT 2) AND 0 union select * from v1; 223 224create or replace view v1 as select NOT 2 && 0, NOT (2 && 0), (NOT 2) && 0; 225Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 226select NOT 2 && 0, NOT (2 && 0), (NOT 2) && 0 union select * from v1; 227 228create or replace view v1 as select NOT 2 = 3, NOT (2 = 3), (NOT 2) = 3; 229Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 230select NOT 2 = 3, NOT (2 = 3), (NOT 2) = 3 union select * from v1; 231 232create or replace view v1 as select NOT 2 <=> 3, NOT (2 <=> 3), (NOT 2) <=> 3; 233Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 234select NOT 2 <=> 3, NOT (2 <=> 3), (NOT 2) <=> 3 union select * from v1; 235 236create or replace view v1 as select NOT 2 >= 3, NOT (2 >= 3), (NOT 2) >= 3; 237Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 238select NOT 2 >= 3, NOT (2 >= 3), (NOT 2) >= 3 union select * from v1; 239 240create or replace view v1 as select NOT 2 <= 3, NOT (2 <= 3), (NOT 2) <= 3; 241Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 242select NOT 2 <= 3, NOT (2 <= 3), (NOT 2) <= 3 union select * from v1; 243 244create or replace view v1 as select NOT 2 < 3, NOT (2 < 3), (NOT 2) < 3; 245Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 246select NOT 2 < 3, NOT (2 < 3), (NOT 2) < 3 union select * from v1; 247 248create or replace view v1 as select NOT 2 <> 3, NOT (2 <> 3), (NOT 2) <> 3; 249Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 250select NOT 2 <> 3, NOT (2 <> 3), (NOT 2) <> 3 union select * from v1; 251 252create or replace view v1 as select NOT 2 > 3, NOT (2 > 3), (NOT 2) > 3; 253Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 254select NOT 2 > 3, NOT (2 > 3), (NOT 2) > 3 union select * from v1; 255 256create or replace view v1 as select NOT 2 != 3, NOT (2 != 3), (NOT 2) != 3; 257Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 258select NOT 2 != 3, NOT (2 != 3), (NOT 2) != 3 union select * from v1; 259 260create or replace view v1 as select NOT 2 LIKE 3, NOT (2 LIKE 3), (NOT 2) LIKE 3; 261Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 262select NOT 2 LIKE 3, NOT (2 LIKE 3), (NOT 2) LIKE 3 union select * from v1; 263 264create or replace view v1 as select NOT 2 REGEXP 3, NOT (2 REGEXP 3), (NOT 2) REGEXP 3; 265Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 266select NOT 2 REGEXP 3, NOT (2 REGEXP 3), (NOT 2) REGEXP 3 union select * from v1; 267 268create or replace view v1 as select NOT 2 | 3, NOT (2 | 3), (NOT 2) | 3; 269Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 270select NOT 2 | 3, NOT (2 | 3), (NOT 2) | 3 union select * from v1; 271 272create or replace view v1 as select NOT 0 & 2, NOT (0 & 2), (NOT 0) & 2; 273Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 274select NOT 0 & 2, NOT (0 & 2), (NOT 0) & 2 union select * from v1; 275 276create or replace view v1 as select NOT 0 << 3, NOT (0 << 3), (NOT 0) << 3; 277Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 278select NOT 0 << 3, NOT (0 << 3), (NOT 0) << 3 union select * from v1; 279 280create or replace view v1 as select NOT 2 >> 3, NOT (2 >> 3), (NOT 2) >> 3; 281Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 282select NOT 2 >> 3, NOT (2 >> 3), (NOT 2) >> 3 union select * from v1; 283 284create 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; 285Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 286select 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; 287 288create or replace view v1 as select NOT 2 + 3, NOT (2 + 3), (NOT 2) + 3; 289Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 290select NOT 2 + 3, NOT (2 + 3), (NOT 2) + 3 union select * from v1; 291 292create or replace view v1 as select NOT 2 - 3, NOT (2 - 3), (NOT 2) - 3; 293Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 294select NOT 2 - 3, NOT (2 - 3), (NOT 2) - 3 union select * from v1; 295 296create or replace view v1 as select NOT 0 * 3, NOT (0 * 3), (NOT 0) * 3; 297Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 298select NOT 0 * 3, NOT (0 * 3), (NOT 0) * 3 union select * from v1; 299 300create or replace view v1 as select NOT 0 / 3, NOT (0 / 3), (NOT 0) / 3; 301Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 302select NOT 0 / 3, NOT (0 / 3), (NOT 0) / 3 union select * from v1; 303 304create or replace view v1 as select NOT 2 DIV 3, NOT (2 DIV 3), (NOT 2) DIV 3; 305Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 306select NOT 2 DIV 3, NOT (2 DIV 3), (NOT 2) DIV 3 union select * from v1; 307 308create or replace view v1 as select NOT 6 MOD 3, NOT (6 MOD 3), (NOT 6) MOD 3; 309Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 310select NOT 6 MOD 3, NOT (6 MOD 3), (NOT 6) MOD 3 union select * from v1; 311 312create or replace view v1 as select NOT 6 % 3, NOT (6 % 3), (NOT 6) % 3; 313Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 314select NOT 6 % 3, NOT (6 % 3), (NOT 6) % 3 union select * from v1; 315 316create or replace view v1 as select NOT 2 ^ 3, NOT (2 ^ 3), (NOT 2) ^ 3; 317Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 318select NOT 2 ^ 3, NOT (2 ^ 3), (NOT 2) ^ 3 union select * from v1; 319 320create or replace view v1 as select NOT 2 BETWEEN 3 AND 4, NOT (2 BETWEEN 3 AND 4), (NOT 2) BETWEEN 3 AND 4; 321Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 322select NOT 2 BETWEEN 3 AND 4, NOT (2 BETWEEN 3 AND 4), (NOT 2) BETWEEN 3 AND 4 union select * from v1; 323 324create or replace view v1 as select - 2 IS TRUE, - (2 IS TRUE), (- 2) IS TRUE; 325Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 326select - 2 IS TRUE, - (2 IS TRUE), (- 2) IS TRUE union select * from v1; 327 328create or replace view v1 as select charset(- "2" COLLATE latin1_bin), charset(- ("2" COLLATE latin1_bin)), charset((- "2") COLLATE latin1_bin); 329Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 330select charset(- "2" COLLATE latin1_bin), charset(- ("2" COLLATE latin1_bin)), charset((- "2") COLLATE latin1_bin) union select * from v1; 331 332create or replace view v1 as select - 2 IN (2,1), - (2 IN (2,1)), (- 2) IN (2,1); 333Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 334select - 2 IN (2,1), - (2 IN (2,1)), (- 2) IN (2,1) union select * from v1; 335 336create or replace view v1 as select - 2 OR 3, - (2 OR 3), (- 2) OR 3; 337Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 338select - 2 OR 3, - (2 OR 3), (- 2) OR 3 union select * from v1; 339 340create or replace view v1 as select - 2 || 3, - (2 || 3), (- 2) || 3; 341Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 342select - 2 || 3, - (2 || 3), (- 2) || 3 union select * from v1; 343 344create or replace view v1 as select - 0 XOR 3, - (0 XOR 3), (- 0) XOR 3; 345Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 346select - 0 XOR 3, - (0 XOR 3), (- 0) XOR 3 union select * from v1; 347 348create or replace view v1 as select - 2 AND 3, - (2 AND 3), (- 2) AND 3; 349Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 350select - 2 AND 3, - (2 AND 3), (- 2) AND 3 union select * from v1; 351 352create or replace view v1 as select - 2 && 3, - (2 && 3), (- 2) && 3; 353Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 354select - 2 && 3, - (2 && 3), (- 2) && 3 union select * from v1; 355 356create or replace view v1 as select - 2 = 2, - (2 = 2), (- 2) = 2; 357Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 358select - 2 = 2, - (2 = 2), (- 2) = 2 union select * from v1; 359 360create or replace view v1 as select - 2 <=> 2, - (2 <=> 2), (- 2) <=> 2; 361Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 362select - 2 <=> 2, - (2 <=> 2), (- 2) <=> 2 union select * from v1; 363 364create or replace view v1 as select - 2 >= 1, - (2 >= 1), (- 2) >= 1; 365Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 366select - 2 >= 1, - (2 >= 1), (- 2) >= 1 union select * from v1; 367 368create or replace view v1 as select - 2 <= 3, - (2 <= 3), (- 2) <= 3; 369Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 370select - 2 <= 3, - (2 <= 3), (- 2) <= 3 union select * from v1; 371 372create or replace view v1 as select - 2 < 3, - (2 < 3), (- 2) < 3; 373Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 374select - 2 < 3, - (2 < 3), (- 2) < 3 union select * from v1; 375 376create or replace view v1 as select - 2 <> 3, - (2 <> 3), (- 2) <> 3; 377Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 378select - 2 <> 3, - (2 <> 3), (- 2) <> 3 union select * from v1; 379 380create or replace view v1 as select - 2 > 1, - (2 > 1), (- 2) > 1; 381Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 382select - 2 > 1, - (2 > 1), (- 2) > 1 union select * from v1; 383 384create or replace view v1 as select - 2 != 3, - (2 != 3), (- 2) != 3; 385Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 386select - 2 != 3, - (2 != 3), (- 2) != 3 union select * from v1; 387 388create or replace view v1 as select - 2 LIKE 2, - (2 LIKE 2), (- 2) LIKE 2; 389Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 390select - 2 LIKE 2, - (2 LIKE 2), (- 2) LIKE 2 union select * from v1; 391 392create or replace view v1 as select - 2 REGEXP 2, - (2 REGEXP 2), (- 2) REGEXP 2; 393Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 394select - 2 REGEXP 2, - (2 REGEXP 2), (- 2) REGEXP 2 union select * from v1; 395 396create or replace view v1 as select - 2 | 3, - (2 | 3), (- 2) | 3; 397Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 398select - 2 | 3, - (2 | 3), (- 2) | 3 union select * from v1; 399 400create or replace view v1 as select - 2 & 3, - (2 & 3), (- 2) & 3; 401Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 402select - 2 & 3, - (2 & 3), (- 2) & 3 union select * from v1; 403 404create or replace view v1 as select - 2 << 3, - (2 << 3), (- 2) << 3; 405Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 406select - 2 << 3, - (2 << 3), (- 2) << 3 union select * from v1; 407 408create or replace view v1 as select - 2 >> 3, - (2 >> 3), (- 2) >> 3; 409Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 410select - 2 >> 3, - (2 >> 3), (- 2) >> 3 union select * from v1; 411 412create or replace view v1 as select - '2000-01-01' +INTERVAL 1 DAY, - ('2000-01-01' +INTERVAL 1 DAY), (- '2000-01-01') +INTERVAL 1 DAY; 413Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 414select - '2000-01-01' +INTERVAL 1 DAY, - ('2000-01-01' +INTERVAL 1 DAY), (- '2000-01-01') +INTERVAL 1 DAY union select * from v1; 415 416create or replace view v1 as select - 2 + 3, - (2 + 3), (- 2) + 3; 417Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 418select - 2 + 3, - (2 + 3), (- 2) + 3 union select * from v1; 419 420create or replace view v1 as select - 2 - 3, - (2 - 3), (- 2) - 3; 421Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 422select - 2 - 3, - (2 - 3), (- 2) - 3 union select * from v1; 423 424create or replace view v1 as select - 2 ^ 3, - (2 ^ 3), (- 2) ^ 3; 425Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 426select - 2 ^ 3, - (2 ^ 3), (- 2) ^ 3 union select * from v1; 427 428create or replace view v1 as select - 2 BETWEEN 1 AND 3, - (2 BETWEEN 1 AND 3), (- 2) BETWEEN 1 AND 3; 429Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 430select - 2 BETWEEN 1 AND 3, - (2 BETWEEN 1 AND 3), (- 2) BETWEEN 1 AND 3 union select * from v1; 431 432create or replace view v1 as select ~ 2 IS TRUE, ~ (2 IS TRUE), (~ 2) IS TRUE; 433Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 434select ~ 2 IS TRUE, ~ (2 IS TRUE), (~ 2) IS TRUE union select * from v1; 435 436create or replace view v1 as select charset(~ 2 COLLATE latin1_bin), charset(~ (2 COLLATE latin1_bin)), charset((~ 2) COLLATE latin1_bin); 437Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 438select charset(~ 2 COLLATE latin1_bin), charset(~ (2 COLLATE latin1_bin)), charset((~ 2) COLLATE latin1_bin) union select * from v1; 439 440create or replace view v1 as select ~ 2 IN (0,1), ~ (2 IN (0,1)), (~ 2) IN (0,1); 441Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 442select ~ 2 IN (0,1), ~ (2 IN (0,1)), (~ 2) IN (0,1) union select * from v1; 443 444create or replace view v1 as select ~ 2 OR 3, ~ (2 OR 3), (~ 2) OR 3; 445Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 446select ~ 2 OR 3, ~ (2 OR 3), (~ 2) OR 3 union select * from v1; 447 448create or replace view v1 as select ~ 2 || 3, ~ (2 || 3), (~ 2) || 3; 449Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 450select ~ 2 || 3, ~ (2 || 3), (~ 2) || 3 union select * from v1; 451 452create or replace view v1 as select ~ 2 XOR 3, ~ (2 XOR 3), (~ 2) XOR 3; 453Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 454select ~ 2 XOR 3, ~ (2 XOR 3), (~ 2) XOR 3 union select * from v1; 455 456create or replace view v1 as select ~ 2 AND 3, ~ (2 AND 3), (~ 2) AND 3; 457Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 458select ~ 2 AND 3, ~ (2 AND 3), (~ 2) AND 3 union select * from v1; 459 460create or replace view v1 as select ~ 2 && 3, ~ (2 && 3), (~ 2) && 3; 461Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 462select ~ 2 && 3, ~ (2 && 3), (~ 2) && 3 union select * from v1; 463 464create or replace view v1 as select ~ 2 = 3, ~ (2 = 3), (~ 2) = 3; 465Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 466select ~ 2 = 3, ~ (2 = 3), (~ 2) = 3 union select * from v1; 467 468create or replace view v1 as select ~ 2 <=> 3, ~ (2 <=> 3), (~ 2) <=> 3; 469Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 470select ~ 2 <=> 3, ~ (2 <=> 3), (~ 2) <=> 3 union select * from v1; 471 472create or replace view v1 as select ~ 2 >= 3, ~ (2 >= 3), (~ 2) >= 3; 473Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 474select ~ 2 >= 3, ~ (2 >= 3), (~ 2) >= 3 union select * from v1; 475 476create or replace view v1 as select ~ 2 <= 3, ~ (2 <= 3), (~ 2) <= 3; 477Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 478select ~ 2 <= 3, ~ (2 <= 3), (~ 2) <= 3 union select * from v1; 479 480create or replace view v1 as select ~ 2 < 3, ~ (2 < 3), (~ 2) < 3; 481Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 482select ~ 2 < 3, ~ (2 < 3), (~ 2) < 3 union select * from v1; 483 484create or replace view v1 as select ~ 2 <> 3, ~ (2 <> 3), (~ 2) <> 3; 485Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 486select ~ 2 <> 3, ~ (2 <> 3), (~ 2) <> 3 union select * from v1; 487 488create or replace view v1 as select ~ 2 > 3, ~ (2 > 3), (~ 2) > 3; 489Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 490select ~ 2 > 3, ~ (2 > 3), (~ 2) > 3 union select * from v1; 491 492create or replace view v1 as select ~ 2 != 3, ~ (2 != 3), (~ 2) != 3; 493Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 494select ~ 2 != 3, ~ (2 != 3), (~ 2) != 3 union select * from v1; 495 496create or replace view v1 as select ~ 2 LIKE 3, ~ (2 LIKE 3), (~ 2) LIKE 3; 497Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 498select ~ 2 LIKE 3, ~ (2 LIKE 3), (~ 2) LIKE 3 union select * from v1; 499 500create or replace view v1 as select ~ 2 REGEXP 3, ~ (2 REGEXP 3), (~ 2) REGEXP 3; 501Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 502select ~ 2 REGEXP 3, ~ (2 REGEXP 3), (~ 2) REGEXP 3 union select * from v1; 503 504create or replace view v1 as select ~ 2 | 3, ~ (2 | 3), (~ 2) | 3; 505Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 506select ~ 2 | 3, ~ (2 | 3), (~ 2) | 3 union select * from v1; 507 508create or replace view v1 as select ~ 2 & 3, ~ (2 & 3), (~ 2) & 3; 509Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 510select ~ 2 & 3, ~ (2 & 3), (~ 2) & 3 union select * from v1; 511 512create or replace view v1 as select ~ 2 << 3, ~ (2 << 3), (~ 2) << 3; 513Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 514select ~ 2 << 3, ~ (2 << 3), (~ 2) << 3 union select * from v1; 515 516create or replace view v1 as select ~ 2 >> 3, ~ (2 >> 3), (~ 2) >> 3; 517Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 518select ~ 2 >> 3, ~ (2 >> 3), (~ 2) >> 3 union select * from v1; 519 520create or replace view v1 as select ~ '2000-01-01' +INTERVAL 1 DAY, ~ ('2000-01-01' +INTERVAL 1 DAY), (~ '2000-01-01') +INTERVAL 1 DAY; 521Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 522select ~ '2000-01-01' +INTERVAL 1 DAY, ~ ('2000-01-01' +INTERVAL 1 DAY), (~ '2000-01-01') +INTERVAL 1 DAY union select * from v1; 523 524create or replace view v1 as select ~ 10000 + 3, ~ (10000 + 3), (~ 10000) + 3; 525Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 526select ~ 10000 + 3, ~ (10000 + 3), (~ 10000) + 3 union select * from v1; 527 528create or replace view v1 as select ~ 2 - 3, ~ (2 - 3), (~ 2) - 3; 529Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 530select ~ 2 - 3, ~ (2 - 3), (~ 2) - 3 union select * from v1; 531 532create or replace view v1 as select ~ 10000000000000000000 * 2, ~ (100 * 2), (~ 10000000000000000000) * 2; 533Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 534select ~ 10000000000000000000 * 2, ~ (100 * 2), (~ 10000000000000000000) * 2 union select * from v1; 535 536create or replace view v1 as select ~ 2 / 3, ~ (2 / 3), (~ 2) / 3; 537Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 538select ~ 2 / 3, ~ (2 / 3), (~ 2) / 3 union select * from v1; 539 540create or replace view v1 as select ~ 2 DIV 3, ~ (2 DIV 3), (~ 2) DIV 3; 541Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 542select ~ 2 DIV 3, ~ (2 DIV 3), (~ 2) DIV 3 union select * from v1; 543 544create or replace view v1 as select ~ 2 MOD 3, ~ (2 MOD 3), (~ 2) MOD 3; 545Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 546select ~ 2 MOD 3, ~ (2 MOD 3), (~ 2) MOD 3 union select * from v1; 547 548create or replace view v1 as select ~ 2 % 3, ~ (2 % 3), (~ 2) % 3; 549Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 550select ~ 2 % 3, ~ (2 % 3), (~ 2) % 3 union select * from v1; 551 552create or replace view v1 as select ~ 2 BETWEEN 1 AND 3, ~ (2 BETWEEN 1 AND 3), (~ 2) BETWEEN 1 AND 3; 553Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 554select ~ 2 BETWEEN 1 AND 3, ~ (2 BETWEEN 1 AND 3), (~ 2) BETWEEN 1 AND 3 union select * from v1; 555 556create or replace view v1 as select charset(! 2 COLLATE latin1_bin), charset(! (2 COLLATE latin1_bin)), charset((! 2) COLLATE latin1_bin); 557Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 558select charset(! 2 COLLATE latin1_bin), charset(! (2 COLLATE latin1_bin)), charset((! 2) COLLATE latin1_bin) union select * from v1; 559 560create or replace view v1 as select ! 2 IN (0,2), ! (2 IN (0,2)), (! 2) IN (0,2); 561Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 562select ! 2 IN (0,2), ! (2 IN (0,2)), (! 2) IN (0,2) union select * from v1; 563 564create or replace view v1 as select ! 2 OR 3, ! (2 OR 3), (! 2) OR 3; 565Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 566select ! 2 OR 3, ! (2 OR 3), (! 2) OR 3 union select * from v1; 567 568create or replace view v1 as select ! 2 || 3, ! (2 || 3), (! 2) || 3; 569Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 570select ! 2 || 3, ! (2 || 3), (! 2) || 3 union select * from v1; 571 572create or replace view v1 as select ! 2 AND 0, ! (2 AND 0), (! 2) AND 0; 573Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 574select ! 2 AND 0, ! (2 AND 0), (! 2) AND 0 union select * from v1; 575 576create or replace view v1 as select ! 2 && 0, ! (2 && 0), (! 2) && 0; 577Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 578select ! 2 && 0, ! (2 && 0), (! 2) && 0 union select * from v1; 579 580create or replace view v1 as select ! 2 = 3, ! (2 = 3), (! 2) = 3; 581Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 582select ! 2 = 3, ! (2 = 3), (! 2) = 3 union select * from v1; 583 584create or replace view v1 as select ! 2 <=> 3, ! (2 <=> 3), (! 2) <=> 3; 585Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 586select ! 2 <=> 3, ! (2 <=> 3), (! 2) <=> 3 union select * from v1; 587 588create or replace view v1 as select ! 2 >= 3, ! (2 >= 3), (! 2) >= 3; 589Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 590select ! 2 >= 3, ! (2 >= 3), (! 2) >= 3 union select * from v1; 591 592create or replace view v1 as select ! 2 <= 3, ! (2 <= 3), (! 2) <= 3; 593Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 594select ! 2 <= 3, ! (2 <= 3), (! 2) <= 3 union select * from v1; 595 596create or replace view v1 as select ! 2 < 3, ! (2 < 3), (! 2) < 3; 597Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 598select ! 2 < 3, ! (2 < 3), (! 2) < 3 union select * from v1; 599 600create or replace view v1 as select ! 2 <> 3, ! (2 <> 3), (! 2) <> 3; 601Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 602select ! 2 <> 3, ! (2 <> 3), (! 2) <> 3 union select * from v1; 603 604create or replace view v1 as select ! 2 > 3, ! (2 > 3), (! 2) > 3; 605Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 606select ! 2 > 3, ! (2 > 3), (! 2) > 3 union select * from v1; 607 608create or replace view v1 as select ! 2 != 3, ! (2 != 3), (! 2) != 3; 609Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 610select ! 2 != 3, ! (2 != 3), (! 2) != 3 union select * from v1; 611 612create or replace view v1 as select ! 2 LIKE 3, ! (2 LIKE 3), (! 2) LIKE 3; 613Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 614select ! 2 LIKE 3, ! (2 LIKE 3), (! 2) LIKE 3 union select * from v1; 615 616create or replace view v1 as select ! 2 REGEXP 3, ! (2 REGEXP 3), (! 2) REGEXP 3; 617Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 618select ! 2 REGEXP 3, ! (2 REGEXP 3), (! 2) REGEXP 3 union select * from v1; 619 620create or replace view v1 as select ! 2 | 3, ! (2 | 3), (! 2) | 3; 621Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 622select ! 2 | 3, ! (2 | 3), (! 2) | 3 union select * from v1; 623 624create or replace view v1 as select ! 2 & 0, ! (2 & 0), (! 2) & 0; 625Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 626select ! 2 & 0, ! (2 & 0), (! 2) & 0 union select * from v1; 627 628create or replace view v1 as select ! 0 << 3, ! (0 << 3), (! 0) << 3; 629Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 630select ! 0 << 3, ! (0 << 3), (! 0) << 3 union select * from v1; 631 632create or replace view v1 as select ! 2 >> 3, ! (2 >> 3), (! 2) >> 3; 633Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 634select ! 2 >> 3, ! (2 >> 3), (! 2) >> 3 union select * from v1; 635 636create or replace view v1 as select ! '2000-01-01' +INTERVAL 1 DAY, ! ('2000-01-01' +INTERVAL 1 DAY), (! '2000-01-01') +INTERVAL 1 DAY; 637Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 638select ! '2000-01-01' +INTERVAL 1 DAY, ! ('2000-01-01' +INTERVAL 1 DAY), (! '2000-01-01') +INTERVAL 1 DAY union select * from v1; 639 640create or replace view v1 as select ! 2 + 3, ! (2 + 3), (! 2) + 3; 641Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 642select ! 2 + 3, ! (2 + 3), (! 2) + 3 union select * from v1; 643 644create or replace view v1 as select ! 2 - 3, ! (2 - 3), (! 2) - 3; 645Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 646select ! 2 - 3, ! (2 - 3), (! 2) - 3 union select * from v1; 647 648create or replace view v1 as select ! 0 * 3, ! (0 * 3), (! 0) * 3; 649Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 650select ! 0 * 3, ! (0 * 3), (! 0) * 3 union select * from v1; 651 652create or replace view v1 as select ! 0 / 3, ! (0 / 3), (! 0) / 3; 653Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 654select ! 0 / 3, ! (0 / 3), (! 0) / 3 union select * from v1; 655 656create or replace view v1 as select ! 2 DIV 3, ! (2 DIV 3), (! 2) DIV 3; 657Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 658select ! 2 DIV 3, ! (2 DIV 3), (! 2) DIV 3 union select * from v1; 659 660create or replace view v1 as select ! 6 MOD 3, ! (6 MOD 3), (! 6) MOD 3; 661Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 662select ! 6 MOD 3, ! (6 MOD 3), (! 6) MOD 3 union select * from v1; 663 664create or replace view v1 as select ! 6 % 3, ! (6 % 3), (! 6) % 3; 665Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 666select ! 6 % 3, ! (6 % 3), (! 6) % 3 union select * from v1; 667 668create or replace view v1 as select ! 2 ^ 3, ! (2 ^ 3), (! 2) ^ 3; 669Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 670select ! 2 ^ 3, ! (2 ^ 3), (! 2) ^ 3 union select * from v1; 671 672create or replace view v1 as select ! 2 BETWEEN 3 AND 4, ! (2 BETWEEN 3 AND 4), (! 2) BETWEEN 3 AND 4; 673Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 674select ! 2 BETWEEN 3 AND 4, ! (2 BETWEEN 3 AND 4), (! 2) BETWEEN 3 AND 4 union select * from v1; 675 676create 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)*/; 677Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 678select CHARSET(BINARY '2' COLLATE latin1_bin), CHARSET(BINARY ('2' COLLATE latin1_bin)), 'error'/*CHARSET((BINARY '2') COLLATE latin1_bin)*/ union select * from v1; 679 680create or replace view v1 as select BINARY 'c' IN ('C','X'), BINARY ('c' IN ('C','X')), (BINARY 'c') IN ('C','X'); 681Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 682select BINARY 'c' IN ('C','X'), BINARY ('c' IN ('C','X')), (BINARY 'c') IN ('C','X') union select * from v1; 683 684create or replace view v1 as select BINARY 'c' = 'C', BINARY ('c' = 'C'), (BINARY 'c') = 'C'; 685Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 686select BINARY 'c' = 'C', BINARY ('c' = 'C'), (BINARY 'c') = 'C' union select * from v1; 687 688create or replace view v1 as select BINARY 'c' <=> 'C', BINARY ('c' <=> 'C'), (BINARY 'c') <=> 'C'; 689Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 690select BINARY 'c' <=> 'C', BINARY ('c' <=> 'C'), (BINARY 'c') <=> 'C' union select * from v1; 691 692create or replace view v1 as select BINARY 'c' >= 'D', BINARY ('c' >= 'D'), (BINARY 'c') >= 'D'; 693Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 694select BINARY 'c' >= 'D', BINARY ('c' >= 'D'), (BINARY 'c') >= 'D' union select * from v1; 695 696create or replace view v1 as select BINARY 'c' <= 'C', BINARY ('c' <= 'C'), (BINARY 'c') <= 'C'; 697Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 698select BINARY 'c' <= 'C', BINARY ('c' <= 'C'), (BINARY 'c') <= 'C' union select * from v1; 699 700create or replace view v1 as select BINARY 'c' < 'D', BINARY ('c' < 'D'), (BINARY 'c') < 'D'; 701Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 702select BINARY 'c' < 'D', BINARY ('c' < 'D'), (BINARY 'c') < 'D' union select * from v1; 703 704create or replace view v1 as select BINARY 'c' <> 'C', BINARY ('c' <> 'C'), (BINARY 'c') <> 'C'; 705Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 706select BINARY 'c' <> 'C', BINARY ('c' <> 'C'), (BINARY 'c') <> 'C' union select * from v1; 707 708create or replace view v1 as select BINARY 'c' > 'C', BINARY ('c' > 'C'), (BINARY 'c') > 'C'; 709Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 710select BINARY 'c' > 'C', BINARY ('c' > 'C'), (BINARY 'c') > 'C' union select * from v1; 711 712create or replace view v1 as select BINARY 'c' != 'C', BINARY ('c' != 'C'), (BINARY 'c') != 'C'; 713Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 714select BINARY 'c' != 'C', BINARY ('c' != 'C'), (BINARY 'c') != 'C' union select * from v1; 715 716create or replace view v1 as select BINARY 'c' LIKE 'C', BINARY ('c' LIKE 'C'), (BINARY 'c') LIKE 'C'; 717Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 718select BINARY 'c' LIKE 'C', BINARY ('c' LIKE 'C'), (BINARY 'c') LIKE 'C' union select * from v1; 719 720create or replace view v1 as select BINARY 'c' REGEXP 'C', BINARY ('c' REGEXP 'C'), (BINARY 'c') REGEXP 'C'; 721Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 722select BINARY 'c' REGEXP 'C', BINARY ('c' REGEXP 'C'), (BINARY 'c') REGEXP 'C' union select * from v1; 723 724create or replace view v1 as select BINARY 'c' BETWEEN 'A' AND 'D', BINARY ('c' BETWEEN 'A' AND 'D'), (BINARY 'c') BETWEEN 'A' AND 'D'; 725Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 726select BINARY 'c' BETWEEN 'A' AND 'D', BINARY ('c' BETWEEN 'A' AND 'D'), (BINARY 'c') BETWEEN 'A' AND 'D' union select * from v1; 727 728create or replace view v1 as select 2 OR 3 IS FALSE, 2 OR (3 IS FALSE), (2 OR 3) IS FALSE; 729Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 730select 2 OR 3 IS FALSE, 2 OR (3 IS FALSE), (2 OR 3) IS FALSE union select * from v1; 731 732create 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); 733Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 734select 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; 735 736create or replace view v1 as select 0 OR 3 IN (3,10), 0 OR (3 IN (3,10)), (0 OR 3) IN (3,10); 737Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 738select 0 OR 3 IN (3,10), 0 OR (3 IN (3,10)), (0 OR 3) IN (3,10) union select * from v1; 739 740create or replace view v1 as select 1 OR 0 XOR 1, 1 OR (0 XOR 1), (1 OR 0) XOR 1; 741Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 742select 1 OR 0 XOR 1, 1 OR (0 XOR 1), (1 OR 0) XOR 1 union select * from v1; 743 744create or replace view v1 as select 1 OR 1 AND 0, 1 OR (1 AND 0), (1 OR 1) AND 0; 745Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 746select 1 OR 1 AND 0, 1 OR (1 AND 0), (1 OR 1) AND 0 union select * from v1; 747 748create or replace view v1 as select 1 OR 1 && 0, 1 OR (1 && 0), (1 OR 1) && 0; 749Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 750select 1 OR 1 && 0, 1 OR (1 && 0), (1 OR 1) && 0 union select * from v1; 751 752create or replace view v1 as select 2 OR 3 = 3, 2 OR (3 = 3), (2 OR 3) = 3; 753Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 754select 2 OR 3 = 3, 2 OR (3 = 3), (2 OR 3) = 3 union select * from v1; 755 756create or replace view v1 as select 2 OR 3 <=> 3, 2 OR (3 <=> 3), (2 OR 3) <=> 3; 757Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 758select 2 OR 3 <=> 3, 2 OR (3 <=> 3), (2 OR 3) <=> 3 union select * from v1; 759 760create or replace view v1 as select 2 OR 3 >= 3, 2 OR (3 >= 3), (2 OR 3) >= 3; 761Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 762select 2 OR 3 >= 3, 2 OR (3 >= 3), (2 OR 3) >= 3 union select * from v1; 763 764create or replace view v1 as select 2 OR 3 <= 0, 2 OR (3 <= 0), (2 OR 3) <= 0; 765Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 766select 2 OR 3 <= 0, 2 OR (3 <= 0), (2 OR 3) <= 0 union select * from v1; 767 768create or replace view v1 as select 2 OR 3 < 0, 2 OR (3 < 0), (2 OR 3) < 0; 769Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 770select 2 OR 3 < 0, 2 OR (3 < 0), (2 OR 3) < 0 union select * from v1; 771 772create or replace view v1 as select 0 OR 3 <> 3, 0 OR (3 <> 3), (0 OR 3) <> 3; 773Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 774select 0 OR 3 <> 3, 0 OR (3 <> 3), (0 OR 3) <> 3 union select * from v1; 775 776create or replace view v1 as select 2 OR 3 > 3, 2 OR (3 > 3), (2 OR 3) > 3; 777Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 778select 2 OR 3 > 3, 2 OR (3 > 3), (2 OR 3) > 3 union select * from v1; 779 780create or replace view v1 as select 0 OR 3 != 3, 0 OR (3 != 3), (0 OR 3) != 3; 781Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 782select 0 OR 3 != 3, 0 OR (3 != 3), (0 OR 3) != 3 union select * from v1; 783 784create or replace view v1 as select 2 OR 3 LIKE 3, 2 OR (3 LIKE 3), (2 OR 3) LIKE 3; 785Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 786select 2 OR 3 LIKE 3, 2 OR (3 LIKE 3), (2 OR 3) LIKE 3 union select * from v1; 787 788create or replace view v1 as select 2 OR 3 REGEXP 3, 2 OR (3 REGEXP 3), (2 OR 3) REGEXP 3; 789Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 790select 2 OR 3 REGEXP 3, 2 OR (3 REGEXP 3), (2 OR 3) REGEXP 3 union select * from v1; 791 792create or replace view v1 as select 2 OR 3 | 3, 2 OR (3 | 3), (2 OR 3) | 3; 793Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 794select 2 OR 3 | 3, 2 OR (3 | 3), (2 OR 3) | 3 union select * from v1; 795 796create or replace view v1 as select 0 OR 2 & 2, 0 OR (2 & 2), (0 OR 2) & 2; 797Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 798select 0 OR 2 & 2, 0 OR (2 & 2), (0 OR 2) & 2 union select * from v1; 799 800create or replace view v1 as select 2 OR 3 << 3, 2 OR (3 << 3), (2 OR 3) << 3; 801Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 802select 2 OR 3 << 3, 2 OR (3 << 3), (2 OR 3) << 3 union select * from v1; 803 804create or replace view v1 as select 2 OR 3 >> 3, 2 OR (3 >> 3), (2 OR 3) >> 3; 805Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 806select 2 OR 3 >> 3, 2 OR (3 >> 3), (2 OR 3) >> 3 union select * from v1; 807 808create 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; 809Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 810select 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; 811 812create or replace view v1 as select 2 OR 3 + 3, 2 OR (3 + 3), (2 OR 3) + 3; 813Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 814select 2 OR 3 + 3, 2 OR (3 + 3), (2 OR 3) + 3 union select * from v1; 815 816create or replace view v1 as select 2 OR 3 - 3, 2 OR (3 - 3), (2 OR 3) - 3; 817Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 818select 2 OR 3 - 3, 2 OR (3 - 3), (2 OR 3) - 3 union select * from v1; 819 820create or replace view v1 as select 2 OR 3 * 3, 2 OR (3 * 3), (2 OR 3) * 3; 821Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 822select 2 OR 3 * 3, 2 OR (3 * 3), (2 OR 3) * 3 union select * from v1; 823 824create or replace view v1 as select 2 OR 3 / 3, 2 OR (3 / 3), (2 OR 3) / 3; 825Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 826select 2 OR 3 / 3, 2 OR (3 / 3), (2 OR 3) / 3 union select * from v1; 827 828create or replace view v1 as select 2 OR 3 DIV 3, 2 OR (3 DIV 3), (2 OR 3) DIV 3; 829Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 830select 2 OR 3 DIV 3, 2 OR (3 DIV 3), (2 OR 3) DIV 3 union select * from v1; 831 832create or replace view v1 as select 0 OR 3 MOD 3, 0 OR (3 MOD 3), (0 OR 3) MOD 3; 833Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 834select 0 OR 3 MOD 3, 0 OR (3 MOD 3), (0 OR 3) MOD 3 union select * from v1; 835 836create or replace view v1 as select 0 OR 3 % 3, 0 OR (3 % 3), (0 OR 3) % 3; 837Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 838select 0 OR 3 % 3, 0 OR (3 % 3), (0 OR 3) % 3 union select * from v1; 839 840create or replace view v1 as select 2 OR 3 ^ 3, 2 OR (3 ^ 3), (2 OR 3) ^ 3; 841Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 842select 2 OR 3 ^ 3, 2 OR (3 ^ 3), (2 OR 3) ^ 3 union select * from v1; 843 844create 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; 845Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 846select 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; 847 848create or replace view v1 as select 2 || 3 IS FALSE, 2 || (3 IS FALSE), (2 || 3) IS FALSE; 849Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 850select 2 || 3 IS FALSE, 2 || (3 IS FALSE), (2 || 3) IS FALSE union select * from v1; 851 852create or replace view v1 as select charset(2 || 3 COLLATE latin1_bin), charset(2 || (3 COLLATE latin1_bin)), charset((2 || 3) COLLATE latin1_bin); 853Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 854select charset(2 || 3 COLLATE latin1_bin), charset(2 || (3 COLLATE latin1_bin)), charset((2 || 3) COLLATE latin1_bin) union select * from v1; 855 856create or replace view v1 as select 0 || 3 IN (3,10), 0 || (3 IN (3,10)), (0 || 3) IN (3,10); 857Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 858select 0 || 3 IN (3,10), 0 || (3 IN (3,10)), (0 || 3) IN (3,10) union select * from v1; 859 860create or replace view v1 as select 1 || 0 XOR 1, 1 || (0 XOR 1), (1 || 0) XOR 1; 861Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 862select 1 || 0 XOR 1, 1 || (0 XOR 1), (1 || 0) XOR 1 union select * from v1; 863 864create or replace view v1 as select 1 || 1 AND 0, 1 || (1 AND 0), (1 || 1) AND 0; 865Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 866select 1 || 1 AND 0, 1 || (1 AND 0), (1 || 1) AND 0 union select * from v1; 867 868create or replace view v1 as select 1 || 1 && 0, 1 || (1 && 0), (1 || 1) && 0; 869Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 870select 1 || 1 && 0, 1 || (1 && 0), (1 || 1) && 0 union select * from v1; 871 872create or replace view v1 as select 2 || 3 = 3, 2 || (3 = 3), (2 || 3) = 3; 873Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 874select 2 || 3 = 3, 2 || (3 = 3), (2 || 3) = 3 union select * from v1; 875 876create or replace view v1 as select 2 || 3 <=> 3, 2 || (3 <=> 3), (2 || 3) <=> 3; 877Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 878select 2 || 3 <=> 3, 2 || (3 <=> 3), (2 || 3) <=> 3 union select * from v1; 879 880create or replace view v1 as select 2 || 3 >= 3, 2 || (3 >= 3), (2 || 3) >= 3; 881Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 882select 2 || 3 >= 3, 2 || (3 >= 3), (2 || 3) >= 3 union select * from v1; 883 884create or replace view v1 as select 2 || 3 <= 0, 2 || (3 <= 0), (2 || 3) <= 0; 885Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 886select 2 || 3 <= 0, 2 || (3 <= 0), (2 || 3) <= 0 union select * from v1; 887 888create or replace view v1 as select 2 || 3 < 0, 2 || (3 < 0), (2 || 3) < 0; 889Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 890select 2 || 3 < 0, 2 || (3 < 0), (2 || 3) < 0 union select * from v1; 891 892create or replace view v1 as select 0 || 3 <> 3, 0 || (3 <> 3), (0 || 3) <> 3; 893Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 894select 0 || 3 <> 3, 0 || (3 <> 3), (0 || 3) <> 3 union select * from v1; 895 896create or replace view v1 as select 2 || 3 > 3, 2 || (3 > 3), (2 || 3) > 3; 897Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 898select 2 || 3 > 3, 2 || (3 > 3), (2 || 3) > 3 union select * from v1; 899 900create or replace view v1 as select 0 || 3 != 3, 0 || (3 != 3), (0 || 3) != 3; 901Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 902select 0 || 3 != 3, 0 || (3 != 3), (0 || 3) != 3 union select * from v1; 903 904create or replace view v1 as select 2 || 3 LIKE 3, 2 || (3 LIKE 3), (2 || 3) LIKE 3; 905Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 906select 2 || 3 LIKE 3, 2 || (3 LIKE 3), (2 || 3) LIKE 3 union select * from v1; 907 908create or replace view v1 as select 2 || 3 REGEXP 3, 2 || (3 REGEXP 3), (2 || 3) REGEXP 3; 909Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 910select 2 || 3 REGEXP 3, 2 || (3 REGEXP 3), (2 || 3) REGEXP 3 union select * from v1; 911 912create or replace view v1 as select 2 || 3 | 3, 2 || (3 | 3), (2 || 3) | 3; 913Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 914select 2 || 3 | 3, 2 || (3 | 3), (2 || 3) | 3 union select * from v1; 915 916create or replace view v1 as select 0 || 2 & 2, 0 || (2 & 2), (0 || 2) & 2; 917Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 918select 0 || 2 & 2, 0 || (2 & 2), (0 || 2) & 2 union select * from v1; 919 920create or replace view v1 as select 2 || 3 << 3, 2 || (3 << 3), (2 || 3) << 3; 921Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 922select 2 || 3 << 3, 2 || (3 << 3), (2 || 3) << 3 union select * from v1; 923 924create or replace view v1 as select 2 || 3 >> 3, 2 || (3 >> 3), (2 || 3) >> 3; 925Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 926select 2 || 3 >> 3, 2 || (3 >> 3), (2 || 3) >> 3 union select * from v1; 927 928create or replace view v1 as select 2 || '2000-01-01' +INTERVAL 1 DAY, 2 || ('2000-01-01' +INTERVAL 1 DAY), (2 || '2000-01-01') +INTERVAL 1 DAY; 929Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 930select 2 || '2000-01-01' +INTERVAL 1 DAY, 2 || ('2000-01-01' +INTERVAL 1 DAY), (2 || '2000-01-01') +INTERVAL 1 DAY union select * from v1; 931 932create or replace view v1 as select 2 || 3 + 3, 2 || (3 + 3), (2 || 3) + 3; 933Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 934select 2 || 3 + 3, 2 || (3 + 3), (2 || 3) + 3 union select * from v1; 935 936create or replace view v1 as select 2 || 3 - 3, 2 || (3 - 3), (2 || 3) - 3; 937Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 938select 2 || 3 - 3, 2 || (3 - 3), (2 || 3) - 3 union select * from v1; 939 940create or replace view v1 as select 2 || 3 * 3, 2 || (3 * 3), (2 || 3) * 3; 941Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 942select 2 || 3 * 3, 2 || (3 * 3), (2 || 3) * 3 union select * from v1; 943 944create or replace view v1 as select 2 || 3 / 3, 2 || (3 / 3), (2 || 3) / 3; 945Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 946select 2 || 3 / 3, 2 || (3 / 3), (2 || 3) / 3 union select * from v1; 947 948create or replace view v1 as select 2 || 3 DIV 3, 2 || (3 DIV 3), (2 || 3) DIV 3; 949Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 950select 2 || 3 DIV 3, 2 || (3 DIV 3), (2 || 3) DIV 3 union select * from v1; 951 952create or replace view v1 as select 0 || 3 MOD 3, 0 || (3 MOD 3), (0 || 3) MOD 3; 953Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 954select 0 || 3 MOD 3, 0 || (3 MOD 3), (0 || 3) MOD 3 union select * from v1; 955 956create or replace view v1 as select 0 || 3 % 3, 0 || (3 % 3), (0 || 3) % 3; 957Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 958select 0 || 3 % 3, 0 || (3 % 3), (0 || 3) % 3 union select * from v1; 959 960create or replace view v1 as select 2 || 3 ^ 3, 2 || (3 ^ 3), (2 || 3) ^ 3; 961Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 962select 2 || 3 ^ 3, 2 || (3 ^ 3), (2 || 3) ^ 3 union select * from v1; 963 964create or replace view v1 as select 2 || 3 BETWEEN 2 AND 3, 2 || (3 BETWEEN 2 AND 3), (2 || 3) BETWEEN 2 AND 3; 965Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 966select 2 || 3 BETWEEN 2 AND 3, 2 || (3 BETWEEN 2 AND 3), (2 || 3) BETWEEN 2 AND 3 union select * from v1; 967 968create or replace view v1 as select charset(2 XOR 3 COLLATE latin1_bin), charset(2 XOR (3 COLLATE latin1_bin)), charset((2 XOR 3) COLLATE latin1_bin); 969Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 970select charset(2 XOR 3 COLLATE latin1_bin), charset(2 XOR (3 COLLATE latin1_bin)), charset((2 XOR 3) COLLATE latin1_bin) union select * from v1; 971 972create or replace view v1 as select 2 XOR 3 IN (4,5), 2 XOR (3 IN (4,5)), (2 XOR 3) IN (4,5); 973Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 974select 2 XOR 3 IN (4,5), 2 XOR (3 IN (4,5)), (2 XOR 3) IN (4,5) union select * from v1; 975 976create or replace view v1 as select 2 XOR 3 OR 3, 2 XOR (3 OR 3), (2 XOR 3) OR 3; 977Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 978select 2 XOR 3 OR 3, 2 XOR (3 OR 3), (2 XOR 3) OR 3 union select * from v1; 979 980create or replace view v1 as select 2 XOR 3 || 3, 2 XOR (3 || 3), (2 XOR 3) || 3; 981Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 982select 2 XOR 3 || 3, 2 XOR (3 || 3), (2 XOR 3) || 3 union select * from v1; 983 984create or replace view v1 as select 2 XOR 0 AND 0, 2 XOR (0 AND 0), (2 XOR 0) AND 0; 985Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 986select 2 XOR 0 AND 0, 2 XOR (0 AND 0), (2 XOR 0) AND 0 union select * from v1; 987 988create or replace view v1 as select 2 XOR 0 && 0, 2 XOR (0 && 0), (2 XOR 0) && 0; 989Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 990select 2 XOR 0 && 0, 2 XOR (0 && 0), (2 XOR 0) && 0 union select * from v1; 991 992create or replace view v1 as select 2 XOR 2 = 3, 2 XOR (2 = 3), (2 XOR 2) = 3; 993Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 994select 2 XOR 2 = 3, 2 XOR (2 = 3), (2 XOR 2) = 3 union select * from v1; 995 996create or replace view v1 as select NULL XOR 3 <=> 3, NULL XOR (3 <=> 3), (NULL XOR 3) <=> 3; 997Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 998select NULL XOR 3 <=> 3, NULL XOR (3 <=> 3), (NULL XOR 3) <=> 3 union select * from v1; 999 1000create or replace view v1 as select 2 XOR 1 >= 3, 2 XOR (1 >= 3), (2 XOR 1) >= 3; 1001Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1002select 2 XOR 1 >= 3, 2 XOR (1 >= 3), (2 XOR 1) >= 3 union select * from v1; 1003 1004create or replace view v1 as select 2 XOR 3 <= 3, 2 XOR (3 <= 3), (2 XOR 3) <= 3; 1005Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1006select 2 XOR 3 <= 3, 2 XOR (3 <= 3), (2 XOR 3) <= 3 union select * from v1; 1007 1008create or replace view v1 as select 2 XOR 1 < 3, 2 XOR (1 < 3), (2 XOR 1) < 3; 1009Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1010select 2 XOR 1 < 3, 2 XOR (1 < 3), (2 XOR 1) < 3 union select * from v1; 1011 1012create or replace view v1 as select 2 XOR 2 <> 3, 2 XOR (2 <> 3), (2 XOR 2) <> 3; 1013Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1014select 2 XOR 2 <> 3, 2 XOR (2 <> 3), (2 XOR 2) <> 3 union select * from v1; 1015 1016create or replace view v1 as select 2 XOR 3 > 3, 2 XOR (3 > 3), (2 XOR 3) > 3; 1017Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1018select 2 XOR 3 > 3, 2 XOR (3 > 3), (2 XOR 3) > 3 union select * from v1; 1019 1020create or replace view v1 as select 2 XOR 2 != 3, 2 XOR (2 != 3), (2 XOR 2) != 3; 1021Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1022select 2 XOR 2 != 3, 2 XOR (2 != 3), (2 XOR 2) != 3 union select * from v1; 1023 1024create or replace view v1 as select 2 XOR 1 LIKE 3, 2 XOR (1 LIKE 3), (2 XOR 1) LIKE 3; 1025Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1026select 2 XOR 1 LIKE 3, 2 XOR (1 LIKE 3), (2 XOR 1) LIKE 3 union select * from v1; 1027 1028create or replace view v1 as select 2 XOR 1 REGEXP 3, 2 XOR (1 REGEXP 3), (2 XOR 1) REGEXP 3; 1029Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1030select 2 XOR 1 REGEXP 3, 2 XOR (1 REGEXP 3), (2 XOR 1) REGEXP 3 union select * from v1; 1031 1032create or replace view v1 as select 2 XOR 3 | 3, 2 XOR (3 | 3), (2 XOR 3) | 3; 1033Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1034select 2 XOR 3 | 3, 2 XOR (3 | 3), (2 XOR 3) | 3 union select * from v1; 1035 1036create or replace view v1 as select 2 XOR 0 & 0, 2 XOR (0 & 0), (2 XOR 0) & 0; 1037Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1038select 2 XOR 0 & 0, 2 XOR (0 & 0), (2 XOR 0) & 0 union select * from v1; 1039 1040create or replace view v1 as select 0 XOR 3 << 3, 0 XOR (3 << 3), (0 XOR 3) << 3; 1041Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1042select 0 XOR 3 << 3, 0 XOR (3 << 3), (0 XOR 3) << 3 union select * from v1; 1043 1044create or replace view v1 as select 2 XOR 3 >> 3, 2 XOR (3 >> 3), (2 XOR 3) >> 3; 1045Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1046select 2 XOR 3 >> 3, 2 XOR (3 >> 3), (2 XOR 3) >> 3 union select * from v1; 1047 1048create or replace view v1 as select 2 XOR '2000-01-01' +INTERVAL 1 DAY, 2 XOR ('2000-01-01' +INTERVAL 1 DAY), (2 XOR '2000-01-01') +INTERVAL 1 DAY; 1049Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1050select 2 XOR '2000-01-01' +INTERVAL 1 DAY, 2 XOR ('2000-01-01' +INTERVAL 1 DAY), (2 XOR '2000-01-01') +INTERVAL 1 DAY union select * from v1; 1051 1052create or replace view v1 as select 2 XOR 3 + 3, 2 XOR (3 + 3), (2 XOR 3) + 3; 1053Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1054select 2 XOR 3 + 3, 2 XOR (3 + 3), (2 XOR 3) + 3 union select * from v1; 1055 1056create or replace view v1 as select 2 XOR 3 - 3, 2 XOR (3 - 3), (2 XOR 3) - 3; 1057Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1058select 2 XOR 3 - 3, 2 XOR (3 - 3), (2 XOR 3) - 3 union select * from v1; 1059 1060create or replace view v1 as select 0 XOR 3 * 3, 0 XOR (3 * 3), (0 XOR 3) * 3; 1061Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1062select 0 XOR 3 * 3, 0 XOR (3 * 3), (0 XOR 3) * 3 union select * from v1; 1063 1064create or replace view v1 as select 0 XOR 3 / 3, 0 XOR (3 / 3), (0 XOR 3) / 3; 1065Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1066select 0 XOR 3 / 3, 0 XOR (3 / 3), (0 XOR 3) / 3 union select * from v1; 1067 1068create or replace view v1 as select 0 XOR 3 DIV 3, 0 XOR (3 DIV 3), (0 XOR 3) DIV 3; 1069Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1070select 0 XOR 3 DIV 3, 0 XOR (3 DIV 3), (0 XOR 3) DIV 3 union select * from v1; 1071 1072create or replace view v1 as select 2 XOR 3 MOD 3, 2 XOR (3 MOD 3), (2 XOR 3) MOD 3; 1073Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1074select 2 XOR 3 MOD 3, 2 XOR (3 MOD 3), (2 XOR 3) MOD 3 union select * from v1; 1075 1076create or replace view v1 as select 2 XOR 3 % 3, 2 XOR (3 % 3), (2 XOR 3) % 3; 1077Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1078select 2 XOR 3 % 3, 2 XOR (3 % 3), (2 XOR 3) % 3 union select * from v1; 1079 1080create or replace view v1 as select 2 XOR 3 ^ 3, 2 XOR (3 ^ 3), (2 XOR 3) ^ 3; 1081Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1082select 2 XOR 3 ^ 3, 2 XOR (3 ^ 3), (2 XOR 3) ^ 3 union select * from v1; 1083 1084create or replace view v1 as select 2 XOR 3 BETWEEN 0 AND 3, 2 XOR (3 BETWEEN 0 AND 3), (2 XOR 3) BETWEEN 0 AND 3; 1085Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1086select 2 XOR 3 BETWEEN 0 AND 3, 2 XOR (3 BETWEEN 0 AND 3), (2 XOR 3) BETWEEN 0 AND 3 union select * from v1; 1087 1088create or replace view v1 as select 0 AND 3 IS FALSE, 0 AND (3 IS FALSE), (0 AND 3) IS FALSE; 1089Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1090select 0 AND 3 IS FALSE, 0 AND (3 IS FALSE), (0 AND 3) IS FALSE union select * from v1; 1091 1092create or replace view v1 as select charset(2 AND 3 COLLATE latin1_bin), charset(2 AND (3 COLLATE latin1_bin)), charset((2 AND 3) COLLATE latin1_bin); 1093Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1094select charset(2 AND 3 COLLATE latin1_bin), charset(2 AND (3 COLLATE latin1_bin)), charset((2 AND 3) COLLATE latin1_bin) union select * from v1; 1095 1096create or replace view v1 as select 2 AND 3 IN (0,1), 2 AND (3 IN (0,1)), (2 AND 3) IN (0,1); 1097Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1098select 2 AND 3 IN (0,1), 2 AND (3 IN (0,1)), (2 AND 3) IN (0,1) union select * from v1; 1099 1100create or replace view v1 as select 0 AND 3 OR 3, 0 AND (3 OR 3), (0 AND 3) OR 3; 1101Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1102select 0 AND 3 OR 3, 0 AND (3 OR 3), (0 AND 3) OR 3 union select * from v1; 1103 1104create or replace view v1 as select 0 AND 3 || 3, 0 AND (3 || 3), (0 AND 3) || 3; 1105Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1106select 0 AND 3 || 3, 0 AND (3 || 3), (0 AND 3) || 3 union select * from v1; 1107 1108create or replace view v1 as select 0 AND 3 XOR 3, 0 AND (3 XOR 3), (0 AND 3) XOR 3; 1109Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1110select 0 AND 3 XOR 3, 0 AND (3 XOR 3), (0 AND 3) XOR 3 union select * from v1; 1111 1112create or replace view v1 as select 2 AND 3 = 3, 2 AND (3 = 3), (2 AND 3) = 3; 1113Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1114select 2 AND 3 = 3, 2 AND (3 = 3), (2 AND 3) = 3 union select * from v1; 1115 1116create or replace view v1 as select 2 AND 3 <=> 3, 2 AND (3 <=> 3), (2 AND 3) <=> 3; 1117Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1118select 2 AND 3 <=> 3, 2 AND (3 <=> 3), (2 AND 3) <=> 3 union select * from v1; 1119 1120create or replace view v1 as select 2 AND 3 >= 3, 2 AND (3 >= 3), (2 AND 3) >= 3; 1121Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1122select 2 AND 3 >= 3, 2 AND (3 >= 3), (2 AND 3) >= 3 union select * from v1; 1123 1124create or replace view v1 as select 2 AND 4 <= 3, 2 AND (4 <= 3), (2 AND 4) <= 3; 1125Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1126select 2 AND 4 <= 3, 2 AND (4 <= 3), (2 AND 4) <= 3 union select * from v1; 1127 1128create or replace view v1 as select 2 AND 3 < 3, 2 AND (3 < 3), (2 AND 3) < 3; 1129Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1130select 2 AND 3 < 3, 2 AND (3 < 3), (2 AND 3) < 3 union select * from v1; 1131 1132create or replace view v1 as select 2 AND 3 <> 3, 2 AND (3 <> 3), (2 AND 3) <> 3; 1133Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1134select 2 AND 3 <> 3, 2 AND (3 <> 3), (2 AND 3) <> 3 union select * from v1; 1135 1136create or replace view v1 as select 2 AND 3 > 1, 2 AND (3 > 1), (2 AND 3) > 1; 1137Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1138select 2 AND 3 > 1, 2 AND (3 > 1), (2 AND 3) > 1 union select * from v1; 1139 1140create or replace view v1 as select 2 AND 3 != 3, 2 AND (3 != 3), (2 AND 3) != 3; 1141Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1142select 2 AND 3 != 3, 2 AND (3 != 3), (2 AND 3) != 3 union select * from v1; 1143 1144create or replace view v1 as select 2 AND 3 LIKE 3, 2 AND (3 LIKE 3), (2 AND 3) LIKE 3; 1145Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1146select 2 AND 3 LIKE 3, 2 AND (3 LIKE 3), (2 AND 3) LIKE 3 union select * from v1; 1147 1148create or replace view v1 as select 2 AND 3 REGEXP 3, 2 AND (3 REGEXP 3), (2 AND 3) REGEXP 3; 1149Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1150select 2 AND 3 REGEXP 3, 2 AND (3 REGEXP 3), (2 AND 3) REGEXP 3 union select * from v1; 1151 1152create or replace view v1 as select 2 AND 3 | 3, 2 AND (3 | 3), (2 AND 3) | 3; 1153Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1154select 2 AND 3 | 3, 2 AND (3 | 3), (2 AND 3) | 3 union select * from v1; 1155 1156create or replace view v1 as select 2 AND 2 & 2, 2 AND (2 & 2), (2 AND 2) & 2; 1157Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1158select 2 AND 2 & 2, 2 AND (2 & 2), (2 AND 2) & 2 union select * from v1; 1159 1160create or replace view v1 as select 2 AND 3 << 3, 2 AND (3 << 3), (2 AND 3) << 3; 1161Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1162select 2 AND 3 << 3, 2 AND (3 << 3), (2 AND 3) << 3 union select * from v1; 1163 1164create or replace view v1 as select 2 AND 3 >> 1, 2 AND (3 >> 1), (2 AND 3) >> 1; 1165Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1166select 2 AND 3 >> 1, 2 AND (3 >> 1), (2 AND 3) >> 1 union select * from v1; 1167 1168create or replace view v1 as select 2 AND '2000-01-01' +INTERVAL 1 DAY, 2 AND ('2000-01-01' +INTERVAL 1 DAY), (2 AND '2000-01-01') +INTERVAL 1 DAY; 1169Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1170select 2 AND '2000-01-01' +INTERVAL 1 DAY, 2 AND ('2000-01-01' +INTERVAL 1 DAY), (2 AND '2000-01-01') +INTERVAL 1 DAY union select * from v1; 1171 1172create or replace view v1 as select 2 AND 3 + 3, 2 AND (3 + 3), (2 AND 3) + 3; 1173Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1174select 2 AND 3 + 3, 2 AND (3 + 3), (2 AND 3) + 3 union select * from v1; 1175 1176create or replace view v1 as select 2 AND 3 - 3, 2 AND (3 - 3), (2 AND 3) - 3; 1177Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1178select 2 AND 3 - 3, 2 AND (3 - 3), (2 AND 3) - 3 union select * from v1; 1179 1180create or replace view v1 as select 2 AND 3 * 3, 2 AND (3 * 3), (2 AND 3) * 3; 1181Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1182select 2 AND 3 * 3, 2 AND (3 * 3), (2 AND 3) * 3 union select * from v1; 1183 1184create or replace view v1 as select 2 AND 3 / 3, 2 AND (3 / 3), (2 AND 3) / 3; 1185Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1186select 2 AND 3 / 3, 2 AND (3 / 3), (2 AND 3) / 3 union select * from v1; 1187 1188create or replace view v1 as select 2 AND 3 DIV 3, 2 AND (3 DIV 3), (2 AND 3) DIV 3; 1189Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1190select 2 AND 3 DIV 3, 2 AND (3 DIV 3), (2 AND 3) DIV 3 union select * from v1; 1191 1192create or replace view v1 as select 2 AND 3 MOD 3, 2 AND (3 MOD 3), (2 AND 3) MOD 3; 1193Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1194select 2 AND 3 MOD 3, 2 AND (3 MOD 3), (2 AND 3) MOD 3 union select * from v1; 1195 1196create or replace view v1 as select 2 AND 3 % 3, 2 AND (3 % 3), (2 AND 3) % 3; 1197Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1198select 2 AND 3 % 3, 2 AND (3 % 3), (2 AND 3) % 3 union select * from v1; 1199 1200create or replace view v1 as select 2 AND 3 ^ 3, 2 AND (3 ^ 3), (2 AND 3) ^ 3; 1201Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1202select 2 AND 3 ^ 3, 2 AND (3 ^ 3), (2 AND 3) ^ 3 union select * from v1; 1203 1204create or replace view v1 as select 2 AND 3 BETWEEN 2 AND 3, 2 AND (3 BETWEEN 2 AND 3), (2 AND 3) BETWEEN 2 AND 3; 1205Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1206select 2 AND 3 BETWEEN 2 AND 3, 2 AND (3 BETWEEN 2 AND 3), (2 AND 3) BETWEEN 2 AND 3 union select * from v1; 1207 1208create or replace view v1 as select 0 && 3 IS FALSE, 0 && (3 IS FALSE), (0 && 3) IS FALSE; 1209Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1210select 0 && 3 IS FALSE, 0 && (3 IS FALSE), (0 && 3) IS FALSE union select * from v1; 1211 1212create or replace view v1 as select charset(2 && 3 COLLATE latin1_bin), charset(2 && (3 COLLATE latin1_bin)), charset((2 && 3) COLLATE latin1_bin); 1213Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1214select charset(2 && 3 COLLATE latin1_bin), charset(2 && (3 COLLATE latin1_bin)), charset((2 && 3) COLLATE latin1_bin) union select * from v1; 1215 1216create or replace view v1 as select 2 && 3 IN (0,1), 2 && (3 IN (0,1)), (2 && 3) IN (0,1); 1217Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1218select 2 && 3 IN (0,1), 2 && (3 IN (0,1)), (2 && 3) IN (0,1) union select * from v1; 1219 1220create or replace view v1 as select 0 && 3 OR 3, 0 && (3 OR 3), (0 && 3) OR 3; 1221Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1222select 0 && 3 OR 3, 0 && (3 OR 3), (0 && 3) OR 3 union select * from v1; 1223 1224create or replace view v1 as select 0 && 3 || 3, 0 && (3 || 3), (0 && 3) || 3; 1225Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1226select 0 && 3 || 3, 0 && (3 || 3), (0 && 3) || 3 union select * from v1; 1227 1228create or replace view v1 as select 0 && 3 XOR 3, 0 && (3 XOR 3), (0 && 3) XOR 3; 1229Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1230select 0 && 3 XOR 3, 0 && (3 XOR 3), (0 && 3) XOR 3 union select * from v1; 1231 1232create or replace view v1 as select 2 && 3 = 3, 2 && (3 = 3), (2 && 3) = 3; 1233Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1234select 2 && 3 = 3, 2 && (3 = 3), (2 && 3) = 3 union select * from v1; 1235 1236create or replace view v1 as select 2 && 3 <=> 3, 2 && (3 <=> 3), (2 && 3) <=> 3; 1237Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1238select 2 && 3 <=> 3, 2 && (3 <=> 3), (2 && 3) <=> 3 union select * from v1; 1239 1240create or replace view v1 as select 2 && 3 >= 3, 2 && (3 >= 3), (2 && 3) >= 3; 1241Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1242select 2 && 3 >= 3, 2 && (3 >= 3), (2 && 3) >= 3 union select * from v1; 1243 1244create or replace view v1 as select 2 && 4 <= 3, 2 && (4 <= 3), (2 && 4) <= 3; 1245Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1246select 2 && 4 <= 3, 2 && (4 <= 3), (2 && 4) <= 3 union select * from v1; 1247 1248create or replace view v1 as select 2 && 3 < 3, 2 && (3 < 3), (2 && 3) < 3; 1249Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1250select 2 && 3 < 3, 2 && (3 < 3), (2 && 3) < 3 union select * from v1; 1251 1252create or replace view v1 as select 2 && 3 <> 3, 2 && (3 <> 3), (2 && 3) <> 3; 1253Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1254select 2 && 3 <> 3, 2 && (3 <> 3), (2 && 3) <> 3 union select * from v1; 1255 1256create or replace view v1 as select 2 && 3 > 1, 2 && (3 > 1), (2 && 3) > 1; 1257Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1258select 2 && 3 > 1, 2 && (3 > 1), (2 && 3) > 1 union select * from v1; 1259 1260create or replace view v1 as select 2 && 3 != 3, 2 && (3 != 3), (2 && 3) != 3; 1261Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1262select 2 && 3 != 3, 2 && (3 != 3), (2 && 3) != 3 union select * from v1; 1263 1264create or replace view v1 as select 2 && 3 LIKE 3, 2 && (3 LIKE 3), (2 && 3) LIKE 3; 1265Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1266select 2 && 3 LIKE 3, 2 && (3 LIKE 3), (2 && 3) LIKE 3 union select * from v1; 1267 1268create or replace view v1 as select 2 && 3 REGEXP 3, 2 && (3 REGEXP 3), (2 && 3) REGEXP 3; 1269Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1270select 2 && 3 REGEXP 3, 2 && (3 REGEXP 3), (2 && 3) REGEXP 3 union select * from v1; 1271 1272create or replace view v1 as select 2 && 3 | 3, 2 && (3 | 3), (2 && 3) | 3; 1273Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1274select 2 && 3 | 3, 2 && (3 | 3), (2 && 3) | 3 union select * from v1; 1275 1276create or replace view v1 as select 2 && 2 & 2, 2 && (2 & 2), (2 && 2) & 2; 1277Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1278select 2 && 2 & 2, 2 && (2 & 2), (2 && 2) & 2 union select * from v1; 1279 1280create or replace view v1 as select 2 && 3 << 3, 2 && (3 << 3), (2 && 3) << 3; 1281Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1282select 2 && 3 << 3, 2 && (3 << 3), (2 && 3) << 3 union select * from v1; 1283 1284create or replace view v1 as select 2 && 3 >> 1, 2 && (3 >> 1), (2 && 3) >> 1; 1285Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1286select 2 && 3 >> 1, 2 && (3 >> 1), (2 && 3) >> 1 union select * from v1; 1287 1288create or replace view v1 as select 2 && '2000-01-01' +INTERVAL 1 DAY, 2 && ('2000-01-01' +INTERVAL 1 DAY), (2 && '2000-01-01') +INTERVAL 1 DAY; 1289Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1290select 2 && '2000-01-01' +INTERVAL 1 DAY, 2 && ('2000-01-01' +INTERVAL 1 DAY), (2 && '2000-01-01') +INTERVAL 1 DAY union select * from v1; 1291 1292create or replace view v1 as select 2 && 3 + 3, 2 && (3 + 3), (2 && 3) + 3; 1293Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1294select 2 && 3 + 3, 2 && (3 + 3), (2 && 3) + 3 union select * from v1; 1295 1296create or replace view v1 as select 2 && 3 - 3, 2 && (3 - 3), (2 && 3) - 3; 1297Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1298select 2 && 3 - 3, 2 && (3 - 3), (2 && 3) - 3 union select * from v1; 1299 1300create or replace view v1 as select 2 && 3 * 3, 2 && (3 * 3), (2 && 3) * 3; 1301Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1302select 2 && 3 * 3, 2 && (3 * 3), (2 && 3) * 3 union select * from v1; 1303 1304create or replace view v1 as select 2 && 3 / 3, 2 && (3 / 3), (2 && 3) / 3; 1305Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1306select 2 && 3 / 3, 2 && (3 / 3), (2 && 3) / 3 union select * from v1; 1307 1308create or replace view v1 as select 2 && 3 DIV 3, 2 && (3 DIV 3), (2 && 3) DIV 3; 1309Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1310select 2 && 3 DIV 3, 2 && (3 DIV 3), (2 && 3) DIV 3 union select * from v1; 1311 1312create or replace view v1 as select 2 && 3 MOD 3, 2 && (3 MOD 3), (2 && 3) MOD 3; 1313Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1314select 2 && 3 MOD 3, 2 && (3 MOD 3), (2 && 3) MOD 3 union select * from v1; 1315 1316create or replace view v1 as select 2 && 3 % 3, 2 && (3 % 3), (2 && 3) % 3; 1317Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1318select 2 && 3 % 3, 2 && (3 % 3), (2 && 3) % 3 union select * from v1; 1319 1320create or replace view v1 as select 2 && 3 ^ 3, 2 && (3 ^ 3), (2 && 3) ^ 3; 1321Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1322select 2 && 3 ^ 3, 2 && (3 ^ 3), (2 && 3) ^ 3 union select * from v1; 1323 1324create or replace view v1 as select 2 && 3 BETWEEN 2 AND 3, 2 && (3 BETWEEN 2 AND 3), (2 && 3) BETWEEN 2 AND 3; 1325Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1326select 2 && 3 BETWEEN 2 AND 3, 2 && (3 BETWEEN 2 AND 3), (2 && 3) BETWEEN 2 AND 3 union select * from v1; 1327 1328create or replace view v1 as select 2 = 3 IS FALSE, 2 = (3 IS FALSE), (2 = 3) IS FALSE; 1329Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1330select 2 = 3 IS FALSE, 2 = (3 IS FALSE), (2 = 3) IS FALSE union select * from v1; 1331 1332create or replace view v1 as select charset(2 = 3 COLLATE latin1_bin), charset(2 = (3 COLLATE latin1_bin)), charset((2 = 3) COLLATE latin1_bin); 1333Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1334select charset(2 = 3 COLLATE latin1_bin), charset(2 = (3 COLLATE latin1_bin)), charset((2 = 3) COLLATE latin1_bin) union select * from v1; 1335 1336create or replace view v1 as select 2 = 3 IN (0,1), 2 = (3 IN (0,1)), (2 = 3) IN (0,1); 1337Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1338select 2 = 3 IN (0,1), 2 = (3 IN (0,1)), (2 = 3) IN (0,1) union select * from v1; 1339 1340create or replace view v1 as select 2 = 3 OR 3, 2 = (3 OR 3), (2 = 3) OR 3; 1341Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1342select 2 = 3 OR 3, 2 = (3 OR 3), (2 = 3) OR 3 union select * from v1; 1343 1344create or replace view v1 as select 2 = 3 || 3, 2 = (3 || 3), (2 = 3) || 3; 1345Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1346select 2 = 3 || 3, 2 = (3 || 3), (2 = 3) || 3 union select * from v1; 1347 1348create or replace view v1 as select 2 = 3 XOR 3, 2 = (3 XOR 3), (2 = 3) XOR 3; 1349Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1350select 2 = 3 XOR 3, 2 = (3 XOR 3), (2 = 3) XOR 3 union select * from v1; 1351 1352create or replace view v1 as select 2 = 2 AND 2, 2 = (2 AND 2), (2 = 2) AND 2; 1353Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1354select 2 = 2 AND 2, 2 = (2 AND 2), (2 = 2) AND 2 union select * from v1; 1355 1356create or replace view v1 as select 2 = 2 && 2, 2 = (2 && 2), (2 = 2) && 2; 1357Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1358select 2 = 2 && 2, 2 = (2 && 2), (2 = 2) && 2 union select * from v1; 1359 1360create or replace view v1 as select 1 = 3 = 3, 1 = (3 = 3), (1 = 3) = 3; 1361Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1362select 1 = 3 = 3, 1 = (3 = 3), (1 = 3) = 3 union select * from v1; 1363 1364create or replace view v1 as select 1 = 3 <=> 3, 1 = (3 <=> 3), (1 = 3) <=> 3; 1365Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1366select 1 = 3 <=> 3, 1 = (3 <=> 3), (1 = 3) <=> 3 union select * from v1; 1367 1368create or replace view v1 as select 1 = 3 >= 3, 1 = (3 >= 3), (1 = 3) >= 3; 1369Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1370select 1 = 3 >= 3, 1 = (3 >= 3), (1 = 3) >= 3 union select * from v1; 1371 1372create or replace view v1 as select 2 = 3 <= 3, 2 = (3 <= 3), (2 = 3) <= 3; 1373Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1374select 2 = 3 <= 3, 2 = (3 <= 3), (2 = 3) <= 3 union select * from v1; 1375 1376create or replace view v1 as select 2 = 3 < 3, 2 = (3 < 3), (2 = 3) < 3; 1377Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1378select 2 = 3 < 3, 2 = (3 < 3), (2 = 3) < 3 union select * from v1; 1379 1380create or replace view v1 as select 2 = 3 <> 3, 2 = (3 <> 3), (2 = 3) <> 3; 1381Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1382select 2 = 3 <> 3, 2 = (3 <> 3), (2 = 3) <> 3 union select * from v1; 1383 1384create or replace view v1 as select 0 = 3 > 3, 0 = (3 > 3), (0 = 3) > 3; 1385Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1386select 0 = 3 > 3, 0 = (3 > 3), (0 = 3) > 3 union select * from v1; 1387 1388create or replace view v1 as select 2 = 3 != 3, 2 = (3 != 3), (2 = 3) != 3; 1389Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1390select 2 = 3 != 3, 2 = (3 != 3), (2 = 3) != 3 union select * from v1; 1391 1392create or replace view v1 as select 1 = 3 LIKE 3, 1 = (3 LIKE 3), (1 = 3) LIKE 3; 1393Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1394select 1 = 3 LIKE 3, 1 = (3 LIKE 3), (1 = 3) LIKE 3 union select * from v1; 1395 1396create or replace view v1 as select 1 = 3 REGEXP 3, 1 = (3 REGEXP 3), (1 = 3) REGEXP 3; 1397Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1398select 1 = 3 REGEXP 3, 1 = (3 REGEXP 3), (1 = 3) REGEXP 3 union select * from v1; 1399 1400create or replace view v1 as select 2 = 3 | 3, 2 = (3 | 3), (2 = 3) | 3; 1401Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1402select 2 = 3 | 3, 2 = (3 | 3), (2 = 3) | 3 union select * from v1; 1403 1404create or replace view v1 as select 2 = 3 & 2, 2 = (3 & 2), (2 = 3) & 2; 1405Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1406select 2 = 3 & 2, 2 = (3 & 2), (2 = 3) & 2 union select * from v1; 1407 1408create or replace view v1 as select 3 = 3 << 3, 3 = (3 << 3), (3 = 3) << 3; 1409Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1410select 3 = 3 << 3, 3 = (3 << 3), (3 = 3) << 3 union select * from v1; 1411 1412create or replace view v1 as select 1 = 3 >> 1, 1 = (3 >> 1), (1 = 3) >> 1; 1413Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1414select 1 = 3 >> 1, 1 = (3 >> 1), (1 = 3) >> 1 union select * from v1; 1415 1416create or replace view v1 as select 2 = '2000-01-01' +INTERVAL 1 DAY, 2 = ('2000-01-01' +INTERVAL 1 DAY), (2 = '2000-01-01') +INTERVAL 1 DAY; 1417Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1418select 2 = '2000-01-01' +INTERVAL 1 DAY, 2 = ('2000-01-01' +INTERVAL 1 DAY), (2 = '2000-01-01') +INTERVAL 1 DAY union select * from v1; 1419 1420create or replace view v1 as select 2 = 3 + 3, 2 = (3 + 3), (2 = 3) + 3; 1421Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1422select 2 = 3 + 3, 2 = (3 + 3), (2 = 3) + 3 union select * from v1; 1423 1424create or replace view v1 as select 2 = 3 - 3, 2 = (3 - 3), (2 = 3) - 3; 1425Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1426select 2 = 3 - 3, 2 = (3 - 3), (2 = 3) - 3 union select * from v1; 1427 1428create or replace view v1 as select 3 = 3 * 3, 3 = (3 * 3), (3 = 3) * 3; 1429Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1430select 3 = 3 * 3, 3 = (3 * 3), (3 = 3) * 3 union select * from v1; 1431 1432create or replace view v1 as select 3 = 9 / 3, 3 = (9 / 3), (3 = 9) / 3; 1433Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1434select 3 = 9 / 3, 3 = (9 / 3), (3 = 9) / 3 union select * from v1; 1435 1436create or replace view v1 as select 3 = 9 DIV 3, 3 = (9 DIV 3), (3 = 9) DIV 3; 1437Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1438select 3 = 9 DIV 3, 3 = (9 DIV 3), (3 = 9) DIV 3 union select * from v1; 1439 1440create or replace view v1 as select 3 = 3 MOD 3, 3 = (3 MOD 3), (3 = 3) MOD 3; 1441Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1442select 3 = 3 MOD 3, 3 = (3 MOD 3), (3 = 3) MOD 3 union select * from v1; 1443 1444create or replace view v1 as select 3 = 3 % 3, 3 = (3 % 3), (3 = 3) % 3; 1445Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1446select 3 = 3 % 3, 3 = (3 % 3), (3 = 3) % 3 union select * from v1; 1447 1448create or replace view v1 as select 2 = 3 ^ 3, 2 = (3 ^ 3), (2 = 3) ^ 3; 1449Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1450select 2 = 3 ^ 3, 2 = (3 ^ 3), (2 = 3) ^ 3 union select * from v1; 1451 1452create or replace view v1 as select 1 = 3 BETWEEN 1 AND 3, 1 = (3 BETWEEN 1 AND 3), (1 = 3) BETWEEN 1 AND 3; 1453Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1454select 1 = 3 BETWEEN 1 AND 3, 1 = (3 BETWEEN 1 AND 3), (1 = 3) BETWEEN 1 AND 3 union select * from v1; 1455 1456create or replace view v1 as select 2 <=> 3 IS FALSE, 2 <=> (3 IS FALSE), (2 <=> 3) IS FALSE; 1457Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1458select 2 <=> 3 IS FALSE, 2 <=> (3 IS FALSE), (2 <=> 3) IS FALSE union select * from v1; 1459 1460create or replace view v1 as select charset(2 <=> 3 COLLATE latin1_bin), charset(2 <=> (3 COLLATE latin1_bin)), charset((2 <=> 3) COLLATE latin1_bin); 1461Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1462select charset(2 <=> 3 COLLATE latin1_bin), charset(2 <=> (3 COLLATE latin1_bin)), charset((2 <=> 3) COLLATE latin1_bin) union select * from v1; 1463 1464create or replace view v1 as select 2 <=> 3 IN (0,1), 2 <=> (3 IN (0,1)), (2 <=> 3) IN (0,1); 1465Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1466select 2 <=> 3 IN (0,1), 2 <=> (3 IN (0,1)), (2 <=> 3) IN (0,1) union select * from v1; 1467 1468create or replace view v1 as select 2 <=> 3 OR 3, 2 <=> (3 OR 3), (2 <=> 3) OR 3; 1469Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1470select 2 <=> 3 OR 3, 2 <=> (3 OR 3), (2 <=> 3) OR 3 union select * from v1; 1471 1472create or replace view v1 as select 2 <=> 3 || 3, 2 <=> (3 || 3), (2 <=> 3) || 3; 1473Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1474select 2 <=> 3 || 3, 2 <=> (3 || 3), (2 <=> 3) || 3 union select * from v1; 1475 1476create or replace view v1 as select 2 <=> 3 XOR 3, 2 <=> (3 XOR 3), (2 <=> 3) XOR 3; 1477Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1478select 2 <=> 3 XOR 3, 2 <=> (3 XOR 3), (2 <=> 3) XOR 3 union select * from v1; 1479 1480create or replace view v1 as select 2 <=> 2 AND 2, 2 <=> (2 AND 2), (2 <=> 2) AND 2; 1481Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1482select 2 <=> 2 AND 2, 2 <=> (2 AND 2), (2 <=> 2) AND 2 union select * from v1; 1483 1484create or replace view v1 as select 2 <=> 2 && 2, 2 <=> (2 && 2), (2 <=> 2) && 2; 1485Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1486select 2 <=> 2 && 2, 2 <=> (2 && 2), (2 <=> 2) && 2 union select * from v1; 1487 1488create or replace view v1 as select 1 <=> 3 = 3, 1 <=> (3 = 3), (1 <=> 3) = 3; 1489Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1490select 1 <=> 3 = 3, 1 <=> (3 = 3), (1 <=> 3) = 3 union select * from v1; 1491 1492create or replace view v1 as select 1 <=> 3 <=> 3, 1 <=> (3 <=> 3), (1 <=> 3) <=> 3; 1493Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1494select 1 <=> 3 <=> 3, 1 <=> (3 <=> 3), (1 <=> 3) <=> 3 union select * from v1; 1495 1496create or replace view v1 as select 1 <=> 3 >= 3, 1 <=> (3 >= 3), (1 <=> 3) >= 3; 1497Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1498select 1 <=> 3 >= 3, 1 <=> (3 >= 3), (1 <=> 3) >= 3 union select * from v1; 1499 1500create or replace view v1 as select 2 <=> 3 <= 3, 2 <=> (3 <= 3), (2 <=> 3) <= 3; 1501Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1502select 2 <=> 3 <= 3, 2 <=> (3 <= 3), (2 <=> 3) <= 3 union select * from v1; 1503 1504create or replace view v1 as select 2 <=> 3 < 3, 2 <=> (3 < 3), (2 <=> 3) < 3; 1505Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1506select 2 <=> 3 < 3, 2 <=> (3 < 3), (2 <=> 3) < 3 union select * from v1; 1507 1508create or replace view v1 as select 2 <=> 3 <> 3, 2 <=> (3 <> 3), (2 <=> 3) <> 3; 1509Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1510select 2 <=> 3 <> 3, 2 <=> (3 <> 3), (2 <=> 3) <> 3 union select * from v1; 1511 1512create or replace view v1 as select 0 <=> 3 > 3, 0 <=> (3 > 3), (0 <=> 3) > 3; 1513Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1514select 0 <=> 3 > 3, 0 <=> (3 > 3), (0 <=> 3) > 3 union select * from v1; 1515 1516create or replace view v1 as select 2 <=> 3 != 3, 2 <=> (3 != 3), (2 <=> 3) != 3; 1517Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1518select 2 <=> 3 != 3, 2 <=> (3 != 3), (2 <=> 3) != 3 union select * from v1; 1519 1520create or replace view v1 as select 1 <=> 3 LIKE 3, 1 <=> (3 LIKE 3), (1 <=> 3) LIKE 3; 1521Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1522select 1 <=> 3 LIKE 3, 1 <=> (3 LIKE 3), (1 <=> 3) LIKE 3 union select * from v1; 1523 1524create or replace view v1 as select 1 <=> 3 REGEXP 3, 1 <=> (3 REGEXP 3), (1 <=> 3) REGEXP 3; 1525Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1526select 1 <=> 3 REGEXP 3, 1 <=> (3 REGEXP 3), (1 <=> 3) REGEXP 3 union select * from v1; 1527 1528create or replace view v1 as select 2 <=> 3 | 3, 2 <=> (3 | 3), (2 <=> 3) | 3; 1529Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1530select 2 <=> 3 | 3, 2 <=> (3 | 3), (2 <=> 3) | 3 union select * from v1; 1531 1532create or replace view v1 as select 2 <=> 3 & 2, 2 <=> (3 & 2), (2 <=> 3) & 2; 1533Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1534select 2 <=> 3 & 2, 2 <=> (3 & 2), (2 <=> 3) & 2 union select * from v1; 1535 1536create or replace view v1 as select 3 <=> 3 << 3, 3 <=> (3 << 3), (3 <=> 3) << 3; 1537Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1538select 3 <=> 3 << 3, 3 <=> (3 << 3), (3 <=> 3) << 3 union select * from v1; 1539 1540create or replace view v1 as select 1 <=> 3 >> 1, 1 <=> (3 >> 1), (1 <=> 3) >> 1; 1541Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1542select 1 <=> 3 >> 1, 1 <=> (3 >> 1), (1 <=> 3) >> 1 union select * from v1; 1543 1544create or replace view v1 as select 2 <=> '2000-01-01' +INTERVAL 1 DAY, 2 <=> ('2000-01-01' +INTERVAL 1 DAY), (2 <=> '2000-01-01') +INTERVAL 1 DAY; 1545Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1546select 2 <=> '2000-01-01' +INTERVAL 1 DAY, 2 <=> ('2000-01-01' +INTERVAL 1 DAY), (2 <=> '2000-01-01') +INTERVAL 1 DAY union select * from v1; 1547 1548create or replace view v1 as select 2 <=> 3 + 3, 2 <=> (3 + 3), (2 <=> 3) + 3; 1549Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1550select 2 <=> 3 + 3, 2 <=> (3 + 3), (2 <=> 3) + 3 union select * from v1; 1551 1552create or replace view v1 as select 2 <=> 3 - 3, 2 <=> (3 - 3), (2 <=> 3) - 3; 1553Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1554select 2 <=> 3 - 3, 2 <=> (3 - 3), (2 <=> 3) - 3 union select * from v1; 1555 1556create or replace view v1 as select 3 <=> 3 * 3, 3 <=> (3 * 3), (3 <=> 3) * 3; 1557Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1558select 3 <=> 3 * 3, 3 <=> (3 * 3), (3 <=> 3) * 3 union select * from v1; 1559 1560create or replace view v1 as select 3 <=> 9 / 3, 3 <=> (9 / 3), (3 <=> 9) / 3; 1561Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1562select 3 <=> 9 / 3, 3 <=> (9 / 3), (3 <=> 9) / 3 union select * from v1; 1563 1564create or replace view v1 as select 3 <=> 9 DIV 3, 3 <=> (9 DIV 3), (3 <=> 9) DIV 3; 1565Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1566select 3 <=> 9 DIV 3, 3 <=> (9 DIV 3), (3 <=> 9) DIV 3 union select * from v1; 1567 1568create or replace view v1 as select 3 <=> 3 MOD 3, 3 <=> (3 MOD 3), (3 <=> 3) MOD 3; 1569Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1570select 3 <=> 3 MOD 3, 3 <=> (3 MOD 3), (3 <=> 3) MOD 3 union select * from v1; 1571 1572create or replace view v1 as select 3 <=> 3 % 3, 3 <=> (3 % 3), (3 <=> 3) % 3; 1573Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1574select 3 <=> 3 % 3, 3 <=> (3 % 3), (3 <=> 3) % 3 union select * from v1; 1575 1576create or replace view v1 as select 2 <=> 3 ^ 3, 2 <=> (3 ^ 3), (2 <=> 3) ^ 3; 1577Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1578select 2 <=> 3 ^ 3, 2 <=> (3 ^ 3), (2 <=> 3) ^ 3 union select * from v1; 1579 1580create or replace view v1 as select 1 <=> 3 BETWEEN 1 AND 3, 1 <=> (3 BETWEEN 1 AND 3), (1 <=> 3) BETWEEN 1 AND 3; 1581Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1582select 1 <=> 3 BETWEEN 1 AND 3, 1 <=> (3 BETWEEN 1 AND 3), (1 <=> 3) BETWEEN 1 AND 3 union select * from v1; 1583 1584create or replace view v1 as select 4 >= 3 IS FALSE, 4 >= (3 IS FALSE), (4 >= 3) IS FALSE; 1585Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1586select 4 >= 3 IS FALSE, 4 >= (3 IS FALSE), (4 >= 3) IS FALSE union select * from v1; 1587 1588create or replace view v1 as select charset(2 >= 3 COLLATE latin1_bin), charset(2 >= (3 COLLATE latin1_bin)), charset((2 >= 3) COLLATE latin1_bin); 1589Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1590select charset(2 >= 3 COLLATE latin1_bin), charset(2 >= (3 COLLATE latin1_bin)), charset((2 >= 3) COLLATE latin1_bin) union select * from v1; 1591 1592create or replace view v1 as select 2 >= 3 IN (1,1), 2 >= (3 IN (1,1)), (2 >= 3) IN (1,1); 1593Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1594select 2 >= 3 IN (1,1), 2 >= (3 IN (1,1)), (2 >= 3) IN (1,1) union select * from v1; 1595 1596create or replace view v1 as select 2 >= 3 OR 0, 2 >= (3 OR 0), (2 >= 3) OR 0; 1597Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1598select 2 >= 3 OR 0, 2 >= (3 OR 0), (2 >= 3) OR 0 union select * from v1; 1599 1600create or replace view v1 as select 2 >= 3 || 0, 2 >= (3 || 0), (2 >= 3) || 0; 1601Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1602select 2 >= 3 || 0, 2 >= (3 || 0), (2 >= 3) || 0 union select * from v1; 1603 1604create or replace view v1 as select 2 >= 3 XOR 0, 2 >= (3 XOR 0), (2 >= 3) XOR 0; 1605Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1606select 2 >= 3 XOR 0, 2 >= (3 XOR 0), (2 >= 3) XOR 0 union select * from v1; 1607 1608create or replace view v1 as select 2 >= 3 AND 3, 2 >= (3 AND 3), (2 >= 3) AND 3; 1609Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1610select 2 >= 3 AND 3, 2 >= (3 AND 3), (2 >= 3) AND 3 union select * from v1; 1611 1612create or replace view v1 as select 2 >= 3 && 3, 2 >= (3 && 3), (2 >= 3) && 3; 1613Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1614select 2 >= 3 && 3, 2 >= (3 && 3), (2 >= 3) && 3 union select * from v1; 1615 1616create or replace view v1 as select 2 >= 3 = 3, 2 >= (3 = 3), (2 >= 3) = 3; 1617Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1618select 2 >= 3 = 3, 2 >= (3 = 3), (2 >= 3) = 3 union select * from v1; 1619 1620create or replace view v1 as select 2 >= 3 <=> 3, 2 >= (3 <=> 3), (2 >= 3) <=> 3; 1621Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1622select 2 >= 3 <=> 3, 2 >= (3 <=> 3), (2 >= 3) <=> 3 union select * from v1; 1623 1624create or replace view v1 as select 2 >= 3 >= 3, 2 >= (3 >= 3), (2 >= 3) >= 3; 1625Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1626select 2 >= 3 >= 3, 2 >= (3 >= 3), (2 >= 3) >= 3 union select * from v1; 1627 1628create or replace view v1 as select 0 >= 3 <= 3, 0 >= (3 <= 3), (0 >= 3) <= 3; 1629Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1630select 0 >= 3 <= 3, 0 >= (3 <= 3), (0 >= 3) <= 3 union select * from v1; 1631 1632create or replace view v1 as select 0 >= 2 < 3, 0 >= (2 < 3), (0 >= 2) < 3; 1633Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1634select 0 >= 2 < 3, 0 >= (2 < 3), (0 >= 2) < 3 union select * from v1; 1635 1636create or replace view v1 as select 2 >= 3 <> 0, 2 >= (3 <> 0), (2 >= 3) <> 0; 1637Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1638select 2 >= 3 <> 0, 2 >= (3 <> 0), (2 >= 3) <> 0 union select * from v1; 1639 1640create or replace view v1 as select 2 >= 3 > 3, 2 >= (3 > 3), (2 >= 3) > 3; 1641Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1642select 2 >= 3 > 3, 2 >= (3 > 3), (2 >= 3) > 3 union select * from v1; 1643 1644create or replace view v1 as select 2 >= 3 != 0, 2 >= (3 != 0), (2 >= 3) != 0; 1645Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1646select 2 >= 3 != 0, 2 >= (3 != 0), (2 >= 3) != 0 union select * from v1; 1647 1648create or replace view v1 as select 2 >= 3 LIKE 3, 2 >= (3 LIKE 3), (2 >= 3) LIKE 3; 1649Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1650select 2 >= 3 LIKE 3, 2 >= (3 LIKE 3), (2 >= 3) LIKE 3 union select * from v1; 1651 1652create or replace view v1 as select 2 >= 3 REGEXP 3, 2 >= (3 REGEXP 3), (2 >= 3) REGEXP 3; 1653Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1654select 2 >= 3 REGEXP 3, 2 >= (3 REGEXP 3), (2 >= 3) REGEXP 3 union select * from v1; 1655 1656create or replace view v1 as select 2 >= 3 | 3, 2 >= (3 | 3), (2 >= 3) | 3; 1657Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1658select 2 >= 3 | 3, 2 >= (3 | 3), (2 >= 3) | 3 union select * from v1; 1659 1660create or replace view v1 as select 2 >= 3 & 1, 2 >= (3 & 1), (2 >= 3) & 1; 1661Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1662select 2 >= 3 & 1, 2 >= (3 & 1), (2 >= 3) & 1 union select * from v1; 1663 1664create or replace view v1 as select 3 >= 3 << 3, 3 >= (3 << 3), (3 >= 3) << 3; 1665Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1666select 3 >= 3 << 3, 3 >= (3 << 3), (3 >= 3) << 3 union select * from v1; 1667 1668create or replace view v1 as select 2 >= 3 >> 3, 2 >= (3 >> 3), (2 >= 3) >> 3; 1669Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1670select 2 >= 3 >> 3, 2 >= (3 >> 3), (2 >= 3) >> 3 union select * from v1; 1671 1672create or replace view v1 as select 2 >= '2000-01-01' +INTERVAL 1 DAY, 2 >= ('2000-01-01' +INTERVAL 1 DAY), (2 >= '2000-01-01') +INTERVAL 1 DAY; 1673Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1674select 2 >= '2000-01-01' +INTERVAL 1 DAY, 2 >= ('2000-01-01' +INTERVAL 1 DAY), (2 >= '2000-01-01') +INTERVAL 1 DAY union select * from v1; 1675 1676create or replace view v1 as select 2 >= 3 + 3, 2 >= (3 + 3), (2 >= 3) + 3; 1677Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1678select 2 >= 3 + 3, 2 >= (3 + 3), (2 >= 3) + 3 union select * from v1; 1679 1680create or replace view v1 as select 2 >= 3 - 3, 2 >= (3 - 3), (2 >= 3) - 3; 1681Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1682select 2 >= 3 - 3, 2 >= (3 - 3), (2 >= 3) - 3 union select * from v1; 1683 1684create or replace view v1 as select 3 >= 3 * 3, 3 >= (3 * 3), (3 >= 3) * 3; 1685Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1686select 3 >= 3 * 3, 3 >= (3 * 3), (3 >= 3) * 3 union select * from v1; 1687 1688create or replace view v1 as select 2 >= 3 / 3, 2 >= (3 / 3), (2 >= 3) / 3; 1689Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1690select 2 >= 3 / 3, 2 >= (3 / 3), (2 >= 3) / 3 union select * from v1; 1691 1692create or replace view v1 as select 2 >= 3 DIV 3, 2 >= (3 DIV 3), (2 >= 3) DIV 3; 1693Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1694select 2 >= 3 DIV 3, 2 >= (3 DIV 3), (2 >= 3) DIV 3 union select * from v1; 1695 1696create or replace view v1 as select 2 >= 3 MOD 3, 2 >= (3 MOD 3), (2 >= 3) MOD 3; 1697Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1698select 2 >= 3 MOD 3, 2 >= (3 MOD 3), (2 >= 3) MOD 3 union select * from v1; 1699 1700create or replace view v1 as select 2 >= 3 % 3, 2 >= (3 % 3), (2 >= 3) % 3; 1701Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1702select 2 >= 3 % 3, 2 >= (3 % 3), (2 >= 3) % 3 union select * from v1; 1703 1704create or replace view v1 as select 2 >= 3 ^ 3, 2 >= (3 ^ 3), (2 >= 3) ^ 3; 1705Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1706select 2 >= 3 ^ 3, 2 >= (3 ^ 3), (2 >= 3) ^ 3 union select * from v1; 1707 1708create or replace view v1 as select 2 >= 3 BETWEEN 1 AND 3, 2 >= (3 BETWEEN 1 AND 3), (2 >= 3) BETWEEN 1 AND 3; 1709Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1710select 2 >= 3 BETWEEN 1 AND 3, 2 >= (3 BETWEEN 1 AND 3), (2 >= 3) BETWEEN 1 AND 3 union select * from v1; 1711 1712create or replace view v1 as select 2 <= 1 IS FALSE, 2 <= (1 IS FALSE), (2 <= 1) IS FALSE; 1713Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1714select 2 <= 1 IS FALSE, 2 <= (1 IS FALSE), (2 <= 1) IS FALSE union select * from v1; 1715 1716create or replace view v1 as select charset(2 <= 3 COLLATE latin1_bin), charset(2 <= (3 COLLATE latin1_bin)), charset((2 <= 3) COLLATE latin1_bin); 1717Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1718select charset(2 <= 3 COLLATE latin1_bin), charset(2 <= (3 COLLATE latin1_bin)), charset((2 <= 3) COLLATE latin1_bin) union select * from v1; 1719 1720create or replace view v1 as select 2 <= 3 IN (0,1), 2 <= (3 IN (0,1)), (2 <= 3) IN (0,1); 1721Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1722select 2 <= 3 IN (0,1), 2 <= (3 IN (0,1)), (2 <= 3) IN (0,1) union select * from v1; 1723 1724create or replace view v1 as select 2 <= 3 OR 3, 2 <= (3 OR 3), (2 <= 3) OR 3; 1725Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1726select 2 <= 3 OR 3, 2 <= (3 OR 3), (2 <= 3) OR 3 union select * from v1; 1727 1728create or replace view v1 as select 2 <= 3 || 3, 2 <= (3 || 3), (2 <= 3) || 3; 1729Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1730select 2 <= 3 || 3, 2 <= (3 || 3), (2 <= 3) || 3 union select * from v1; 1731 1732create or replace view v1 as select 2 <= 1 XOR 1, 2 <= (1 XOR 1), (2 <= 1) XOR 1; 1733Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1734select 2 <= 1 XOR 1, 2 <= (1 XOR 1), (2 <= 1) XOR 1 union select * from v1; 1735 1736create or replace view v1 as select 2 <= 3 AND 3, 2 <= (3 AND 3), (2 <= 3) AND 3; 1737Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1738select 2 <= 3 AND 3, 2 <= (3 AND 3), (2 <= 3) AND 3 union select * from v1; 1739 1740create or replace view v1 as select 2 <= 3 && 3, 2 <= (3 && 3), (2 <= 3) && 3; 1741Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1742select 2 <= 3 && 3, 2 <= (3 && 3), (2 <= 3) && 3 union select * from v1; 1743 1744create or replace view v1 as select 2 <= 0 = 0, 2 <= (0 = 0), (2 <= 0) = 0; 1745Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1746select 2 <= 0 = 0, 2 <= (0 = 0), (2 <= 0) = 0 union select * from v1; 1747 1748create or replace view v1 as select 2 <= 0 <=> 0, 2 <= (0 <=> 0), (2 <= 0) <=> 0; 1749Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1750select 2 <= 0 <=> 0, 2 <= (0 <=> 0), (2 <= 0) <=> 0 union select * from v1; 1751 1752create or replace view v1 as select 2 <= 0 >= 0, 2 <= (0 >= 0), (2 <= 0) >= 0; 1753Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1754select 2 <= 0 >= 0, 2 <= (0 >= 0), (2 <= 0) >= 0 union select * from v1; 1755 1756create or replace view v1 as select 2 <= 3 <= 3, 2 <= (3 <= 3), (2 <= 3) <= 3; 1757Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1758select 2 <= 3 <= 3, 2 <= (3 <= 3), (2 <= 3) <= 3 union select * from v1; 1759 1760create or replace view v1 as select 2 <= 3 < 3, 2 <= (3 < 3), (2 <= 3) < 3; 1761Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1762select 2 <= 3 < 3, 2 <= (3 < 3), (2 <= 3) < 3 union select * from v1; 1763 1764create or replace view v1 as select 2 <= 3 <> 3, 2 <= (3 <> 3), (2 <= 3) <> 3; 1765Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1766select 2 <= 3 <> 3, 2 <= (3 <> 3), (2 <= 3) <> 3 union select * from v1; 1767 1768create or replace view v1 as select 2 <= 3 > 0, 2 <= (3 > 0), (2 <= 3) > 0; 1769Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1770select 2 <= 3 > 0, 2 <= (3 > 0), (2 <= 3) > 0 union select * from v1; 1771 1772create or replace view v1 as select 2 <= 3 != 3, 2 <= (3 != 3), (2 <= 3) != 3; 1773Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1774select 2 <= 3 != 3, 2 <= (3 != 3), (2 <= 3) != 3 union select * from v1; 1775 1776create or replace view v1 as select 2 <= 0 LIKE 0, 2 <= (0 LIKE 0), (2 <= 0) LIKE 0; 1777Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1778select 2 <= 0 LIKE 0, 2 <= (0 LIKE 0), (2 <= 0) LIKE 0 union select * from v1; 1779 1780create or replace view v1 as select 2 <= 0 REGEXP 0, 2 <= (0 REGEXP 0), (2 <= 0) REGEXP 0; 1781Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1782select 2 <= 0 REGEXP 0, 2 <= (0 REGEXP 0), (2 <= 0) REGEXP 0 union select * from v1; 1783 1784create or replace view v1 as select 2 <= 3 | 3, 2 <= (3 | 3), (2 <= 3) | 3; 1785Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1786select 2 <= 3 | 3, 2 <= (3 | 3), (2 <= 3) | 3 union select * from v1; 1787 1788create or replace view v1 as select 2 <= 3 & 2, 2 <= (3 & 2), (2 <= 3) & 2; 1789Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1790select 2 <= 3 & 2, 2 <= (3 & 2), (2 <= 3) & 2 union select * from v1; 1791 1792create or replace view v1 as select 2 <= 3 << 3, 2 <= (3 << 3), (2 <= 3) << 3; 1793Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1794select 2 <= 3 << 3, 2 <= (3 << 3), (2 <= 3) << 3 union select * from v1; 1795 1796create or replace view v1 as select 0 <= 3 >> 1, 0 <= (3 >> 1), (0 <= 3) >> 1; 1797Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1798select 0 <= 3 >> 1, 0 <= (3 >> 1), (0 <= 3) >> 1 union select * from v1; 1799 1800create or replace view v1 as select 2 <= '2000-01-01' +INTERVAL 1 DAY, 2 <= ('2000-01-01' +INTERVAL 1 DAY), (2 <= '2000-01-01') +INTERVAL 1 DAY; 1801Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1802select 2 <= '2000-01-01' +INTERVAL 1 DAY, 2 <= ('2000-01-01' +INTERVAL 1 DAY), (2 <= '2000-01-01') +INTERVAL 1 DAY union select * from v1; 1803 1804create or replace view v1 as select 2 <= 3 + 3, 2 <= (3 + 3), (2 <= 3) + 3; 1805Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1806select 2 <= 3 + 3, 2 <= (3 + 3), (2 <= 3) + 3 union select * from v1; 1807 1808create or replace view v1 as select 2 <= 3 - 3, 2 <= (3 - 3), (2 <= 3) - 3; 1809Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1810select 2 <= 3 - 3, 2 <= (3 - 3), (2 <= 3) - 3 union select * from v1; 1811 1812create or replace view v1 as select 2 <= 3 * 3, 2 <= (3 * 3), (2 <= 3) * 3; 1813Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1814select 2 <= 3 * 3, 2 <= (3 * 3), (2 <= 3) * 3 union select * from v1; 1815 1816create or replace view v1 as select 2 <= 3 / 3, 2 <= (3 / 3), (2 <= 3) / 3; 1817Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1818select 2 <= 3 / 3, 2 <= (3 / 3), (2 <= 3) / 3 union select * from v1; 1819 1820create or replace view v1 as select 2 <= 9 DIV 3, 2 <= (9 DIV 3), (2 <= 9) DIV 3; 1821Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1822select 2 <= 9 DIV 3, 2 <= (9 DIV 3), (2 <= 9) DIV 3 union select * from v1; 1823 1824create or replace view v1 as select 2 <= 3 MOD 3, 2 <= (3 MOD 3), (2 <= 3) MOD 3; 1825Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1826select 2 <= 3 MOD 3, 2 <= (3 MOD 3), (2 <= 3) MOD 3 union select * from v1; 1827 1828create or replace view v1 as select 2 <= 3 % 3, 2 <= (3 % 3), (2 <= 3) % 3; 1829Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1830select 2 <= 3 % 3, 2 <= (3 % 3), (2 <= 3) % 3 union select * from v1; 1831 1832create or replace view v1 as select 2 <= 3 ^ 3, 2 <= (3 ^ 3), (2 <= 3) ^ 3; 1833Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1834select 2 <= 3 ^ 3, 2 <= (3 ^ 3), (2 <= 3) ^ 3 union select * from v1; 1835 1836create or replace view v1 as select 2 <= 3 BETWEEN 1 AND 3, 2 <= (3 BETWEEN 1 AND 3), (2 <= 3) BETWEEN 1 AND 3; 1837Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1838select 2 <= 3 BETWEEN 1 AND 3, 2 <= (3 BETWEEN 1 AND 3), (2 <= 3) BETWEEN 1 AND 3 union select * from v1; 1839 1840create or replace view v1 as select 2 < 1 IS FALSE, 2 < (1 IS FALSE), (2 < 1) IS FALSE; 1841Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1842select 2 < 1 IS FALSE, 2 < (1 IS FALSE), (2 < 1) IS FALSE union select * from v1; 1843 1844create or replace view v1 as select charset(2 < 3 COLLATE latin1_bin), charset(2 < (3 COLLATE latin1_bin)), charset((2 < 3) COLLATE latin1_bin); 1845Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1846select charset(2 < 3 COLLATE latin1_bin), charset(2 < (3 COLLATE latin1_bin)), charset((2 < 3) COLLATE latin1_bin) union select * from v1; 1847 1848create or replace view v1 as select 2 < 3 IN (0,1), 2 < (3 IN (0,1)), (2 < 3) IN (0,1); 1849Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1850select 2 < 3 IN (0,1), 2 < (3 IN (0,1)), (2 < 3) IN (0,1) union select * from v1; 1851 1852create or replace view v1 as select 2 < 3 OR 3, 2 < (3 OR 3), (2 < 3) OR 3; 1853Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1854select 2 < 3 OR 3, 2 < (3 OR 3), (2 < 3) OR 3 union select * from v1; 1855 1856create or replace view v1 as select 2 < 3 || 3, 2 < (3 || 3), (2 < 3) || 3; 1857Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1858select 2 < 3 || 3, 2 < (3 || 3), (2 < 3) || 3 union select * from v1; 1859 1860create or replace view v1 as select 2 < 3 XOR 0, 2 < (3 XOR 0), (2 < 3) XOR 0; 1861Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1862select 2 < 3 XOR 0, 2 < (3 XOR 0), (2 < 3) XOR 0 union select * from v1; 1863 1864create or replace view v1 as select 2 < 3 AND 3, 2 < (3 AND 3), (2 < 3) AND 3; 1865Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1866select 2 < 3 AND 3, 2 < (3 AND 3), (2 < 3) AND 3 union select * from v1; 1867 1868create or replace view v1 as select 2 < 3 && 3, 2 < (3 && 3), (2 < 3) && 3; 1869Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1870select 2 < 3 && 3, 2 < (3 && 3), (2 < 3) && 3 union select * from v1; 1871 1872create or replace view v1 as select 2 < 3 = 1, 2 < (3 = 1), (2 < 3) = 1; 1873Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1874select 2 < 3 = 1, 2 < (3 = 1), (2 < 3) = 1 union select * from v1; 1875 1876create or replace view v1 as select 2 < 3 <=> 1, 2 < (3 <=> 1), (2 < 3) <=> 1; 1877Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1878select 2 < 3 <=> 1, 2 < (3 <=> 1), (2 < 3) <=> 1 union select * from v1; 1879 1880create or replace view v1 as select 2 < 3 >= 1, 2 < (3 >= 1), (2 < 3) >= 1; 1881Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1882select 2 < 3 >= 1, 2 < (3 >= 1), (2 < 3) >= 1 union select * from v1; 1883 1884create or replace view v1 as select 2 < 3 <= 3, 2 < (3 <= 3), (2 < 3) <= 3; 1885Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1886select 2 < 3 <= 3, 2 < (3 <= 3), (2 < 3) <= 3 union select * from v1; 1887 1888create or replace view v1 as select 2 < 3 < 3, 2 < (3 < 3), (2 < 3) < 3; 1889Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1890select 2 < 3 < 3, 2 < (3 < 3), (2 < 3) < 3 union select * from v1; 1891 1892create or replace view v1 as select 2 < 3 <> 3, 2 < (3 <> 3), (2 < 3) <> 3; 1893Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1894select 2 < 3 <> 3, 2 < (3 <> 3), (2 < 3) <> 3 union select * from v1; 1895 1896create or replace view v1 as select 2 < 3 > 0, 2 < (3 > 0), (2 < 3) > 0; 1897Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1898select 2 < 3 > 0, 2 < (3 > 0), (2 < 3) > 0 union select * from v1; 1899 1900create or replace view v1 as select 2 < 3 != 3, 2 < (3 != 3), (2 < 3) != 3; 1901Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1902select 2 < 3 != 3, 2 < (3 != 3), (2 < 3) != 3 union select * from v1; 1903 1904create or replace view v1 as select 2 < 3 LIKE 1, 2 < (3 LIKE 1), (2 < 3) LIKE 1; 1905Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1906select 2 < 3 LIKE 1, 2 < (3 LIKE 1), (2 < 3) LIKE 1 union select * from v1; 1907 1908create or replace view v1 as select 2 < 3 REGEXP 1, 2 < (3 REGEXP 1), (2 < 3) REGEXP 1; 1909Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1910select 2 < 3 REGEXP 1, 2 < (3 REGEXP 1), (2 < 3) REGEXP 1 union select * from v1; 1911 1912create or replace view v1 as select 2 < 3 | 3, 2 < (3 | 3), (2 < 3) | 3; 1913Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1914select 2 < 3 | 3, 2 < (3 | 3), (2 < 3) | 3 union select * from v1; 1915 1916create or replace view v1 as select 2 < 4 & 4, 2 < (4 & 4), (2 < 4) & 4; 1917Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1918select 2 < 4 & 4, 2 < (4 & 4), (2 < 4) & 4 union select * from v1; 1919 1920create or replace view v1 as select 2 < 3 << 3, 2 < (3 << 3), (2 < 3) << 3; 1921Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1922select 2 < 3 << 3, 2 < (3 << 3), (2 < 3) << 3 union select * from v1; 1923 1924create or replace view v1 as select 0 < 3 >> 1, 0 < (3 >> 1), (0 < 3) >> 1; 1925Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1926select 0 < 3 >> 1, 0 < (3 >> 1), (0 < 3) >> 1 union select * from v1; 1927 1928create or replace view v1 as select 2 < '2000-01-01' +INTERVAL 1 DAY, 2 < ('2000-01-01' +INTERVAL 1 DAY), (2 < '2000-01-01') +INTERVAL 1 DAY; 1929Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1930select 2 < '2000-01-01' +INTERVAL 1 DAY, 2 < ('2000-01-01' +INTERVAL 1 DAY), (2 < '2000-01-01') +INTERVAL 1 DAY union select * from v1; 1931 1932create or replace view v1 as select 2 < 3 + 3, 2 < (3 + 3), (2 < 3) + 3; 1933Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1934select 2 < 3 + 3, 2 < (3 + 3), (2 < 3) + 3 union select * from v1; 1935 1936create or replace view v1 as select 2 < 3 - 3, 2 < (3 - 3), (2 < 3) - 3; 1937Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1938select 2 < 3 - 3, 2 < (3 - 3), (2 < 3) - 3 union select * from v1; 1939 1940create or replace view v1 as select 2 < 3 * 3, 2 < (3 * 3), (2 < 3) * 3; 1941Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1942select 2 < 3 * 3, 2 < (3 * 3), (2 < 3) * 3 union select * from v1; 1943 1944create or replace view v1 as select 2 < 3 / 3, 2 < (3 / 3), (2 < 3) / 3; 1945Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1946select 2 < 3 / 3, 2 < (3 / 3), (2 < 3) / 3 union select * from v1; 1947 1948create or replace view v1 as select 2 < 9 DIV 3, 2 < (9 DIV 3), (2 < 9) DIV 3; 1949Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1950select 2 < 9 DIV 3, 2 < (9 DIV 3), (2 < 9) DIV 3 union select * from v1; 1951 1952create or replace view v1 as select 2 < 3 MOD 3, 2 < (3 MOD 3), (2 < 3) MOD 3; 1953Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1954select 2 < 3 MOD 3, 2 < (3 MOD 3), (2 < 3) MOD 3 union select * from v1; 1955 1956create or replace view v1 as select 2 < 3 % 3, 2 < (3 % 3), (2 < 3) % 3; 1957Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1958select 2 < 3 % 3, 2 < (3 % 3), (2 < 3) % 3 union select * from v1; 1959 1960create or replace view v1 as select 2 < 3 ^ 3, 2 < (3 ^ 3), (2 < 3) ^ 3; 1961Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1962select 2 < 3 ^ 3, 2 < (3 ^ 3), (2 < 3) ^ 3 union select * from v1; 1963 1964create or replace view v1 as select 2 < 3 BETWEEN 1 AND 3, 2 < (3 BETWEEN 1 AND 3), (2 < 3) BETWEEN 1 AND 3; 1965Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1966select 2 < 3 BETWEEN 1 AND 3, 2 < (3 BETWEEN 1 AND 3), (2 < 3) BETWEEN 1 AND 3 union select * from v1; 1967 1968create or replace view v1 as select 2 <> 3 IS FALSE, 2 <> (3 IS FALSE), (2 <> 3) IS FALSE; 1969Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1970select 2 <> 3 IS FALSE, 2 <> (3 IS FALSE), (2 <> 3) IS FALSE union select * from v1; 1971 1972create or replace view v1 as select charset(2 <> 3 COLLATE latin1_bin), charset(2 <> (3 COLLATE latin1_bin)), charset((2 <> 3) COLLATE latin1_bin); 1973Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1974select charset(2 <> 3 COLLATE latin1_bin), charset(2 <> (3 COLLATE latin1_bin)), charset((2 <> 3) COLLATE latin1_bin) union select * from v1; 1975 1976create or replace view v1 as select 2 <> 3 IN (0,0), 2 <> (3 IN (0,0)), (2 <> 3) IN (0,0); 1977Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1978select 2 <> 3 IN (0,0), 2 <> (3 IN (0,0)), (2 <> 3) IN (0,0) union select * from v1; 1979 1980create or replace view v1 as select 1 <> 3 OR 3, 1 <> (3 OR 3), (1 <> 3) OR 3; 1981Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1982select 1 <> 3 OR 3, 1 <> (3 OR 3), (1 <> 3) OR 3 union select * from v1; 1983 1984create or replace view v1 as select 1 <> 3 || 3, 1 <> (3 || 3), (1 <> 3) || 3; 1985Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1986select 1 <> 3 || 3, 1 <> (3 || 3), (1 <> 3) || 3 union select * from v1; 1987 1988create or replace view v1 as select 2 <> 3 XOR 3, 2 <> (3 XOR 3), (2 <> 3) XOR 3; 1989Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1990select 2 <> 3 XOR 3, 2 <> (3 XOR 3), (2 <> 3) XOR 3 union select * from v1; 1991 1992create or replace view v1 as select 3 <> 3 AND 3, 3 <> (3 AND 3), (3 <> 3) AND 3; 1993Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1994select 3 <> 3 AND 3, 3 <> (3 AND 3), (3 <> 3) AND 3 union select * from v1; 1995 1996create or replace view v1 as select 3 <> 3 && 3, 3 <> (3 && 3), (3 <> 3) && 3; 1997Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 1998select 3 <> 3 && 3, 3 <> (3 && 3), (3 <> 3) && 3 union select * from v1; 1999 2000create or replace view v1 as select 2 <> 3 = 3, 2 <> (3 = 3), (2 <> 3) = 3; 2001Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2002select 2 <> 3 = 3, 2 <> (3 = 3), (2 <> 3) = 3 union select * from v1; 2003 2004create or replace view v1 as select 2 <> 3 <=> 3, 2 <> (3 <=> 3), (2 <> 3) <=> 3; 2005Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2006select 2 <> 3 <=> 3, 2 <> (3 <=> 3), (2 <> 3) <=> 3 union select * from v1; 2007 2008create or replace view v1 as select 2 <> 3 >= 3, 2 <> (3 >= 3), (2 <> 3) >= 3; 2009Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2010select 2 <> 3 >= 3, 2 <> (3 >= 3), (2 <> 3) >= 3 union select * from v1; 2011 2012create or replace view v1 as select 1 <> 3 <= 3, 1 <> (3 <= 3), (1 <> 3) <= 3; 2013Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2014select 1 <> 3 <= 3, 1 <> (3 <= 3), (1 <> 3) <= 3 union select * from v1; 2015 2016create or replace view v1 as select 0 <> 3 < 3, 0 <> (3 < 3), (0 <> 3) < 3; 2017Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2018select 0 <> 3 < 3, 0 <> (3 < 3), (0 <> 3) < 3 union select * from v1; 2019 2020create or replace view v1 as select 0 <> 3 <> 3, 0 <> (3 <> 3), (0 <> 3) <> 3; 2021Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2022select 0 <> 3 <> 3, 0 <> (3 <> 3), (0 <> 3) <> 3 union select * from v1; 2023 2024create or replace view v1 as select 2 <> 3 > 3, 2 <> (3 > 3), (2 <> 3) > 3; 2025Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2026select 2 <> 3 > 3, 2 <> (3 > 3), (2 <> 3) > 3 union select * from v1; 2027 2028create or replace view v1 as select 0 <> 3 != 3, 0 <> (3 != 3), (0 <> 3) != 3; 2029Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2030select 0 <> 3 != 3, 0 <> (3 != 3), (0 <> 3) != 3 union select * from v1; 2031 2032create or replace view v1 as select 2 <> 3 LIKE 3, 2 <> (3 LIKE 3), (2 <> 3) LIKE 3; 2033Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2034select 2 <> 3 LIKE 3, 2 <> (3 LIKE 3), (2 <> 3) LIKE 3 union select * from v1; 2035 2036create or replace view v1 as select 2 <> 3 REGEXP 3, 2 <> (3 REGEXP 3), (2 <> 3) REGEXP 3; 2037Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2038select 2 <> 3 REGEXP 3, 2 <> (3 REGEXP 3), (2 <> 3) REGEXP 3 union select * from v1; 2039 2040create or replace view v1 as select 2 <> 3 | 3, 2 <> (3 | 3), (2 <> 3) | 3; 2041Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2042select 2 <> 3 | 3, 2 <> (3 | 3), (2 <> 3) | 3 union select * from v1; 2043 2044create or replace view v1 as select 2 <> 4 & 4, 2 <> (4 & 4), (2 <> 4) & 4; 2045Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2046select 2 <> 4 & 4, 2 <> (4 & 4), (2 <> 4) & 4 union select * from v1; 2047 2048create or replace view v1 as select 2 <> 3 << 3, 2 <> (3 << 3), (2 <> 3) << 3; 2049Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2050select 2 <> 3 << 3, 2 <> (3 << 3), (2 <> 3) << 3 union select * from v1; 2051 2052create or replace view v1 as select 2 <> 3 >> 3, 2 <> (3 >> 3), (2 <> 3) >> 3; 2053Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2054select 2 <> 3 >> 3, 2 <> (3 >> 3), (2 <> 3) >> 3 union select * from v1; 2055 2056create or replace view v1 as select 2 <> '2000-01-01' +INTERVAL 1 DAY, 2 <> ('2000-01-01' +INTERVAL 1 DAY), (2 <> '2000-01-01') +INTERVAL 1 DAY; 2057Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2058select 2 <> '2000-01-01' +INTERVAL 1 DAY, 2 <> ('2000-01-01' +INTERVAL 1 DAY), (2 <> '2000-01-01') +INTERVAL 1 DAY union select * from v1; 2059 2060create or replace view v1 as select 2 <> 3 + 3, 2 <> (3 + 3), (2 <> 3) + 3; 2061Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2062select 2 <> 3 + 3, 2 <> (3 + 3), (2 <> 3) + 3 union select * from v1; 2063 2064create or replace view v1 as select 2 <> 3 - 3, 2 <> (3 - 3), (2 <> 3) - 3; 2065Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2066select 2 <> 3 - 3, 2 <> (3 - 3), (2 <> 3) - 3 union select * from v1; 2067 2068create or replace view v1 as select 2 <> 3 * 3, 2 <> (3 * 3), (2 <> 3) * 3; 2069Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2070select 2 <> 3 * 3, 2 <> (3 * 3), (2 <> 3) * 3 union select * from v1; 2071 2072create or replace view v1 as select 2 <> 3 / 3, 2 <> (3 / 3), (2 <> 3) / 3; 2073Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2074select 2 <> 3 / 3, 2 <> (3 / 3), (2 <> 3) / 3 union select * from v1; 2075 2076create or replace view v1 as select 2 <> 3 DIV 3, 2 <> (3 DIV 3), (2 <> 3) DIV 3; 2077Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2078select 2 <> 3 DIV 3, 2 <> (3 DIV 3), (2 <> 3) DIV 3 union select * from v1; 2079 2080create or replace view v1 as select 3 <> 3 MOD 3, 3 <> (3 MOD 3), (3 <> 3) MOD 3; 2081Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2082select 3 <> 3 MOD 3, 3 <> (3 MOD 3), (3 <> 3) MOD 3 union select * from v1; 2083 2084create or replace view v1 as select 3 <> 3 % 3, 3 <> (3 % 3), (3 <> 3) % 3; 2085Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2086select 3 <> 3 % 3, 3 <> (3 % 3), (3 <> 3) % 3 union select * from v1; 2087 2088create or replace view v1 as select 2 <> 3 ^ 3, 2 <> (3 ^ 3), (2 <> 3) ^ 3; 2089Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2090select 2 <> 3 ^ 3, 2 <> (3 ^ 3), (2 <> 3) ^ 3 union select * from v1; 2091 2092create or replace view v1 as select 2 <> 3 BETWEEN 2 AND 3, 2 <> (3 BETWEEN 2 AND 3), (2 <> 3) BETWEEN 2 AND 3; 2093Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2094select 2 <> 3 BETWEEN 2 AND 3, 2 <> (3 BETWEEN 2 AND 3), (2 <> 3) BETWEEN 2 AND 3 union select * from v1; 2095 2096create or replace view v1 as select 2 > 0 IS FALSE, 2 > (0 IS FALSE), (2 > 0) IS FALSE; 2097Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2098select 2 > 0 IS FALSE, 2 > (0 IS FALSE), (2 > 0) IS FALSE union select * from v1; 2099 2100create or replace view v1 as select charset(2 > 3 COLLATE latin1_bin), charset(2 > (3 COLLATE latin1_bin)), charset((2 > 3) COLLATE latin1_bin); 2101Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2102select charset(2 > 3 COLLATE latin1_bin), charset(2 > (3 COLLATE latin1_bin)), charset((2 > 3) COLLATE latin1_bin) union select * from v1; 2103 2104create or replace view v1 as select 2 > 3 IN (1,1), 2 > (3 IN (1,1)), (2 > 3) IN (1,1); 2105Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2106select 2 > 3 IN (1,1), 2 > (3 IN (1,1)), (2 > 3) IN (1,1) union select * from v1; 2107 2108create or replace view v1 as select 0 > 3 OR 3, 0 > (3 OR 3), (0 > 3) OR 3; 2109Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2110select 0 > 3 OR 3, 0 > (3 OR 3), (0 > 3) OR 3 union select * from v1; 2111 2112create or replace view v1 as select 0 > 3 || 3, 0 > (3 || 3), (0 > 3) || 3; 2113Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2114select 0 > 3 || 3, 0 > (3 || 3), (0 > 3) || 3 union select * from v1; 2115 2116create or replace view v1 as select 4 > 3 XOR 3, 4 > (3 XOR 3), (4 > 3) XOR 3; 2117Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2118select 4 > 3 XOR 3, 4 > (3 XOR 3), (4 > 3) XOR 3 union select * from v1; 2119 2120create or replace view v1 as select 2 > 3 AND 3, 2 > (3 AND 3), (2 > 3) AND 3; 2121Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2122select 2 > 3 AND 3, 2 > (3 AND 3), (2 > 3) AND 3 union select * from v1; 2123 2124create or replace view v1 as select 2 > 3 && 3, 2 > (3 && 3), (2 > 3) && 3; 2125Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2126select 2 > 3 && 3, 2 > (3 && 3), (2 > 3) && 3 union select * from v1; 2127 2128create or replace view v1 as select 2 > 3 = 3, 2 > (3 = 3), (2 > 3) = 3; 2129Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2130select 2 > 3 = 3, 2 > (3 = 3), (2 > 3) = 3 union select * from v1; 2131 2132create or replace view v1 as select 2 > 3 <=> 3, 2 > (3 <=> 3), (2 > 3) <=> 3; 2133Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2134select 2 > 3 <=> 3, 2 > (3 <=> 3), (2 > 3) <=> 3 union select * from v1; 2135 2136create or replace view v1 as select 2 > 3 >= 3, 2 > (3 >= 3), (2 > 3) >= 3; 2137Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2138select 2 > 3 >= 3, 2 > (3 >= 3), (2 > 3) >= 3 union select * from v1; 2139 2140create or replace view v1 as select 2 > 0 <= 0, 2 > (0 <= 0), (2 > 0) <= 0; 2141Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2142select 2 > 0 <= 0, 2 > (0 <= 0), (2 > 0) <= 0 union select * from v1; 2143 2144create or replace view v1 as select 2 > 0 < 0, 2 > (0 < 0), (2 > 0) < 0; 2145Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2146select 2 > 0 < 0, 2 > (0 < 0), (2 > 0) < 0 union select * from v1; 2147 2148create or replace view v1 as select 2 > 1 <> 1, 2 > (1 <> 1), (2 > 1) <> 1; 2149Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2150select 2 > 1 <> 1, 2 > (1 <> 1), (2 > 1) <> 1 union select * from v1; 2151 2152create or replace view v1 as select 2 > 3 > 3, 2 > (3 > 3), (2 > 3) > 3; 2153Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2154select 2 > 3 > 3, 2 > (3 > 3), (2 > 3) > 3 union select * from v1; 2155 2156create or replace view v1 as select 2 > 1 != 1, 2 > (1 != 1), (2 > 1) != 1; 2157Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2158select 2 > 1 != 1, 2 > (1 != 1), (2 > 1) != 1 union select * from v1; 2159 2160create or replace view v1 as select 2 > 3 LIKE 3, 2 > (3 LIKE 3), (2 > 3) LIKE 3; 2161Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2162select 2 > 3 LIKE 3, 2 > (3 LIKE 3), (2 > 3) LIKE 3 union select * from v1; 2163 2164create or replace view v1 as select 2 > 3 REGEXP 3, 2 > (3 REGEXP 3), (2 > 3) REGEXP 3; 2165Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2166select 2 > 3 REGEXP 3, 2 > (3 REGEXP 3), (2 > 3) REGEXP 3 union select * from v1; 2167 2168create or replace view v1 as select 2 > 3 | 3, 2 > (3 | 3), (2 > 3) | 3; 2169Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2170select 2 > 3 | 3, 2 > (3 | 3), (2 > 3) | 3 union select * from v1; 2171 2172create or replace view v1 as select 4 > 2 & 2, 4 > (2 & 2), (4 > 2) & 2; 2173Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2174select 4 > 2 & 2, 4 > (2 & 2), (4 > 2) & 2 union select * from v1; 2175 2176create or replace view v1 as select 4 > 3 << 3, 4 > (3 << 3), (4 > 3) << 3; 2177Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2178select 4 > 3 << 3, 4 > (3 << 3), (4 > 3) << 3 union select * from v1; 2179 2180create or replace view v1 as select 2 > 3 >> 3, 2 > (3 >> 3), (2 > 3) >> 3; 2181Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2182select 2 > 3 >> 3, 2 > (3 >> 3), (2 > 3) >> 3 union select * from v1; 2183 2184create or replace view v1 as select 2 > '2000-01-01' +INTERVAL 1 DAY, 2 > ('2000-01-01' +INTERVAL 1 DAY), (2 > '2000-01-01') +INTERVAL 1 DAY; 2185Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2186select 2 > '2000-01-01' +INTERVAL 1 DAY, 2 > ('2000-01-01' +INTERVAL 1 DAY), (2 > '2000-01-01') +INTERVAL 1 DAY union select * from v1; 2187 2188create or replace view v1 as select 2 > 3 + 3, 2 > (3 + 3), (2 > 3) + 3; 2189Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2190select 2 > 3 + 3, 2 > (3 + 3), (2 > 3) + 3 union select * from v1; 2191 2192create or replace view v1 as select 2 > 3 - 3, 2 > (3 - 3), (2 > 3) - 3; 2193Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2194select 2 > 3 - 3, 2 > (3 - 3), (2 > 3) - 3 union select * from v1; 2195 2196create or replace view v1 as select 4 > 3 * 3, 4 > (3 * 3), (4 > 3) * 3; 2197Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2198select 4 > 3 * 3, 4 > (3 * 3), (4 > 3) * 3 union select * from v1; 2199 2200create or replace view v1 as select 2 > 3 / 3, 2 > (3 / 3), (2 > 3) / 3; 2201Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2202select 2 > 3 / 3, 2 > (3 / 3), (2 > 3) / 3 union select * from v1; 2203 2204create or replace view v1 as select 2 > 3 DIV 3, 2 > (3 DIV 3), (2 > 3) DIV 3; 2205Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2206select 2 > 3 DIV 3, 2 > (3 DIV 3), (2 > 3) DIV 3 union select * from v1; 2207 2208create or replace view v1 as select 2 > 3 MOD 3, 2 > (3 MOD 3), (2 > 3) MOD 3; 2209Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2210select 2 > 3 MOD 3, 2 > (3 MOD 3), (2 > 3) MOD 3 union select * from v1; 2211 2212create or replace view v1 as select 2 > 3 % 3, 2 > (3 % 3), (2 > 3) % 3; 2213Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2214select 2 > 3 % 3, 2 > (3 % 3), (2 > 3) % 3 union select * from v1; 2215 2216create or replace view v1 as select 2 > 3 ^ 3, 2 > (3 ^ 3), (2 > 3) ^ 3; 2217Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2218select 2 > 3 ^ 3, 2 > (3 ^ 3), (2 > 3) ^ 3 union select * from v1; 2219 2220create or replace view v1 as select 2 > 3 BETWEEN 1 AND 3, 2 > (3 BETWEEN 1 AND 3), (2 > 3) BETWEEN 1 AND 3; 2221Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2222select 2 > 3 BETWEEN 1 AND 3, 2 > (3 BETWEEN 1 AND 3), (2 > 3) BETWEEN 1 AND 3 union select * from v1; 2223 2224create or replace view v1 as select 2 != 3 IS FALSE, 2 != (3 IS FALSE), (2 != 3) IS FALSE; 2225Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2226select 2 != 3 IS FALSE, 2 != (3 IS FALSE), (2 != 3) IS FALSE union select * from v1; 2227 2228create or replace view v1 as select charset(2 != 3 COLLATE latin1_bin), charset(2 != (3 COLLATE latin1_bin)), charset((2 != 3) COLLATE latin1_bin); 2229Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2230select charset(2 != 3 COLLATE latin1_bin), charset(2 != (3 COLLATE latin1_bin)), charset((2 != 3) COLLATE latin1_bin) union select * from v1; 2231 2232create or replace view v1 as select 2 != 3 IN (0,0), 2 != (3 IN (0,0)), (2 != 3) IN (0,0); 2233Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2234select 2 != 3 IN (0,0), 2 != (3 IN (0,0)), (2 != 3) IN (0,0) union select * from v1; 2235 2236create or replace view v1 as select 1 != 3 OR 3, 1 != (3 OR 3), (1 != 3) OR 3; 2237Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2238select 1 != 3 OR 3, 1 != (3 OR 3), (1 != 3) OR 3 union select * from v1; 2239 2240create or replace view v1 as select 1 != 3 || 3, 1 != (3 || 3), (1 != 3) || 3; 2241Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2242select 1 != 3 || 3, 1 != (3 || 3), (1 != 3) || 3 union select * from v1; 2243 2244create or replace view v1 as select 2 != 3 XOR 3, 2 != (3 XOR 3), (2 != 3) XOR 3; 2245Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2246select 2 != 3 XOR 3, 2 != (3 XOR 3), (2 != 3) XOR 3 union select * from v1; 2247 2248create or replace view v1 as select 3 != 3 AND 3, 3 != (3 AND 3), (3 != 3) AND 3; 2249Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2250select 3 != 3 AND 3, 3 != (3 AND 3), (3 != 3) AND 3 union select * from v1; 2251 2252create or replace view v1 as select 3 != 3 && 3, 3 != (3 && 3), (3 != 3) && 3; 2253Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2254select 3 != 3 && 3, 3 != (3 && 3), (3 != 3) && 3 union select * from v1; 2255 2256create or replace view v1 as select 2 != 3 = 3, 2 != (3 = 3), (2 != 3) = 3; 2257Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2258select 2 != 3 = 3, 2 != (3 = 3), (2 != 3) = 3 union select * from v1; 2259 2260create or replace view v1 as select 2 != 3 <=> 3, 2 != (3 <=> 3), (2 != 3) <=> 3; 2261Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2262select 2 != 3 <=> 3, 2 != (3 <=> 3), (2 != 3) <=> 3 union select * from v1; 2263 2264create or replace view v1 as select 2 != 3 >= 3, 2 != (3 >= 3), (2 != 3) >= 3; 2265Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2266select 2 != 3 >= 3, 2 != (3 >= 3), (2 != 3) >= 3 union select * from v1; 2267 2268create or replace view v1 as select 1 != 3 <= 3, 1 != (3 <= 3), (1 != 3) <= 3; 2269Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2270select 1 != 3 <= 3, 1 != (3 <= 3), (1 != 3) <= 3 union select * from v1; 2271 2272create or replace view v1 as select 0 != 3 < 3, 0 != (3 < 3), (0 != 3) < 3; 2273Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2274select 0 != 3 < 3, 0 != (3 < 3), (0 != 3) < 3 union select * from v1; 2275 2276create or replace view v1 as select 0 != 3 <> 3, 0 != (3 <> 3), (0 != 3) <> 3; 2277Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2278select 0 != 3 <> 3, 0 != (3 <> 3), (0 != 3) <> 3 union select * from v1; 2279 2280create or replace view v1 as select 2 != 3 > 3, 2 != (3 > 3), (2 != 3) > 3; 2281Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2282select 2 != 3 > 3, 2 != (3 > 3), (2 != 3) > 3 union select * from v1; 2283 2284create or replace view v1 as select 0 != 3 != 3, 0 != (3 != 3), (0 != 3) != 3; 2285Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2286select 0 != 3 != 3, 0 != (3 != 3), (0 != 3) != 3 union select * from v1; 2287 2288create or replace view v1 as select 2 != 3 LIKE 3, 2 != (3 LIKE 3), (2 != 3) LIKE 3; 2289Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2290select 2 != 3 LIKE 3, 2 != (3 LIKE 3), (2 != 3) LIKE 3 union select * from v1; 2291 2292create or replace view v1 as select 2 != 3 REGEXP 3, 2 != (3 REGEXP 3), (2 != 3) REGEXP 3; 2293Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2294select 2 != 3 REGEXP 3, 2 != (3 REGEXP 3), (2 != 3) REGEXP 3 union select * from v1; 2295 2296create or replace view v1 as select 2 != 3 | 3, 2 != (3 | 3), (2 != 3) | 3; 2297Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2298select 2 != 3 | 3, 2 != (3 | 3), (2 != 3) | 3 union select * from v1; 2299 2300create or replace view v1 as select 2 != 4 & 4, 2 != (4 & 4), (2 != 4) & 4; 2301Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2302select 2 != 4 & 4, 2 != (4 & 4), (2 != 4) & 4 union select * from v1; 2303 2304create or replace view v1 as select 2 != 3 << 3, 2 != (3 << 3), (2 != 3) << 3; 2305Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2306select 2 != 3 << 3, 2 != (3 << 3), (2 != 3) << 3 union select * from v1; 2307 2308create or replace view v1 as select 2 != 3 >> 3, 2 != (3 >> 3), (2 != 3) >> 3; 2309Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2310select 2 != 3 >> 3, 2 != (3 >> 3), (2 != 3) >> 3 union select * from v1; 2311 2312create or replace view v1 as select 2 != '2000-01-01' +INTERVAL 1 DAY, 2 != ('2000-01-01' +INTERVAL 1 DAY), (2 != '2000-01-01') +INTERVAL 1 DAY; 2313Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2314select 2 != '2000-01-01' +INTERVAL 1 DAY, 2 != ('2000-01-01' +INTERVAL 1 DAY), (2 != '2000-01-01') +INTERVAL 1 DAY union select * from v1; 2315 2316create or replace view v1 as select 2 != 3 + 3, 2 != (3 + 3), (2 != 3) + 3; 2317Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2318select 2 != 3 + 3, 2 != (3 + 3), (2 != 3) + 3 union select * from v1; 2319 2320create or replace view v1 as select 2 != 3 - 3, 2 != (3 - 3), (2 != 3) - 3; 2321Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2322select 2 != 3 - 3, 2 != (3 - 3), (2 != 3) - 3 union select * from v1; 2323 2324create or replace view v1 as select 2 != 3 * 3, 2 != (3 * 3), (2 != 3) * 3; 2325Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2326select 2 != 3 * 3, 2 != (3 * 3), (2 != 3) * 3 union select * from v1; 2327 2328create or replace view v1 as select 2 != 3 / 3, 2 != (3 / 3), (2 != 3) / 3; 2329Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2330select 2 != 3 / 3, 2 != (3 / 3), (2 != 3) / 3 union select * from v1; 2331 2332create or replace view v1 as select 2 != 3 DIV 3, 2 != (3 DIV 3), (2 != 3) DIV 3; 2333Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2334select 2 != 3 DIV 3, 2 != (3 DIV 3), (2 != 3) DIV 3 union select * from v1; 2335 2336create or replace view v1 as select 3 != 3 MOD 3, 3 != (3 MOD 3), (3 != 3) MOD 3; 2337Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2338select 3 != 3 MOD 3, 3 != (3 MOD 3), (3 != 3) MOD 3 union select * from v1; 2339 2340create or replace view v1 as select 3 != 3 % 3, 3 != (3 % 3), (3 != 3) % 3; 2341Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2342select 3 != 3 % 3, 3 != (3 % 3), (3 != 3) % 3 union select * from v1; 2343 2344create or replace view v1 as select 2 != 3 ^ 3, 2 != (3 ^ 3), (2 != 3) ^ 3; 2345Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2346select 2 != 3 ^ 3, 2 != (3 ^ 3), (2 != 3) ^ 3 union select * from v1; 2347 2348create or replace view v1 as select 2 != 3 BETWEEN 2 AND 3, 2 != (3 BETWEEN 2 AND 3), (2 != 3) BETWEEN 2 AND 3; 2349Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2350select 2 != 3 BETWEEN 2 AND 3, 2 != (3 BETWEEN 2 AND 3), (2 != 3) BETWEEN 2 AND 3 union select * from v1; 2351 2352create or replace view v1 as select 2 LIKE 3 IS FALSE, 2 LIKE (3 IS FALSE), (2 LIKE 3) IS FALSE; 2353Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2354select 2 LIKE 3 IS FALSE, 2 LIKE (3 IS FALSE), (2 LIKE 3) IS FALSE union select * from v1; 2355 2356create or replace view v1 as select charset(2 LIKE 3 COLLATE latin1_bin), charset(2 LIKE (3 COLLATE latin1_bin)), charset((2 LIKE 3) COLLATE latin1_bin); 2357Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2358select charset(2 LIKE 3 COLLATE latin1_bin), charset(2 LIKE (3 COLLATE latin1_bin)), charset((2 LIKE 3) COLLATE latin1_bin) union select * from v1; 2359 2360create or replace view v1 as select 2 LIKE 3 IN (0,1), 2 LIKE (3 IN (0,1)), (2 LIKE 3) IN (0,1); 2361Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2362select 2 LIKE 3 IN (0,1), 2 LIKE (3 IN (0,1)), (2 LIKE 3) IN (0,1) union select * from v1; 2363 2364create or replace view v1 as select 2 LIKE 3 OR 3, 2 LIKE (3 OR 3), (2 LIKE 3) OR 3; 2365Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2366select 2 LIKE 3 OR 3, 2 LIKE (3 OR 3), (2 LIKE 3) OR 3 union select * from v1; 2367 2368create or replace view v1 as select 2 LIKE 3 || 3, 2 LIKE (3 || 3), (2 LIKE 3) || 3; 2369Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2370select 2 LIKE 3 || 3, 2 LIKE (3 || 3), (2 LIKE 3) || 3 union select * from v1; 2371 2372create or replace view v1 as select 2 LIKE 3 XOR 3, 2 LIKE (3 XOR 3), (2 LIKE 3) XOR 3; 2373Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2374select 2 LIKE 3 XOR 3, 2 LIKE (3 XOR 3), (2 LIKE 3) XOR 3 union select * from v1; 2375 2376create or replace view v1 as select 2 LIKE 2 AND 2, 2 LIKE (2 AND 2), (2 LIKE 2) AND 2; 2377Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2378select 2 LIKE 2 AND 2, 2 LIKE (2 AND 2), (2 LIKE 2) AND 2 union select * from v1; 2379 2380create or replace view v1 as select 2 LIKE 2 && 2, 2 LIKE (2 && 2), (2 LIKE 2) && 2; 2381Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2382select 2 LIKE 2 && 2, 2 LIKE (2 && 2), (2 LIKE 2) && 2 union select * from v1; 2383 2384create or replace view v1 as select 2 LIKE 2 = 1, 2 LIKE (2 = 1), (2 LIKE 2) = 1; 2385Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2386select 2 LIKE 2 = 1, 2 LIKE (2 = 1), (2 LIKE 2) = 1 union select * from v1; 2387 2388create or replace view v1 as select 2 LIKE 2 <=> 1, 2 LIKE (2 <=> 1), (2 LIKE 2) <=> 1; 2389Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2390select 2 LIKE 2 <=> 1, 2 LIKE (2 <=> 1), (2 LIKE 2) <=> 1 union select * from v1; 2391 2392create or replace view v1 as select 2 LIKE 2 >= 1, 2 LIKE (2 >= 1), (2 LIKE 2) >= 1; 2393Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2394select 2 LIKE 2 >= 1, 2 LIKE (2 >= 1), (2 LIKE 2) >= 1 union select * from v1; 2395 2396create or replace view v1 as select 2 LIKE 3 <= 3, 2 LIKE (3 <= 3), (2 LIKE 3) <= 3; 2397Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2398select 2 LIKE 3 <= 3, 2 LIKE (3 <= 3), (2 LIKE 3) <= 3 union select * from v1; 2399 2400create or replace view v1 as select 2 LIKE 3 < 3, 2 LIKE (3 < 3), (2 LIKE 3) < 3; 2401Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2402select 2 LIKE 3 < 3, 2 LIKE (3 < 3), (2 LIKE 3) < 3 union select * from v1; 2403 2404create or replace view v1 as select 2 LIKE 3 <> 3, 2 LIKE (3 <> 3), (2 LIKE 3) <> 3; 2405Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2406select 2 LIKE 3 <> 3, 2 LIKE (3 <> 3), (2 LIKE 3) <> 3 union select * from v1; 2407 2408create or replace view v1 as select 2 LIKE 2 > 0, 2 LIKE (2 > 0), (2 LIKE 2) > 0; 2409Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2410select 2 LIKE 2 > 0, 2 LIKE (2 > 0), (2 LIKE 2) > 0 union select * from v1; 2411 2412create or replace view v1 as select 2 LIKE 3 != 3, 2 LIKE (3 != 3), (2 LIKE 3) != 3; 2413Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2414select 2 LIKE 3 != 3, 2 LIKE (3 != 3), (2 LIKE 3) != 3 union select * from v1; 2415 2416create or replace view v1 as select 2 LIKE 2 LIKE 1, 2 LIKE (2 LIKE 1), (2 LIKE 2) LIKE 1; 2417Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2418select 2 LIKE 2 LIKE 1, 2 LIKE (2 LIKE 1), (2 LIKE 2) LIKE 1 union select * from v1; 2419 2420create or replace view v1 as select 2 LIKE 2 REGEXP 1, 2 LIKE (2 REGEXP 1), (2 LIKE 2) REGEXP 1; 2421Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2422select 2 LIKE 2 REGEXP 1, 2 LIKE (2 REGEXP 1), (2 LIKE 2) REGEXP 1 union select * from v1; 2423 2424create or replace view v1 as select 2 LIKE 3 | 3, 2 LIKE (3 | 3), (2 LIKE 3) | 3; 2425Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2426select 2 LIKE 3 | 3, 2 LIKE (3 | 3), (2 LIKE 3) | 3 union select * from v1; 2427 2428create or replace view v1 as select 2 LIKE 2 & 2, 2 LIKE (2 & 2), (2 LIKE 2) & 2; 2429Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2430select 2 LIKE 2 & 2, 2 LIKE (2 & 2), (2 LIKE 2) & 2 union select * from v1; 2431 2432create or replace view v1 as select 2 LIKE 2 << 2, 2 LIKE (2 << 2), (2 LIKE 2) << 2; 2433Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2434select 2 LIKE 2 << 2, 2 LIKE (2 << 2), (2 LIKE 2) << 2 union select * from v1; 2435 2436create or replace view v1 as select 2 LIKE 4 >> 1, 2 LIKE (4 >> 1), (2 LIKE 4) >> 1; 2437Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2438select 2 LIKE 4 >> 1, 2 LIKE (4 >> 1), (2 LIKE 4) >> 1 union select * from v1; 2439 2440create or replace view v1 as select 2 LIKE '2000-01-01' +INTERVAL 1 DAY, 2 LIKE ('2000-01-01' +INTERVAL 1 DAY), (2 LIKE '2000-01-01') +INTERVAL 1 DAY; 2441Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2442select 2 LIKE '2000-01-01' +INTERVAL 1 DAY, 2 LIKE ('2000-01-01' +INTERVAL 1 DAY), (2 LIKE '2000-01-01') +INTERVAL 1 DAY union select * from v1; 2443 2444create or replace view v1 as select 2 LIKE 3 + 3, 2 LIKE (3 + 3), (2 LIKE 3) + 3; 2445Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2446select 2 LIKE 3 + 3, 2 LIKE (3 + 3), (2 LIKE 3) + 3 union select * from v1; 2447 2448create or replace view v1 as select 2 LIKE 3 - 3, 2 LIKE (3 - 3), (2 LIKE 3) - 3; 2449Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2450select 2 LIKE 3 - 3, 2 LIKE (3 - 3), (2 LIKE 3) - 3 union select * from v1; 2451 2452create or replace view v1 as select 2 LIKE 2 * 2, 2 LIKE (2 * 2), (2 LIKE 2) * 2; 2453Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2454select 2 LIKE 2 * 2, 2 LIKE (2 * 2), (2 LIKE 2) * 2 union select * from v1; 2455 2456create or replace view v1 as select 2 LIKE 2 / 2, 2 LIKE (2 / 2), (2 LIKE 2) / 2; 2457Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2458select 2 LIKE 2 / 2, 2 LIKE (2 / 2), (2 LIKE 2) / 2 union select * from v1; 2459 2460create or replace view v1 as select 2 LIKE 4 DIV 2, 2 LIKE (4 DIV 2), (2 LIKE 4) DIV 2; 2461Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2462select 2 LIKE 4 DIV 2, 2 LIKE (4 DIV 2), (2 LIKE 4) DIV 2 union select * from v1; 2463 2464create or replace view v1 as select 2 LIKE 2 MOD 2, 2 LIKE (2 MOD 2), (2 LIKE 2) MOD 2; 2465Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2466select 2 LIKE 2 MOD 2, 2 LIKE (2 MOD 2), (2 LIKE 2) MOD 2 union select * from v1; 2467 2468create or replace view v1 as select 2 LIKE 2 % 2, 2 LIKE (2 % 2), (2 LIKE 2) % 2; 2469Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2470select 2 LIKE 2 % 2, 2 LIKE (2 % 2), (2 LIKE 2) % 2 union select * from v1; 2471 2472create or replace view v1 as select 2 LIKE 3 ^ 3, 2 LIKE (3 ^ 3), (2 LIKE 3) ^ 3; 2473Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2474select 2 LIKE 3 ^ 3, 2 LIKE (3 ^ 3), (2 LIKE 3) ^ 3 union select * from v1; 2475 2476create or replace view v1 as select 2 LIKE 2 BETWEEN 1 AND 3, 2 LIKE (2 BETWEEN 1 AND 3), (2 LIKE 2) BETWEEN 1 AND 3; 2477Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2478select 2 LIKE 2 BETWEEN 1 AND 3, 2 LIKE (2 BETWEEN 1 AND 3), (2 LIKE 2) BETWEEN 1 AND 3 union select * from v1; 2479 2480create or replace view v1 as select 2 REGEXP 3 IS FALSE, 2 REGEXP (3 IS FALSE), (2 REGEXP 3) IS FALSE; 2481Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2482select 2 REGEXP 3 IS FALSE, 2 REGEXP (3 IS FALSE), (2 REGEXP 3) IS FALSE union select * from v1; 2483 2484create or replace view v1 as select charset(2 REGEXP 3 COLLATE latin1_bin), charset(2 REGEXP (3 COLLATE latin1_bin)), charset((2 REGEXP 3) COLLATE latin1_bin); 2485Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2486select charset(2 REGEXP 3 COLLATE latin1_bin), charset(2 REGEXP (3 COLLATE latin1_bin)), charset((2 REGEXP 3) COLLATE latin1_bin) union select * from v1; 2487 2488create or replace view v1 as select 2 REGEXP 3 IN (0,1), 2 REGEXP (3 IN (0,1)), (2 REGEXP 3) IN (0,1); 2489Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2490select 2 REGEXP 3 IN (0,1), 2 REGEXP (3 IN (0,1)), (2 REGEXP 3) IN (0,1) union select * from v1; 2491 2492create or replace view v1 as select 2 REGEXP 3 OR 3, 2 REGEXP (3 OR 3), (2 REGEXP 3) OR 3; 2493Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2494select 2 REGEXP 3 OR 3, 2 REGEXP (3 OR 3), (2 REGEXP 3) OR 3 union select * from v1; 2495 2496create or replace view v1 as select 2 REGEXP 3 || 3, 2 REGEXP (3 || 3), (2 REGEXP 3) || 3; 2497Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2498select 2 REGEXP 3 || 3, 2 REGEXP (3 || 3), (2 REGEXP 3) || 3 union select * from v1; 2499 2500create or replace view v1 as select 2 REGEXP 3 XOR 3, 2 REGEXP (3 XOR 3), (2 REGEXP 3) XOR 3; 2501Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2502select 2 REGEXP 3 XOR 3, 2 REGEXP (3 XOR 3), (2 REGEXP 3) XOR 3 union select * from v1; 2503 2504create or replace view v1 as select 2 REGEXP 2 AND 2, 2 REGEXP (2 AND 2), (2 REGEXP 2) AND 2; 2505Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2506select 2 REGEXP 2 AND 2, 2 REGEXP (2 AND 2), (2 REGEXP 2) AND 2 union select * from v1; 2507 2508create or replace view v1 as select 2 REGEXP 2 && 2, 2 REGEXP (2 && 2), (2 REGEXP 2) && 2; 2509Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2510select 2 REGEXP 2 && 2, 2 REGEXP (2 && 2), (2 REGEXP 2) && 2 union select * from v1; 2511 2512create or replace view v1 as select 2 REGEXP 2 = 1, 2 REGEXP (2 = 1), (2 REGEXP 2) = 1; 2513Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2514select 2 REGEXP 2 = 1, 2 REGEXP (2 = 1), (2 REGEXP 2) = 1 union select * from v1; 2515 2516create or replace view v1 as select 2 REGEXP 2 <=> 1, 2 REGEXP (2 <=> 1), (2 REGEXP 2) <=> 1; 2517Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2518select 2 REGEXP 2 <=> 1, 2 REGEXP (2 <=> 1), (2 REGEXP 2) <=> 1 union select * from v1; 2519 2520create or replace view v1 as select 2 REGEXP 2 >= 1, 2 REGEXP (2 >= 1), (2 REGEXP 2) >= 1; 2521Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2522select 2 REGEXP 2 >= 1, 2 REGEXP (2 >= 1), (2 REGEXP 2) >= 1 union select * from v1; 2523 2524create or replace view v1 as select 2 REGEXP 3 <= 3, 2 REGEXP (3 <= 3), (2 REGEXP 3) <= 3; 2525Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2526select 2 REGEXP 3 <= 3, 2 REGEXP (3 <= 3), (2 REGEXP 3) <= 3 union select * from v1; 2527 2528create or replace view v1 as select 2 REGEXP 3 < 3, 2 REGEXP (3 < 3), (2 REGEXP 3) < 3; 2529Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2530select 2 REGEXP 3 < 3, 2 REGEXP (3 < 3), (2 REGEXP 3) < 3 union select * from v1; 2531 2532create or replace view v1 as select 2 REGEXP 3 <> 3, 2 REGEXP (3 <> 3), (2 REGEXP 3) <> 3; 2533Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2534select 2 REGEXP 3 <> 3, 2 REGEXP (3 <> 3), (2 REGEXP 3) <> 3 union select * from v1; 2535 2536create or replace view v1 as select 2 REGEXP 2 > 0, 2 REGEXP (2 > 0), (2 REGEXP 2) > 0; 2537Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2538select 2 REGEXP 2 > 0, 2 REGEXP (2 > 0), (2 REGEXP 2) > 0 union select * from v1; 2539 2540create or replace view v1 as select 2 REGEXP 3 != 3, 2 REGEXP (3 != 3), (2 REGEXP 3) != 3; 2541Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2542select 2 REGEXP 3 != 3, 2 REGEXP (3 != 3), (2 REGEXP 3) != 3 union select * from v1; 2543 2544create or replace view v1 as select 1 REGEXP 3 LIKE 3, 1 REGEXP (3 LIKE 3), (1 REGEXP 3) LIKE 3; 2545Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2546select 1 REGEXP 3 LIKE 3, 1 REGEXP (3 LIKE 3), (1 REGEXP 3) LIKE 3 union select * from v1; 2547 2548create or replace view v1 as select 1 REGEXP 3 REGEXP 3, 1 REGEXP (3 REGEXP 3), (1 REGEXP 3) REGEXP 3; 2549Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2550select 1 REGEXP 3 REGEXP 3, 1 REGEXP (3 REGEXP 3), (1 REGEXP 3) REGEXP 3 union select * from v1; 2551 2552create or replace view v1 as select 2 REGEXP 3 | 3, 2 REGEXP (3 | 3), (2 REGEXP 3) | 3; 2553Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2554select 2 REGEXP 3 | 3, 2 REGEXP (3 | 3), (2 REGEXP 3) | 3 union select * from v1; 2555 2556create or replace view v1 as select 2 REGEXP 2 & 2, 2 REGEXP (2 & 2), (2 REGEXP 2) & 2; 2557Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2558select 2 REGEXP 2 & 2, 2 REGEXP (2 & 2), (2 REGEXP 2) & 2 union select * from v1; 2559 2560create or replace view v1 as select 2 REGEXP 2 << 2, 2 REGEXP (2 << 2), (2 REGEXP 2) << 2; 2561Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2562select 2 REGEXP 2 << 2, 2 REGEXP (2 << 2), (2 REGEXP 2) << 2 union select * from v1; 2563 2564create or replace view v1 as select 2 REGEXP 4 >> 1, 2 REGEXP (4 >> 1), (2 REGEXP 4) >> 1; 2565Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2566select 2 REGEXP 4 >> 1, 2 REGEXP (4 >> 1), (2 REGEXP 4) >> 1 union select * from v1; 2567 2568create or replace view v1 as select 2 REGEXP '2000-01-01' +INTERVAL 1 DAY, 2 REGEXP ('2000-01-01' +INTERVAL 1 DAY), (2 REGEXP '2000-01-01') +INTERVAL 1 DAY; 2569Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2570select 2 REGEXP '2000-01-01' +INTERVAL 1 DAY, 2 REGEXP ('2000-01-01' +INTERVAL 1 DAY), (2 REGEXP '2000-01-01') +INTERVAL 1 DAY union select * from v1; 2571 2572create or replace view v1 as select 2 REGEXP 3 + 3, 2 REGEXP (3 + 3), (2 REGEXP 3) + 3; 2573Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2574select 2 REGEXP 3 + 3, 2 REGEXP (3 + 3), (2 REGEXP 3) + 3 union select * from v1; 2575 2576create or replace view v1 as select 2 REGEXP 3 - 3, 2 REGEXP (3 - 3), (2 REGEXP 3) - 3; 2577Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2578select 2 REGEXP 3 - 3, 2 REGEXP (3 - 3), (2 REGEXP 3) - 3 union select * from v1; 2579 2580create or replace view v1 as select 2 REGEXP 2 * 2, 2 REGEXP (2 * 2), (2 REGEXP 2) * 2; 2581Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2582select 2 REGEXP 2 * 2, 2 REGEXP (2 * 2), (2 REGEXP 2) * 2 union select * from v1; 2583 2584create or replace view v1 as select 2 REGEXP 2 / 2, 2 REGEXP (2 / 2), (2 REGEXP 2) / 2; 2585Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2586select 2 REGEXP 2 / 2, 2 REGEXP (2 / 2), (2 REGEXP 2) / 2 union select * from v1; 2587 2588create or replace view v1 as select 2 REGEXP 4 DIV 2, 2 REGEXP (4 DIV 2), (2 REGEXP 4) DIV 2; 2589Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2590select 2 REGEXP 4 DIV 2, 2 REGEXP (4 DIV 2), (2 REGEXP 4) DIV 2 union select * from v1; 2591 2592create or replace view v1 as select 2 REGEXP 2 MOD 2, 2 REGEXP (2 MOD 2), (2 REGEXP 2) MOD 2; 2593Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2594select 2 REGEXP 2 MOD 2, 2 REGEXP (2 MOD 2), (2 REGEXP 2) MOD 2 union select * from v1; 2595 2596create or replace view v1 as select 2 REGEXP 2 % 2, 2 REGEXP (2 % 2), (2 REGEXP 2) % 2; 2597Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2598select 2 REGEXP 2 % 2, 2 REGEXP (2 % 2), (2 REGEXP 2) % 2 union select * from v1; 2599 2600create or replace view v1 as select 2 REGEXP 3 ^ 3, 2 REGEXP (3 ^ 3), (2 REGEXP 3) ^ 3; 2601Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2602select 2 REGEXP 3 ^ 3, 2 REGEXP (3 ^ 3), (2 REGEXP 3) ^ 3 union select * from v1; 2603 2604create or replace view v1 as select 2 REGEXP 2 BETWEEN 1 AND 3, 2 REGEXP (2 BETWEEN 1 AND 3), (2 REGEXP 2) BETWEEN 1 AND 3; 2605Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2606select 2 REGEXP 2 BETWEEN 1 AND 3, 2 REGEXP (2 BETWEEN 1 AND 3), (2 REGEXP 2) BETWEEN 1 AND 3 union select * from v1; 2607 2608create or replace view v1 as select 2 | 3 IS FALSE, 2 | (3 IS FALSE), (2 | 3) IS FALSE; 2609Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2610select 2 | 3 IS FALSE, 2 | (3 IS FALSE), (2 | 3) IS FALSE union select * from v1; 2611 2612create or replace view v1 as select charset(2 | 3 COLLATE latin1_bin), charset(2 | (3 COLLATE latin1_bin)), charset((2 | 3) COLLATE latin1_bin); 2613Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2614select charset(2 | 3 COLLATE latin1_bin), charset(2 | (3 COLLATE latin1_bin)), charset((2 | 3) COLLATE latin1_bin) union select * from v1; 2615 2616create or replace view v1 as select 2 | 3 IN (0,1), 2 | (3 IN (0,1)), (2 | 3) IN (0,1); 2617Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2618select 2 | 3 IN (0,1), 2 | (3 IN (0,1)), (2 | 3) IN (0,1) union select * from v1; 2619 2620create or replace view v1 as select 2 | 3 OR 3, 2 | (3 OR 3), (2 | 3) OR 3; 2621Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2622select 2 | 3 OR 3, 2 | (3 OR 3), (2 | 3) OR 3 union select * from v1; 2623 2624create or replace view v1 as select 2 | 3 || 3, 2 | (3 || 3), (2 | 3) || 3; 2625Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2626select 2 | 3 || 3, 2 | (3 || 3), (2 | 3) || 3 union select * from v1; 2627 2628create or replace view v1 as select 2 | 3 XOR 3, 2 | (3 XOR 3), (2 | 3) XOR 3; 2629Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2630select 2 | 3 XOR 3, 2 | (3 XOR 3), (2 | 3) XOR 3 union select * from v1; 2631 2632create or replace view v1 as select 2 | 3 AND 3, 2 | (3 AND 3), (2 | 3) AND 3; 2633Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2634select 2 | 3 AND 3, 2 | (3 AND 3), (2 | 3) AND 3 union select * from v1; 2635 2636create or replace view v1 as select 2 | 3 && 3, 2 | (3 && 3), (2 | 3) && 3; 2637Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2638select 2 | 3 && 3, 2 | (3 && 3), (2 | 3) && 3 union select * from v1; 2639 2640create or replace view v1 as select 2 | 3 = 3, 2 | (3 = 3), (2 | 3) = 3; 2641Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2642select 2 | 3 = 3, 2 | (3 = 3), (2 | 3) = 3 union select * from v1; 2643 2644create or replace view v1 as select 2 | 3 <=> 3, 2 | (3 <=> 3), (2 | 3) <=> 3; 2645Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2646select 2 | 3 <=> 3, 2 | (3 <=> 3), (2 | 3) <=> 3 union select * from v1; 2647 2648create or replace view v1 as select 2 | 3 >= 3, 2 | (3 >= 3), (2 | 3) >= 3; 2649Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2650select 2 | 3 >= 3, 2 | (3 >= 3), (2 | 3) >= 3 union select * from v1; 2651 2652create or replace view v1 as select 2 | 3 <= 3, 2 | (3 <= 3), (2 | 3) <= 3; 2653Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2654select 2 | 3 <= 3, 2 | (3 <= 3), (2 | 3) <= 3 union select * from v1; 2655 2656create or replace view v1 as select 2 | 3 < 3, 2 | (3 < 3), (2 | 3) < 3; 2657Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2658select 2 | 3 < 3, 2 | (3 < 3), (2 | 3) < 3 union select * from v1; 2659 2660create or replace view v1 as select 2 | 3 <> 3, 2 | (3 <> 3), (2 | 3) <> 3; 2661Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2662select 2 | 3 <> 3, 2 | (3 <> 3), (2 | 3) <> 3 union select * from v1; 2663 2664create or replace view v1 as select 2 | 3 > 3, 2 | (3 > 3), (2 | 3) > 3; 2665Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2666select 2 | 3 > 3, 2 | (3 > 3), (2 | 3) > 3 union select * from v1; 2667 2668create or replace view v1 as select 2 | 3 != 3, 2 | (3 != 3), (2 | 3) != 3; 2669Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2670select 2 | 3 != 3, 2 | (3 != 3), (2 | 3) != 3 union select * from v1; 2671 2672create or replace view v1 as select 2 | 3 LIKE 3, 2 | (3 LIKE 3), (2 | 3) LIKE 3; 2673Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2674select 2 | 3 LIKE 3, 2 | (3 LIKE 3), (2 | 3) LIKE 3 union select * from v1; 2675 2676create or replace view v1 as select 2 | 3 REGEXP 3, 2 | (3 REGEXP 3), (2 | 3) REGEXP 3; 2677Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2678select 2 | 3 REGEXP 3, 2 | (3 REGEXP 3), (2 | 3) REGEXP 3 union select * from v1; 2679 2680create or replace view v1 as select 2 | 0 & 0, 2 | (0 & 0), (2 | 0) & 0; 2681Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2682select 2 | 0 & 0, 2 | (0 & 0), (2 | 0) & 0 union select * from v1; 2683 2684create or replace view v1 as select 2 | 3 << 3, 2 | (3 << 3), (2 | 3) << 3; 2685Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2686select 2 | 3 << 3, 2 | (3 << 3), (2 | 3) << 3 union select * from v1; 2687 2688create or replace view v1 as select 2 | 3 >> 3, 2 | (3 >> 3), (2 | 3) >> 3; 2689Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2690select 2 | 3 >> 3, 2 | (3 >> 3), (2 | 3) >> 3 union select * from v1; 2691 2692create or replace view v1 as select 2 | '2000-01-01' +INTERVAL 1 DAY, 2 | ('2000-01-01' +INTERVAL 1 DAY), (2 | '2000-01-01') +INTERVAL 1 DAY; 2693Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2694select 2 | '2000-01-01' +INTERVAL 1 DAY, 2 | ('2000-01-01' +INTERVAL 1 DAY), (2 | '2000-01-01') +INTERVAL 1 DAY union select * from v1; 2695 2696create or replace view v1 as select 2 | 1 + 1, 2 | (1 + 1), (2 | 1) + 1; 2697Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2698select 2 | 1 + 1, 2 | (1 + 1), (2 | 1) + 1 union select * from v1; 2699 2700create or replace view v1 as select 2 | 3 - 3, 2 | (3 - 3), (2 | 3) - 3; 2701Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2702select 2 | 3 - 3, 2 | (3 - 3), (2 | 3) - 3 union select * from v1; 2703 2704create or replace view v1 as select 2 | 3 * 3, 2 | (3 * 3), (2 | 3) * 3; 2705Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2706select 2 | 3 * 3, 2 | (3 * 3), (2 | 3) * 3 union select * from v1; 2707 2708create or replace view v1 as select 2 | 3 / 3, 2 | (3 / 3), (2 | 3) / 3; 2709Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2710select 2 | 3 / 3, 2 | (3 / 3), (2 | 3) / 3 union select * from v1; 2711 2712create or replace view v1 as select 2 | 3 DIV 3, 2 | (3 DIV 3), (2 | 3) DIV 3; 2713Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2714select 2 | 3 DIV 3, 2 | (3 DIV 3), (2 | 3) DIV 3 union select * from v1; 2715 2716create or replace view v1 as select 2 | 3 MOD 3, 2 | (3 MOD 3), (2 | 3) MOD 3; 2717Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2718select 2 | 3 MOD 3, 2 | (3 MOD 3), (2 | 3) MOD 3 union select * from v1; 2719 2720create or replace view v1 as select 2 | 3 % 3, 2 | (3 % 3), (2 | 3) % 3; 2721Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2722select 2 | 3 % 3, 2 | (3 % 3), (2 | 3) % 3 union select * from v1; 2723 2724create or replace view v1 as select 2 | 3 ^ 3, 2 | (3 ^ 3), (2 | 3) ^ 3; 2725Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2726select 2 | 3 ^ 3, 2 | (3 ^ 3), (2 | 3) ^ 3 union select * from v1; 2727 2728create or replace view v1 as select 2 | 3 BETWEEN 1 AND 3, 2 | (3 BETWEEN 1 AND 3), (2 | 3) BETWEEN 1 AND 3; 2729Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2730select 2 | 3 BETWEEN 1 AND 3, 2 | (3 BETWEEN 1 AND 3), (2 | 3) BETWEEN 1 AND 3 union select * from v1; 2731 2732create or replace view v1 as select 2 & 1 IS FALSE, 2 & (1 IS FALSE), (2 & 1) IS FALSE; 2733Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2734select 2 & 1 IS FALSE, 2 & (1 IS FALSE), (2 & 1) IS FALSE union select * from v1; 2735 2736create or replace view v1 as select charset(2 & 3 COLLATE latin1_bin), charset(2 & (3 COLLATE latin1_bin)), charset((2 & 3) COLLATE latin1_bin); 2737Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2738select charset(2 & 3 COLLATE latin1_bin), charset(2 & (3 COLLATE latin1_bin)), charset((2 & 3) COLLATE latin1_bin) union select * from v1; 2739 2740create or replace view v1 as select 2 & 4 IN (0,1), 2 & (4 IN (0,1)), (2 & 4) IN (0,1); 2741Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2742select 2 & 4 IN (0,1), 2 & (4 IN (0,1)), (2 & 4) IN (0,1) union select * from v1; 2743 2744create or replace view v1 as select 2 & 3 OR 3, 2 & (3 OR 3), (2 & 3) OR 3; 2745Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2746select 2 & 3 OR 3, 2 & (3 OR 3), (2 & 3) OR 3 union select * from v1; 2747 2748create or replace view v1 as select 2 & 3 || 3, 2 & (3 || 3), (2 & 3) || 3; 2749Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2750select 2 & 3 || 3, 2 & (3 || 3), (2 & 3) || 3 union select * from v1; 2751 2752create or replace view v1 as select 2 & 1 XOR 1, 2 & (1 XOR 1), (2 & 1) XOR 1; 2753Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2754select 2 & 1 XOR 1, 2 & (1 XOR 1), (2 & 1) XOR 1 union select * from v1; 2755 2756create or replace view v1 as select 2 & 3 AND 3, 2 & (3 AND 3), (2 & 3) AND 3; 2757Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2758select 2 & 3 AND 3, 2 & (3 AND 3), (2 & 3) AND 3 union select * from v1; 2759 2760create or replace view v1 as select 2 & 3 && 3, 2 & (3 && 3), (2 & 3) && 3; 2761Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2762select 2 & 3 && 3, 2 & (3 && 3), (2 & 3) && 3 union select * from v1; 2763 2764create or replace view v1 as select 2 & 3 = 2, 2 & (3 = 2), (2 & 3) = 2; 2765Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2766select 2 & 3 = 2, 2 & (3 = 2), (2 & 3) = 2 union select * from v1; 2767 2768create or replace view v1 as select 2 & 3 <=> 2, 2 & (3 <=> 2), (2 & 3) <=> 2; 2769Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2770select 2 & 3 <=> 2, 2 & (3 <=> 2), (2 & 3) <=> 2 union select * from v1; 2771 2772create or replace view v1 as select 2 & 3 >= 2, 2 & (3 >= 2), (2 & 3) >= 2; 2773Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2774select 2 & 3 >= 2, 2 & (3 >= 2), (2 & 3) >= 2 union select * from v1; 2775 2776create or replace view v1 as select 2 & 3 <= 3, 2 & (3 <= 3), (2 & 3) <= 3; 2777Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2778select 2 & 3 <= 3, 2 & (3 <= 3), (2 & 3) <= 3 union select * from v1; 2779 2780create or replace view v1 as select 2 & 3 < 3, 2 & (3 < 3), (2 & 3) < 3; 2781Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2782select 2 & 3 < 3, 2 & (3 < 3), (2 & 3) < 3 union select * from v1; 2783 2784create or replace view v1 as select 2 & 3 <> 3, 2 & (3 <> 3), (2 & 3) <> 3; 2785Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2786select 2 & 3 <> 3, 2 & (3 <> 3), (2 & 3) <> 3 union select * from v1; 2787 2788create or replace view v1 as select 2 & 3 > 1, 2 & (3 > 1), (2 & 3) > 1; 2789Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2790select 2 & 3 > 1, 2 & (3 > 1), (2 & 3) > 1 union select * from v1; 2791 2792create or replace view v1 as select 2 & 3 != 3, 2 & (3 != 3), (2 & 3) != 3; 2793Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2794select 2 & 3 != 3, 2 & (3 != 3), (2 & 3) != 3 union select * from v1; 2795 2796create or replace view v1 as select 2 & 3 LIKE 2, 2 & (3 LIKE 2), (2 & 3) LIKE 2; 2797Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2798select 2 & 3 LIKE 2, 2 & (3 LIKE 2), (2 & 3) LIKE 2 union select * from v1; 2799 2800create or replace view v1 as select 2 & 3 REGEXP 2, 2 & (3 REGEXP 2), (2 & 3) REGEXP 2; 2801Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2802select 2 & 3 REGEXP 2, 2 & (3 REGEXP 2), (2 & 3) REGEXP 2 union select * from v1; 2803 2804create or replace view v1 as select 2 & 3 | 3, 2 & (3 | 3), (2 & 3) | 3; 2805Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2806select 2 & 3 | 3, 2 & (3 | 3), (2 & 3) | 3 union select * from v1; 2807 2808create or replace view v1 as select 2 & 3 << 3, 2 & (3 << 3), (2 & 3) << 3; 2809Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2810select 2 & 3 << 3, 2 & (3 << 3), (2 & 3) << 3 union select * from v1; 2811 2812create or replace view v1 as select 2 & 3 >> 1, 2 & (3 >> 1), (2 & 3) >> 1; 2813Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2814select 2 & 3 >> 1, 2 & (3 >> 1), (2 & 3) >> 1 union select * from v1; 2815 2816create or replace view v1 as select 2 & '2000-01-01' +INTERVAL 1 DAY, 2 & ('2000-01-01' +INTERVAL 1 DAY), (2 & '2000-01-01') +INTERVAL 1 DAY; 2817Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2818select 2 & '2000-01-01' +INTERVAL 1 DAY, 2 & ('2000-01-01' +INTERVAL 1 DAY), (2 & '2000-01-01') +INTERVAL 1 DAY union select * from v1; 2819 2820create or replace view v1 as select 2 & 3 + 3, 2 & (3 + 3), (2 & 3) + 3; 2821Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2822select 2 & 3 + 3, 2 & (3 + 3), (2 & 3) + 3 union select * from v1; 2823 2824create or replace view v1 as select 6 & 4 - 3, 6 & (4 - 3), (6 & 4) - 3; 2825Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2826select 6 & 4 - 3, 6 & (4 - 3), (6 & 4) - 3 union select * from v1; 2827 2828create or replace view v1 as select 2 & 3 * 3, 2 & (3 * 3), (2 & 3) * 3; 2829Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2830select 2 & 3 * 3, 2 & (3 * 3), (2 & 3) * 3 union select * from v1; 2831 2832create or replace view v1 as select 2 & 3 / 3, 2 & (3 / 3), (2 & 3) / 3; 2833Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2834select 2 & 3 / 3, 2 & (3 / 3), (2 & 3) / 3 union select * from v1; 2835 2836create or replace view v1 as select 2 & 3 DIV 2, 2 & (3 DIV 2), (2 & 3) DIV 2; 2837Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2838select 2 & 3 DIV 2, 2 & (3 DIV 2), (2 & 3) DIV 2 union select * from v1; 2839 2840create or replace view v1 as select 2 & 3 MOD 3, 2 & (3 MOD 3), (2 & 3) MOD 3; 2841Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2842select 2 & 3 MOD 3, 2 & (3 MOD 3), (2 & 3) MOD 3 union select * from v1; 2843 2844create or replace view v1 as select 2 & 3 % 3, 2 & (3 % 3), (2 & 3) % 3; 2845Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2846select 2 & 3 % 3, 2 & (3 % 3), (2 & 3) % 3 union select * from v1; 2847 2848create or replace view v1 as select 2 & 3 ^ 3, 2 & (3 ^ 3), (2 & 3) ^ 3; 2849Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2850select 2 & 3 ^ 3, 2 & (3 ^ 3), (2 & 3) ^ 3 union select * from v1; 2851 2852create or replace view v1 as select 2 & 3 BETWEEN 1 AND 3, 2 & (3 BETWEEN 1 AND 3), (2 & 3) BETWEEN 1 AND 3; 2853Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2854select 2 & 3 BETWEEN 1 AND 3, 2 & (3 BETWEEN 1 AND 3), (2 & 3) BETWEEN 1 AND 3 union select * from v1; 2855 2856create or replace view v1 as select 2 << 3 IS FALSE, 2 << (3 IS FALSE), (2 << 3) IS FALSE; 2857Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2858select 2 << 3 IS FALSE, 2 << (3 IS FALSE), (2 << 3) IS FALSE union select * from v1; 2859 2860create or replace view v1 as select charset(2 << 3 COLLATE latin1_bin), charset(2 << (3 COLLATE latin1_bin)), charset((2 << 3) COLLATE latin1_bin); 2861Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2862select charset(2 << 3 COLLATE latin1_bin), charset(2 << (3 COLLATE latin1_bin)), charset((2 << 3) COLLATE latin1_bin) union select * from v1; 2863 2864create or replace view v1 as select 2 << 3 IN (0,1), 2 << (3 IN (0,1)), (2 << 3) IN (0,1); 2865Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2866select 2 << 3 IN (0,1), 2 << (3 IN (0,1)), (2 << 3) IN (0,1) union select * from v1; 2867 2868create or replace view v1 as select 2 << 3 OR 3, 2 << (3 OR 3), (2 << 3) OR 3; 2869Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2870select 2 << 3 OR 3, 2 << (3 OR 3), (2 << 3) OR 3 union select * from v1; 2871 2872create or replace view v1 as select 2 << 3 || 3, 2 << (3 || 3), (2 << 3) || 3; 2873Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2874select 2 << 3 || 3, 2 << (3 || 3), (2 << 3) || 3 union select * from v1; 2875 2876create or replace view v1 as select 2 << 3 XOR 3, 2 << (3 XOR 3), (2 << 3) XOR 3; 2877Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2878select 2 << 3 XOR 3, 2 << (3 XOR 3), (2 << 3) XOR 3 union select * from v1; 2879 2880create or replace view v1 as select 2 << 3 AND 3, 2 << (3 AND 3), (2 << 3) AND 3; 2881Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2882select 2 << 3 AND 3, 2 << (3 AND 3), (2 << 3) AND 3 union select * from v1; 2883 2884create or replace view v1 as select 2 << 3 && 3, 2 << (3 && 3), (2 << 3) && 3; 2885Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2886select 2 << 3 && 3, 2 << (3 && 3), (2 << 3) && 3 union select * from v1; 2887 2888create or replace view v1 as select 2 << 3 = 3, 2 << (3 = 3), (2 << 3) = 3; 2889Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2890select 2 << 3 = 3, 2 << (3 = 3), (2 << 3) = 3 union select * from v1; 2891 2892create or replace view v1 as select 2 << 3 <=> 3, 2 << (3 <=> 3), (2 << 3) <=> 3; 2893Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2894select 2 << 3 <=> 3, 2 << (3 <=> 3), (2 << 3) <=> 3 union select * from v1; 2895 2896create or replace view v1 as select 2 << 3 >= 3, 2 << (3 >= 3), (2 << 3) >= 3; 2897Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2898select 2 << 3 >= 3, 2 << (3 >= 3), (2 << 3) >= 3 union select * from v1; 2899 2900create or replace view v1 as select 2 << 3 <= 3, 2 << (3 <= 3), (2 << 3) <= 3; 2901Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2902select 2 << 3 <= 3, 2 << (3 <= 3), (2 << 3) <= 3 union select * from v1; 2903 2904create or replace view v1 as select 2 << 3 < 3, 2 << (3 < 3), (2 << 3) < 3; 2905Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2906select 2 << 3 < 3, 2 << (3 < 3), (2 << 3) < 3 union select * from v1; 2907 2908create or replace view v1 as select 2 << 3 <> 3, 2 << (3 <> 3), (2 << 3) <> 3; 2909Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2910select 2 << 3 <> 3, 2 << (3 <> 3), (2 << 3) <> 3 union select * from v1; 2911 2912create or replace view v1 as select 2 << 3 > 3, 2 << (3 > 3), (2 << 3) > 3; 2913Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2914select 2 << 3 > 3, 2 << (3 > 3), (2 << 3) > 3 union select * from v1; 2915 2916create or replace view v1 as select 2 << 3 != 3, 2 << (3 != 3), (2 << 3) != 3; 2917Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2918select 2 << 3 != 3, 2 << (3 != 3), (2 << 3) != 3 union select * from v1; 2919 2920create or replace view v1 as select 2 << 3 LIKE 3, 2 << (3 LIKE 3), (2 << 3) LIKE 3; 2921Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2922select 2 << 3 LIKE 3, 2 << (3 LIKE 3), (2 << 3) LIKE 3 union select * from v1; 2923 2924create or replace view v1 as select 2 << 3 REGEXP 3, 2 << (3 REGEXP 3), (2 << 3) REGEXP 3; 2925Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2926select 2 << 3 REGEXP 3, 2 << (3 REGEXP 3), (2 << 3) REGEXP 3 union select * from v1; 2927 2928create or replace view v1 as select 2 << 3 | 3, 2 << (3 | 3), (2 << 3) | 3; 2929Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2930select 2 << 3 | 3, 2 << (3 | 3), (2 << 3) | 3 union select * from v1; 2931 2932create or replace view v1 as select 2 << 3 & 3, 2 << (3 & 3), (2 << 3) & 3; 2933Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2934select 2 << 3 & 3, 2 << (3 & 3), (2 << 3) & 3 union select * from v1; 2935 2936create or replace view v1 as select 2 << 3 << 3, 2 << (3 << 3), (2 << 3) << 3; 2937Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2938select 2 << 3 << 3, 2 << (3 << 3), (2 << 3) << 3 union select * from v1; 2939 2940create or replace view v1 as select 2 << 2 >> 3, 2 << (2 >> 3), (2 << 2) >> 3; 2941Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2942select 2 << 2 >> 3, 2 << (2 >> 3), (2 << 2) >> 3 union select * from v1; 2943 2944create or replace view v1 as select 2 << '2000-01-01' +INTERVAL 1 DAY, 2 << ('2000-01-01' +INTERVAL 1 DAY), (2 << '2000-01-01') +INTERVAL 1 DAY; 2945Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2946select 2 << '2000-01-01' +INTERVAL 1 DAY, 2 << ('2000-01-01' +INTERVAL 1 DAY), (2 << '2000-01-01') +INTERVAL 1 DAY union select * from v1; 2947 2948create or replace view v1 as select 2 << 3 + 3, 2 << (3 + 3), (2 << 3) + 3; 2949Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2950select 2 << 3 + 3, 2 << (3 + 3), (2 << 3) + 3 union select * from v1; 2951 2952create or replace view v1 as select 2 << 3 - 3, 2 << (3 - 3), (2 << 3) - 3; 2953Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2954select 2 << 3 - 3, 2 << (3 - 3), (2 << 3) - 3 union select * from v1; 2955 2956create or replace view v1 as select 2 << 3 * 3, 2 << (3 * 3), (2 << 3) * 3; 2957Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2958select 2 << 3 * 3, 2 << (3 * 3), (2 << 3) * 3 union select * from v1; 2959 2960create or replace view v1 as select 2 << 3 / 3, 2 << (3 / 3), (2 << 3) / 3; 2961Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2962select 2 << 3 / 3, 2 << (3 / 3), (2 << 3) / 3 union select * from v1; 2963 2964create or replace view v1 as select 2 << 3 DIV 3, 2 << (3 DIV 3), (2 << 3) DIV 3; 2965Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2966select 2 << 3 DIV 3, 2 << (3 DIV 3), (2 << 3) DIV 3 union select * from v1; 2967 2968create or replace view v1 as select 2 << 3 MOD 3, 2 << (3 MOD 3), (2 << 3) MOD 3; 2969Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2970select 2 << 3 MOD 3, 2 << (3 MOD 3), (2 << 3) MOD 3 union select * from v1; 2971 2972create or replace view v1 as select 2 << 3 % 3, 2 << (3 % 3), (2 << 3) % 3; 2973Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2974select 2 << 3 % 3, 2 << (3 % 3), (2 << 3) % 3 union select * from v1; 2975 2976create or replace view v1 as select 2 << 3 ^ 3, 2 << (3 ^ 3), (2 << 3) ^ 3; 2977Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2978select 2 << 3 ^ 3, 2 << (3 ^ 3), (2 << 3) ^ 3 union select * from v1; 2979 2980create or replace view v1 as select 2 << 3 BETWEEN 1 AND 3, 2 << (3 BETWEEN 1 AND 3), (2 << 3) BETWEEN 1 AND 3; 2981Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2982select 2 << 3 BETWEEN 1 AND 3, 2 << (3 BETWEEN 1 AND 3), (2 << 3) BETWEEN 1 AND 3 union select * from v1; 2983 2984create or replace view v1 as select 2 >> 3 IS FALSE, 2 >> (3 IS FALSE), (2 >> 3) IS FALSE; 2985Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2986select 2 >> 3 IS FALSE, 2 >> (3 IS FALSE), (2 >> 3) IS FALSE union select * from v1; 2987 2988create or replace view v1 as select charset(2 >> 3 COLLATE latin1_bin), charset(2 >> (3 COLLATE latin1_bin)), charset((2 >> 3) COLLATE latin1_bin); 2989Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2990select charset(2 >> 3 COLLATE latin1_bin), charset(2 >> (3 COLLATE latin1_bin)), charset((2 >> 3) COLLATE latin1_bin) union select * from v1; 2991 2992create or replace view v1 as select 2 >> 3 IN (0,1), 2 >> (3 IN (0,1)), (2 >> 3) IN (0,1); 2993Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2994select 2 >> 3 IN (0,1), 2 >> (3 IN (0,1)), (2 >> 3) IN (0,1) union select * from v1; 2995 2996create or replace view v1 as select 2 >> 3 OR 0, 2 >> (3 OR 0), (2 >> 3) OR 0; 2997Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 2998select 2 >> 3 OR 0, 2 >> (3 OR 0), (2 >> 3) OR 0 union select * from v1; 2999 3000create or replace view v1 as select 2 >> 3 || 0, 2 >> (3 || 0), (2 >> 3) || 0; 3001Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3002select 2 >> 3 || 0, 2 >> (3 || 0), (2 >> 3) || 0 union select * from v1; 3003 3004create or replace view v1 as select 2 >> 3 XOR 3, 2 >> (3 XOR 3), (2 >> 3) XOR 3; 3005Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3006select 2 >> 3 XOR 3, 2 >> (3 XOR 3), (2 >> 3) XOR 3 union select * from v1; 3007 3008create or replace view v1 as select 2 >> 3 AND 3, 2 >> (3 AND 3), (2 >> 3) AND 3; 3009Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3010select 2 >> 3 AND 3, 2 >> (3 AND 3), (2 >> 3) AND 3 union select * from v1; 3011 3012create or replace view v1 as select 2 >> 3 && 3, 2 >> (3 && 3), (2 >> 3) && 3; 3013Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3014select 2 >> 3 && 3, 2 >> (3 && 3), (2 >> 3) && 3 union select * from v1; 3015 3016create or replace view v1 as select 2 >> 3 = 3, 2 >> (3 = 3), (2 >> 3) = 3; 3017Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3018select 2 >> 3 = 3, 2 >> (3 = 3), (2 >> 3) = 3 union select * from v1; 3019 3020create or replace view v1 as select 2 >> 3 <=> 3, 2 >> (3 <=> 3), (2 >> 3) <=> 3; 3021Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3022select 2 >> 3 <=> 3, 2 >> (3 <=> 3), (2 >> 3) <=> 3 union select * from v1; 3023 3024create or replace view v1 as select 2 >> 3 >= 3, 2 >> (3 >= 3), (2 >> 3) >= 3; 3025Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3026select 2 >> 3 >= 3, 2 >> (3 >= 3), (2 >> 3) >= 3 union select * from v1; 3027 3028create or replace view v1 as select 2 >> 3 <= 0, 2 >> (3 <= 0), (2 >> 3) <= 0; 3029Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3030select 2 >> 3 <= 0, 2 >> (3 <= 0), (2 >> 3) <= 0 union select * from v1; 3031 3032create or replace view v1 as select 2 >> 3 < 3, 2 >> (3 < 3), (2 >> 3) < 3; 3033Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3034select 2 >> 3 < 3, 2 >> (3 < 3), (2 >> 3) < 3 union select * from v1; 3035 3036create or replace view v1 as select 2 >> 3 <> 3, 2 >> (3 <> 3), (2 >> 3) <> 3; 3037Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3038select 2 >> 3 <> 3, 2 >> (3 <> 3), (2 >> 3) <> 3 union select * from v1; 3039 3040create or replace view v1 as select 2 >> 3 > 3, 2 >> (3 > 3), (2 >> 3) > 3; 3041Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3042select 2 >> 3 > 3, 2 >> (3 > 3), (2 >> 3) > 3 union select * from v1; 3043 3044create or replace view v1 as select 2 >> 3 != 3, 2 >> (3 != 3), (2 >> 3) != 3; 3045Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3046select 2 >> 3 != 3, 2 >> (3 != 3), (2 >> 3) != 3 union select * from v1; 3047 3048create or replace view v1 as select 2 >> 3 LIKE 3, 2 >> (3 LIKE 3), (2 >> 3) LIKE 3; 3049Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3050select 2 >> 3 LIKE 3, 2 >> (3 LIKE 3), (2 >> 3) LIKE 3 union select * from v1; 3051 3052create or replace view v1 as select 2 >> 3 REGEXP 3, 2 >> (3 REGEXP 3), (2 >> 3) REGEXP 3; 3053Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3054select 2 >> 3 REGEXP 3, 2 >> (3 REGEXP 3), (2 >> 3) REGEXP 3 union select * from v1; 3055 3056create or replace view v1 as select 2 >> 3 | 3, 2 >> (3 | 3), (2 >> 3) | 3; 3057Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3058select 2 >> 3 | 3, 2 >> (3 | 3), (2 >> 3) | 3 union select * from v1; 3059 3060create or replace view v1 as select 2 >> 3 & 1, 2 >> (3 & 1), (2 >> 3) & 1; 3061Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3062select 2 >> 3 & 1, 2 >> (3 & 1), (2 >> 3) & 1 union select * from v1; 3063 3064create or replace view v1 as select 2 >> 1 << 3, 2 >> (1 << 3), (2 >> 1) << 3; 3065Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3066select 2 >> 1 << 3, 2 >> (1 << 3), (2 >> 1) << 3 union select * from v1; 3067 3068create or replace view v1 as select 2 >> 3 >> 3, 2 >> (3 >> 3), (2 >> 3) >> 3; 3069Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3070select 2 >> 3 >> 3, 2 >> (3 >> 3), (2 >> 3) >> 3 union select * from v1; 3071 3072create or replace view v1 as select 2 >> '2000-01-01' +INTERVAL 1 DAY, 2 >> ('2000-01-01' +INTERVAL 1 DAY), (2 >> '2000-01-01') +INTERVAL 1 DAY; 3073Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3074select 2 >> '2000-01-01' +INTERVAL 1 DAY, 2 >> ('2000-01-01' +INTERVAL 1 DAY), (2 >> '2000-01-01') +INTERVAL 1 DAY union select * from v1; 3075 3076create or replace view v1 as select 2 >> 3 + 3, 2 >> (3 + 3), (2 >> 3) + 3; 3077Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3078select 2 >> 3 + 3, 2 >> (3 + 3), (2 >> 3) + 3 union select * from v1; 3079 3080create or replace view v1 as select 2 >> 1 - 1, 2 >> (1 - 1), (2 >> 1) - 1; 3081Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3082select 2 >> 1 - 1, 2 >> (1 - 1), (2 >> 1) - 1 union select * from v1; 3083 3084create or replace view v1 as select 2 >> 1 * 3, 2 >> (1 * 3), (2 >> 1) * 3; 3085Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3086select 2 >> 1 * 3, 2 >> (1 * 3), (2 >> 1) * 3 union select * from v1; 3087 3088create or replace view v1 as select 2 >> 3 / 3, 2 >> (3 / 3), (2 >> 3) / 3; 3089Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3090select 2 >> 3 / 3, 2 >> (3 / 3), (2 >> 3) / 3 union select * from v1; 3091 3092create or replace view v1 as select 2 >> 3 DIV 3, 2 >> (3 DIV 3), (2 >> 3) DIV 3; 3093Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3094select 2 >> 3 DIV 3, 2 >> (3 DIV 3), (2 >> 3) DIV 3 union select * from v1; 3095 3096create or replace view v1 as select 2 >> 3 MOD 3, 2 >> (3 MOD 3), (2 >> 3) MOD 3; 3097Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3098select 2 >> 3 MOD 3, 2 >> (3 MOD 3), (2 >> 3) MOD 3 union select * from v1; 3099 3100create or replace view v1 as select 2 >> 3 % 3, 2 >> (3 % 3), (2 >> 3) % 3; 3101Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3102select 2 >> 3 % 3, 2 >> (3 % 3), (2 >> 3) % 3 union select * from v1; 3103 3104create or replace view v1 as select 2 >> 3 ^ 3, 2 >> (3 ^ 3), (2 >> 3) ^ 3; 3105Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3106select 2 >> 3 ^ 3, 2 >> (3 ^ 3), (2 >> 3) ^ 3 union select * from v1; 3107 3108create or replace view v1 as select 2 >> 3 BETWEEN 1 AND 3, 2 >> (3 BETWEEN 1 AND 3), (2 >> 3) BETWEEN 1 AND 3; 3109Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3110select 2 >> 3 BETWEEN 1 AND 3, 2 >> (3 BETWEEN 1 AND 3), (2 >> 3) BETWEEN 1 AND 3 union select * from v1; 3111 3112create or replace view v1 as select 2 + 3 IS FALSE, 2 + (3 IS FALSE), (2 + 3) IS FALSE; 3113Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3114select 2 + 3 IS FALSE, 2 + (3 IS FALSE), (2 + 3) IS FALSE union select * from v1; 3115 3116create or replace view v1 as select charset(2 + 3 COLLATE latin1_bin), charset(2 + (3 COLLATE latin1_bin)), charset((2 + 3) COLLATE latin1_bin); 3117Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3118select charset(2 + 3 COLLATE latin1_bin), charset(2 + (3 COLLATE latin1_bin)), charset((2 + 3) COLLATE latin1_bin) union select * from v1; 3119 3120create or replace view v1 as select 2 + 3 IN (0,1), 2 + (3 IN (0,1)), (2 + 3) IN (0,1); 3121Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3122select 2 + 3 IN (0,1), 2 + (3 IN (0,1)), (2 + 3) IN (0,1) union select * from v1; 3123 3124create or replace view v1 as select 2 + 3 OR 3, 2 + (3 OR 3), (2 + 3) OR 3; 3125Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3126select 2 + 3 OR 3, 2 + (3 OR 3), (2 + 3) OR 3 union select * from v1; 3127 3128create or replace view v1 as select 2 + 3 || 3, 2 + (3 || 3), (2 + 3) || 3; 3129Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3130select 2 + 3 || 3, 2 + (3 || 3), (2 + 3) || 3 union select * from v1; 3131 3132create or replace view v1 as select 2 + 3 XOR 3, 2 + (3 XOR 3), (2 + 3) XOR 3; 3133Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3134select 2 + 3 XOR 3, 2 + (3 XOR 3), (2 + 3) XOR 3 union select * from v1; 3135 3136create or replace view v1 as select 2 + 3 AND 3, 2 + (3 AND 3), (2 + 3) AND 3; 3137Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3138select 2 + 3 AND 3, 2 + (3 AND 3), (2 + 3) AND 3 union select * from v1; 3139 3140create or replace view v1 as select 2 + 3 && 3, 2 + (3 && 3), (2 + 3) && 3; 3141Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3142select 2 + 3 && 3, 2 + (3 && 3), (2 + 3) && 3 union select * from v1; 3143 3144create or replace view v1 as select 2 + 3 = 3, 2 + (3 = 3), (2 + 3) = 3; 3145Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3146select 2 + 3 = 3, 2 + (3 = 3), (2 + 3) = 3 union select * from v1; 3147 3148create or replace view v1 as select 2 + 3 <=> 3, 2 + (3 <=> 3), (2 + 3) <=> 3; 3149Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3150select 2 + 3 <=> 3, 2 + (3 <=> 3), (2 + 3) <=> 3 union select * from v1; 3151 3152create or replace view v1 as select 2 + 3 >= 3, 2 + (3 >= 3), (2 + 3) >= 3; 3153Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3154select 2 + 3 >= 3, 2 + (3 >= 3), (2 + 3) >= 3 union select * from v1; 3155 3156create or replace view v1 as select 2 + 3 <= 3, 2 + (3 <= 3), (2 + 3) <= 3; 3157Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3158select 2 + 3 <= 3, 2 + (3 <= 3), (2 + 3) <= 3 union select * from v1; 3159 3160create or replace view v1 as select 2 + 3 < 3, 2 + (3 < 3), (2 + 3) < 3; 3161Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3162select 2 + 3 < 3, 2 + (3 < 3), (2 + 3) < 3 union select * from v1; 3163 3164create or replace view v1 as select 2 + 3 <> 3, 2 + (3 <> 3), (2 + 3) <> 3; 3165Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3166select 2 + 3 <> 3, 2 + (3 <> 3), (2 + 3) <> 3 union select * from v1; 3167 3168create or replace view v1 as select 2 + 3 > 3, 2 + (3 > 3), (2 + 3) > 3; 3169Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3170select 2 + 3 > 3, 2 + (3 > 3), (2 + 3) > 3 union select * from v1; 3171 3172create or replace view v1 as select 2 + 3 != 3, 2 + (3 != 3), (2 + 3) != 3; 3173Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3174select 2 + 3 != 3, 2 + (3 != 3), (2 + 3) != 3 union select * from v1; 3175 3176create or replace view v1 as select 2 + 3 LIKE 3, 2 + (3 LIKE 3), (2 + 3) LIKE 3; 3177Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3178select 2 + 3 LIKE 3, 2 + (3 LIKE 3), (2 + 3) LIKE 3 union select * from v1; 3179 3180create or replace view v1 as select 2 + 3 REGEXP 3, 2 + (3 REGEXP 3), (2 + 3) REGEXP 3; 3181Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3182select 2 + 3 REGEXP 3, 2 + (3 REGEXP 3), (2 + 3) REGEXP 3 union select * from v1; 3183 3184create or replace view v1 as select 2 + 3 | 3, 2 + (3 | 3), (2 + 3) | 3; 3185Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3186select 2 + 3 | 3, 2 + (3 | 3), (2 + 3) | 3 union select * from v1; 3187 3188create or replace view v1 as select 2 + 3 & 3, 2 + (3 & 3), (2 + 3) & 3; 3189Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3190select 2 + 3 & 3, 2 + (3 & 3), (2 + 3) & 3 union select * from v1; 3191 3192create or replace view v1 as select 2 + 3 << 3, 2 + (3 << 3), (2 + 3) << 3; 3193Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3194select 2 + 3 << 3, 2 + (3 << 3), (2 + 3) << 3 union select * from v1; 3195 3196create or replace view v1 as select 2 + 3 >> 3, 2 + (3 >> 3), (2 + 3) >> 3; 3197Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3198select 2 + 3 >> 3, 2 + (3 >> 3), (2 + 3) >> 3 union select * from v1; 3199 3200create or replace view v1 as select 2 + '2000-01-01' +INTERVAL 1 DAY, 2 + ('2000-01-01' +INTERVAL 1 DAY), (2 + '2000-01-01') +INTERVAL 1 DAY; 3201Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3202select 2 + '2000-01-01' +INTERVAL 1 DAY, 2 + ('2000-01-01' +INTERVAL 1 DAY), (2 + '2000-01-01') +INTERVAL 1 DAY union select * from v1; 3203 3204create or replace view v1 as select 2 + 3 * 3, 2 + (3 * 3), (2 + 3) * 3; 3205Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3206select 2 + 3 * 3, 2 + (3 * 3), (2 + 3) * 3 union select * from v1; 3207 3208create or replace view v1 as select 2 + 3 / 3, 2 + (3 / 3), (2 + 3) / 3; 3209Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3210select 2 + 3 / 3, 2 + (3 / 3), (2 + 3) / 3 union select * from v1; 3211 3212create or replace view v1 as select 2 + 3 DIV 3, 2 + (3 DIV 3), (2 + 3) DIV 3; 3213Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3214select 2 + 3 DIV 3, 2 + (3 DIV 3), (2 + 3) DIV 3 union select * from v1; 3215 3216create or replace view v1 as select 2 + 1 MOD 3, 2 + (1 MOD 3), (2 + 1) MOD 3; 3217Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3218select 2 + 1 MOD 3, 2 + (1 MOD 3), (2 + 1) MOD 3 union select * from v1; 3219 3220create or replace view v1 as select 2 + 1 % 3, 2 + (1 % 3), (2 + 1) % 3; 3221Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3222select 2 + 1 % 3, 2 + (1 % 3), (2 + 1) % 3 union select * from v1; 3223 3224create or replace view v1 as select 2 + 3 ^ 3, 2 + (3 ^ 3), (2 + 3) ^ 3; 3225Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3226select 2 + 3 ^ 3, 2 + (3 ^ 3), (2 + 3) ^ 3 union select * from v1; 3227 3228create or replace view v1 as select 2 + 3 BETWEEN 1 AND 3, 2 + (3 BETWEEN 1 AND 3), (2 + 3) BETWEEN 1 AND 3; 3229Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3230select 2 + 3 BETWEEN 1 AND 3, 2 + (3 BETWEEN 1 AND 3), (2 + 3) BETWEEN 1 AND 3 union select * from v1; 3231 3232create or replace view v1 as select 2 - 3 IS FALSE, 2 - (3 IS FALSE), (2 - 3) IS FALSE; 3233Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3234select 2 - 3 IS FALSE, 2 - (3 IS FALSE), (2 - 3) IS FALSE union select * from v1; 3235 3236create or replace view v1 as select charset(2 - 3 COLLATE latin1_bin), charset(2 - (3 COLLATE latin1_bin)), charset((2 - 3) COLLATE latin1_bin); 3237Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3238select charset(2 - 3 COLLATE latin1_bin), charset(2 - (3 COLLATE latin1_bin)), charset((2 - 3) COLLATE latin1_bin) union select * from v1; 3239 3240create or replace view v1 as select 2 - 3 IN (0,1), 2 - (3 IN (0,1)), (2 - 3) IN (0,1); 3241Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3242select 2 - 3 IN (0,1), 2 - (3 IN (0,1)), (2 - 3) IN (0,1) union select * from v1; 3243 3244create or replace view v1 as select 2 - 2 OR 0, 2 - (2 OR 0), (2 - 2) OR 0; 3245Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3246select 2 - 2 OR 0, 2 - (2 OR 0), (2 - 2) OR 0 union select * from v1; 3247 3248create or replace view v1 as select 2 - 2 || 0, 2 - (2 || 0), (2 - 2) || 0; 3249Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3250select 2 - 2 || 0, 2 - (2 || 0), (2 - 2) || 0 union select * from v1; 3251 3252create or replace view v1 as select 2 - 3 XOR 3, 2 - (3 XOR 3), (2 - 3) XOR 3; 3253Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3254select 2 - 3 XOR 3, 2 - (3 XOR 3), (2 - 3) XOR 3 union select * from v1; 3255 3256create or replace view v1 as select 2 - 2 AND 2, 2 - (2 AND 2), (2 - 2) AND 2; 3257Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3258select 2 - 2 AND 2, 2 - (2 AND 2), (2 - 2) AND 2 union select * from v1; 3259 3260create or replace view v1 as select 2 - 2 && 2, 2 - (2 && 2), (2 - 2) && 2; 3261Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3262select 2 - 2 && 2, 2 - (2 && 2), (2 - 2) && 2 union select * from v1; 3263 3264create or replace view v1 as select 2 - 3 = 3, 2 - (3 = 3), (2 - 3) = 3; 3265Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3266select 2 - 3 = 3, 2 - (3 = 3), (2 - 3) = 3 union select * from v1; 3267 3268create or replace view v1 as select 2 - 3 <=> 3, 2 - (3 <=> 3), (2 - 3) <=> 3; 3269Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3270select 2 - 3 <=> 3, 2 - (3 <=> 3), (2 - 3) <=> 3 union select * from v1; 3271 3272create or replace view v1 as select 2 - 3 >= 3, 2 - (3 >= 3), (2 - 3) >= 3; 3273Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3274select 2 - 3 >= 3, 2 - (3 >= 3), (2 - 3) >= 3 union select * from v1; 3275 3276create or replace view v1 as select 2 - 3 <= 2, 2 - (3 <= 2), (2 - 3) <= 2; 3277Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3278select 2 - 3 <= 2, 2 - (3 <= 2), (2 - 3) <= 2 union select * from v1; 3279 3280create or replace view v1 as select 2 - 3 < 3, 2 - (3 < 3), (2 - 3) < 3; 3281Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3282select 2 - 3 < 3, 2 - (3 < 3), (2 - 3) < 3 union select * from v1; 3283 3284create or replace view v1 as select 2 - 3 <> 3, 2 - (3 <> 3), (2 - 3) <> 3; 3285Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3286select 2 - 3 <> 3, 2 - (3 <> 3), (2 - 3) <> 3 union select * from v1; 3287 3288create or replace view v1 as select 2 - 3 > 3, 2 - (3 > 3), (2 - 3) > 3; 3289Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3290select 2 - 3 > 3, 2 - (3 > 3), (2 - 3) > 3 union select * from v1; 3291 3292create or replace view v1 as select 2 - 3 != 3, 2 - (3 != 3), (2 - 3) != 3; 3293Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3294select 2 - 3 != 3, 2 - (3 != 3), (2 - 3) != 3 union select * from v1; 3295 3296create or replace view v1 as select 2 - 3 LIKE 3, 2 - (3 LIKE 3), (2 - 3) LIKE 3; 3297Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3298select 2 - 3 LIKE 3, 2 - (3 LIKE 3), (2 - 3) LIKE 3 union select * from v1; 3299 3300create or replace view v1 as select 2 - 3 REGEXP 3, 2 - (3 REGEXP 3), (2 - 3) REGEXP 3; 3301Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3302select 2 - 3 REGEXP 3, 2 - (3 REGEXP 3), (2 - 3) REGEXP 3 union select * from v1; 3303 3304create or replace view v1 as select 2 - 0 | 1, 2 - (0 | 1), (2 - 0) | 1; 3305Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3306select 2 - 0 | 1, 2 - (0 | 1), (2 - 0) | 1 union select * from v1; 3307 3308create or replace view v1 as select 2 - 1 & 2, 2 - (1 & 2), (2 - 1) & 2; 3309Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3310select 2 - 1 & 2, 2 - (1 & 2), (2 - 1) & 2 union select * from v1; 3311 3312create or replace view v1 as select 2 - 1 << 1, 2 - (1 << 1), (2 - 1) << 1; 3313Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3314select 2 - 1 << 1, 2 - (1 << 1), (2 - 1) << 1 union select * from v1; 3315 3316create or replace view v1 as select 2 - 3 >> 3, 2 - (3 >> 3), (2 - 3) >> 3; 3317Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3318select 2 - 3 >> 3, 2 - (3 >> 3), (2 - 3) >> 3 union select * from v1; 3319 3320create or replace view v1 as select 2 - '2000-01-01' +INTERVAL 1 DAY, 2 - ('2000-01-01' +INTERVAL 1 DAY), (2 - '2000-01-01') +INTERVAL 1 DAY; 3321Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3322select 2 - '2000-01-01' +INTERVAL 1 DAY, 2 - ('2000-01-01' +INTERVAL 1 DAY), (2 - '2000-01-01') +INTERVAL 1 DAY union select * from v1; 3323 3324create or replace view v1 as select 2 - 3 + 3, 2 - (3 + 3), (2 - 3) + 3; 3325Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3326select 2 - 3 + 3, 2 - (3 + 3), (2 - 3) + 3 union select * from v1; 3327 3328create or replace view v1 as select 2 - 3 - 3, 2 - (3 - 3), (2 - 3) - 3; 3329Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3330select 2 - 3 - 3, 2 - (3 - 3), (2 - 3) - 3 union select * from v1; 3331 3332create or replace view v1 as select 2 - 3 * 3, 2 - (3 * 3), (2 - 3) * 3; 3333Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3334select 2 - 3 * 3, 2 - (3 * 3), (2 - 3) * 3 union select * from v1; 3335 3336create or replace view v1 as select 2 - 3 / 3, 2 - (3 / 3), (2 - 3) / 3; 3337Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3338select 2 - 3 / 3, 2 - (3 / 3), (2 - 3) / 3 union select * from v1; 3339 3340create or replace view v1 as select 2 - 3 DIV 3, 2 - (3 DIV 3), (2 - 3) DIV 3; 3341Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3342select 2 - 3 DIV 3, 2 - (3 DIV 3), (2 - 3) DIV 3 union select * from v1; 3343 3344create or replace view v1 as select 2 - 3 MOD 3, 2 - (3 MOD 3), (2 - 3) MOD 3; 3345Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3346select 2 - 3 MOD 3, 2 - (3 MOD 3), (2 - 3) MOD 3 union select * from v1; 3347 3348create or replace view v1 as select 2 - 3 % 3, 2 - (3 % 3), (2 - 3) % 3; 3349Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3350select 2 - 3 % 3, 2 - (3 % 3), (2 - 3) % 3 union select * from v1; 3351 3352create or replace view v1 as select 2 - 3 ^ 3, 2 - (3 ^ 3), (2 - 3) ^ 3; 3353Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3354select 2 - 3 ^ 3, 2 - (3 ^ 3), (2 - 3) ^ 3 union select * from v1; 3355 3356create or replace view v1 as select 2 - 3 BETWEEN 1 AND 3, 2 - (3 BETWEEN 1 AND 3), (2 - 3) BETWEEN 1 AND 3; 3357Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3358select 2 - 3 BETWEEN 1 AND 3, 2 - (3 BETWEEN 1 AND 3), (2 - 3) BETWEEN 1 AND 3 union select * from v1; 3359 3360create or replace view v1 as select 2 * 0 IS FALSE, 2 * (0 IS FALSE), (2 * 0) IS FALSE; 3361Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3362select 2 * 0 IS FALSE, 2 * (0 IS FALSE), (2 * 0) IS FALSE union select * from v1; 3363 3364create or replace view v1 as select charset(2 * 3 COLLATE latin1_bin), charset(2 * (3 COLLATE latin1_bin)), charset((2 * 3) COLLATE latin1_bin); 3365Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3366select charset(2 * 3 COLLATE latin1_bin), charset(2 * (3 COLLATE latin1_bin)), charset((2 * 3) COLLATE latin1_bin) union select * from v1; 3367 3368create or replace view v1 as select 2 * 0 IN (0,1), 2 * (0 IN (0,1)), (2 * 0) IN (0,1); 3369Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3370select 2 * 0 IN (0,1), 2 * (0 IN (0,1)), (2 * 0) IN (0,1) union select * from v1; 3371 3372create or replace view v1 as select 2 * 3 OR 3, 2 * (3 OR 3), (2 * 3) OR 3; 3373Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3374select 2 * 3 OR 3, 2 * (3 OR 3), (2 * 3) OR 3 union select * from v1; 3375 3376create or replace view v1 as select 2 * 3 || 3, 2 * (3 || 3), (2 * 3) || 3; 3377Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3378select 2 * 3 || 3, 2 * (3 || 3), (2 * 3) || 3 union select * from v1; 3379 3380create or replace view v1 as select 2 * 3 XOR 0, 2 * (3 XOR 0), (2 * 3) XOR 0; 3381Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3382select 2 * 3 XOR 0, 2 * (3 XOR 0), (2 * 3) XOR 0 union select * from v1; 3383 3384create or replace view v1 as select 2 * 3 AND 3, 2 * (3 AND 3), (2 * 3) AND 3; 3385Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3386select 2 * 3 AND 3, 2 * (3 AND 3), (2 * 3) AND 3 union select * from v1; 3387 3388create or replace view v1 as select 2 * 3 && 3, 2 * (3 && 3), (2 * 3) && 3; 3389Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3390select 2 * 3 && 3, 2 * (3 && 3), (2 * 3) && 3 union select * from v1; 3391 3392create or replace view v1 as select 2 * 3 = 3, 2 * (3 = 3), (2 * 3) = 3; 3393Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3394select 2 * 3 = 3, 2 * (3 = 3), (2 * 3) = 3 union select * from v1; 3395 3396create or replace view v1 as select 2 * 3 <=> 3, 2 * (3 <=> 3), (2 * 3) <=> 3; 3397Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3398select 2 * 3 <=> 3, 2 * (3 <=> 3), (2 * 3) <=> 3 union select * from v1; 3399 3400create or replace view v1 as select 2 * 3 >= 3, 2 * (3 >= 3), (2 * 3) >= 3; 3401Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3402select 2 * 3 >= 3, 2 * (3 >= 3), (2 * 3) >= 3 union select * from v1; 3403 3404create or replace view v1 as select 2 * 3 <= 3, 2 * (3 <= 3), (2 * 3) <= 3; 3405Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3406select 2 * 3 <= 3, 2 * (3 <= 3), (2 * 3) <= 3 union select * from v1; 3407 3408create or replace view v1 as select 2 * 0 < 3, 2 * (0 < 3), (2 * 0) < 3; 3409Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3410select 2 * 0 < 3, 2 * (0 < 3), (2 * 0) < 3 union select * from v1; 3411 3412create or replace view v1 as select 2 * 3 <> 3, 2 * (3 <> 3), (2 * 3) <> 3; 3413Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3414select 2 * 3 <> 3, 2 * (3 <> 3), (2 * 3) <> 3 union select * from v1; 3415 3416create or replace view v1 as select 2 * 3 > 3, 2 * (3 > 3), (2 * 3) > 3; 3417Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3418select 2 * 3 > 3, 2 * (3 > 3), (2 * 3) > 3 union select * from v1; 3419 3420create or replace view v1 as select 2 * 3 != 3, 2 * (3 != 3), (2 * 3) != 3; 3421Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3422select 2 * 3 != 3, 2 * (3 != 3), (2 * 3) != 3 union select * from v1; 3423 3424create or replace view v1 as select 2 * 3 LIKE 3, 2 * (3 LIKE 3), (2 * 3) LIKE 3; 3425Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3426select 2 * 3 LIKE 3, 2 * (3 LIKE 3), (2 * 3) LIKE 3 union select * from v1; 3427 3428create or replace view v1 as select 2 * 3 REGEXP 3, 2 * (3 REGEXP 3), (2 * 3) REGEXP 3; 3429Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3430select 2 * 3 REGEXP 3, 2 * (3 REGEXP 3), (2 * 3) REGEXP 3 union select * from v1; 3431 3432create or replace view v1 as select 2 * 3 | 3, 2 * (3 | 3), (2 * 3) | 3; 3433Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3434select 2 * 3 | 3, 2 * (3 | 3), (2 * 3) | 3 union select * from v1; 3435 3436create or replace view v1 as select 2 * 3 & 3, 2 * (3 & 3), (2 * 3) & 3; 3437Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3438select 2 * 3 & 3, 2 * (3 & 3), (2 * 3) & 3 union select * from v1; 3439 3440create or replace view v1 as select 2 * 3 >> 2, 2 * (3 >> 2), (2 * 3) >> 2; 3441Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3442select 2 * 3 >> 2, 2 * (3 >> 2), (2 * 3) >> 2 union select * from v1; 3443 3444create or replace view v1 as select 2 * '2000-01-01' +INTERVAL 1 DAY, 2 * ('2000-01-01' +INTERVAL 1 DAY), (2 * '2000-01-01') +INTERVAL 1 DAY; 3445Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3446select 2 * '2000-01-01' +INTERVAL 1 DAY, 2 * ('2000-01-01' +INTERVAL 1 DAY), (2 * '2000-01-01') +INTERVAL 1 DAY union select * from v1; 3447 3448create or replace view v1 as select 2 * 3 + 3, 2 * (3 + 3), (2 * 3) + 3; 3449Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3450select 2 * 3 + 3, 2 * (3 + 3), (2 * 3) + 3 union select * from v1; 3451 3452create or replace view v1 as select 2 * 3 - 3, 2 * (3 - 3), (2 * 3) - 3; 3453Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3454select 2 * 3 - 3, 2 * (3 - 3), (2 * 3) - 3 union select * from v1; 3455 3456create or replace view v1 as select 2 * 3 DIV 2, 2 * (3 DIV 2), (2 * 3) DIV 2; 3457Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3458select 2 * 3 DIV 2, 2 * (3 DIV 2), (2 * 3) DIV 2 union select * from v1; 3459 3460create or replace view v1 as select 2 * 3 MOD 2, 2 * (3 MOD 2), (2 * 3) MOD 2; 3461Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3462select 2 * 3 MOD 2, 2 * (3 MOD 2), (2 * 3) MOD 2 union select * from v1; 3463 3464create or replace view v1 as select 2 * 3 % 2, 2 * (3 % 2), (2 * 3) % 2; 3465Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3466select 2 * 3 % 2, 2 * (3 % 2), (2 * 3) % 2 union select * from v1; 3467 3468create or replace view v1 as select 2 * 3 ^ 3, 2 * (3 ^ 3), (2 * 3) ^ 3; 3469Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3470select 2 * 3 ^ 3, 2 * (3 ^ 3), (2 * 3) ^ 3 union select * from v1; 3471 3472create or replace view v1 as select 2 * 3 BETWEEN 1 AND 3, 2 * (3 BETWEEN 1 AND 3), (2 * 3) BETWEEN 1 AND 3; 3473Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3474select 2 * 3 BETWEEN 1 AND 3, 2 * (3 BETWEEN 1 AND 3), (2 * 3) BETWEEN 1 AND 3 union select * from v1; 3475 3476create or replace view v1 as select 2 / 3 IS FALSE, 2 / (3 IS FALSE), (2 / 3) IS FALSE; 3477Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3478select 2 / 3 IS FALSE, 2 / (3 IS FALSE), (2 / 3) IS FALSE union select * from v1; 3479 3480create or replace view v1 as select charset(2 / 3 COLLATE latin1_bin), charset(2 / (3 COLLATE latin1_bin)), charset((2 / 3) COLLATE latin1_bin); 3481Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3482select charset(2 / 3 COLLATE latin1_bin), charset(2 / (3 COLLATE latin1_bin)), charset((2 / 3) COLLATE latin1_bin) union select * from v1; 3483 3484create or replace view v1 as select 2 / 3 IN (0,1), 2 / (3 IN (0,1)), (2 / 3) IN (0,1); 3485Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3486select 2 / 3 IN (0,1), 2 / (3 IN (0,1)), (2 / 3) IN (0,1) union select * from v1; 3487 3488create or replace view v1 as select 2 / 3 OR 3, 2 / (3 OR 3), (2 / 3) OR 3; 3489Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3490select 2 / 3 OR 3, 2 / (3 OR 3), (2 / 3) OR 3 union select * from v1; 3491 3492create or replace view v1 as select 2 / 3 || 3, 2 / (3 || 3), (2 / 3) || 3; 3493Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3494select 2 / 3 || 3, 2 / (3 || 3), (2 / 3) || 3 union select * from v1; 3495 3496create or replace view v1 as select 2 / 3 XOR 3, 2 / (3 XOR 3), (2 / 3) XOR 3; 3497Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3498select 2 / 3 XOR 3, 2 / (3 XOR 3), (2 / 3) XOR 3 union select * from v1; 3499 3500create or replace view v1 as select 2 / 3 AND 3, 2 / (3 AND 3), (2 / 3) AND 3; 3501Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3502select 2 / 3 AND 3, 2 / (3 AND 3), (2 / 3) AND 3 union select * from v1; 3503 3504create or replace view v1 as select 2 / 3 && 3, 2 / (3 && 3), (2 / 3) && 3; 3505Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3506select 2 / 3 && 3, 2 / (3 && 3), (2 / 3) && 3 union select * from v1; 3507 3508create or replace view v1 as select 2 / 3 = 3, 2 / (3 = 3), (2 / 3) = 3; 3509Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3510select 2 / 3 = 3, 2 / (3 = 3), (2 / 3) = 3 union select * from v1; 3511 3512create or replace view v1 as select 2 / 3 <=> 3, 2 / (3 <=> 3), (2 / 3) <=> 3; 3513Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3514select 2 / 3 <=> 3, 2 / (3 <=> 3), (2 / 3) <=> 3 union select * from v1; 3515 3516create or replace view v1 as select 2 / 3 >= 3, 2 / (3 >= 3), (2 / 3) >= 3; 3517Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3518select 2 / 3 >= 3, 2 / (3 >= 3), (2 / 3) >= 3 union select * from v1; 3519 3520create or replace view v1 as select 2 / 3 <= 3, 2 / (3 <= 3), (2 / 3) <= 3; 3521Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3522select 2 / 3 <= 3, 2 / (3 <= 3), (2 / 3) <= 3 union select * from v1; 3523 3524create or replace view v1 as select 2 / 3 < 3, 2 / (3 < 3), (2 / 3) < 3; 3525Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3526select 2 / 3 < 3, 2 / (3 < 3), (2 / 3) < 3 union select * from v1; 3527 3528create or replace view v1 as select 2 / 3 <> 3, 2 / (3 <> 3), (2 / 3) <> 3; 3529Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3530select 2 / 3 <> 3, 2 / (3 <> 3), (2 / 3) <> 3 union select * from v1; 3531 3532create or replace view v1 as select 2 / 3 > 3, 2 / (3 > 3), (2 / 3) > 3; 3533Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3534select 2 / 3 > 3, 2 / (3 > 3), (2 / 3) > 3 union select * from v1; 3535 3536create or replace view v1 as select 2 / 3 != 3, 2 / (3 != 3), (2 / 3) != 3; 3537Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3538select 2 / 3 != 3, 2 / (3 != 3), (2 / 3) != 3 union select * from v1; 3539 3540create or replace view v1 as select 2 / 3 LIKE 3, 2 / (3 LIKE 3), (2 / 3) LIKE 3; 3541Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3542select 2 / 3 LIKE 3, 2 / (3 LIKE 3), (2 / 3) LIKE 3 union select * from v1; 3543 3544create or replace view v1 as select 2 / 3 REGEXP 3, 2 / (3 REGEXP 3), (2 / 3) REGEXP 3; 3545Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3546select 2 / 3 REGEXP 3, 2 / (3 REGEXP 3), (2 / 3) REGEXP 3 union select * from v1; 3547 3548create or replace view v1 as select 2 / 3 | 3, 2 / (3 | 3), (2 / 3) | 3; 3549Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3550select 2 / 3 | 3, 2 / (3 | 3), (2 / 3) | 3 union select * from v1; 3551 3552create or replace view v1 as select 2 / 3 & 3, 2 / (3 & 3), (2 / 3) & 3; 3553Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3554select 2 / 3 & 3, 2 / (3 & 3), (2 / 3) & 3 union select * from v1; 3555 3556create or replace view v1 as select 2 / 3 << 3, 2 / (3 << 3), (2 / 3) << 3; 3557Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3558select 2 / 3 << 3, 2 / (3 << 3), (2 / 3) << 3 union select * from v1; 3559 3560create or replace view v1 as select 2 / 3 >> 3, 2 / (3 >> 3), (2 / 3) >> 3; 3561Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3562select 2 / 3 >> 3, 2 / (3 >> 3), (2 / 3) >> 3 union select * from v1; 3563 3564create or replace view v1 as select 2 / '2000-01-01' +INTERVAL 1 DAY, 2 / ('2000-01-01' +INTERVAL 1 DAY), (2 / '2000-01-01') +INTERVAL 1 DAY; 3565Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3566select 2 / '2000-01-01' +INTERVAL 1 DAY, 2 / ('2000-01-01' +INTERVAL 1 DAY), (2 / '2000-01-01') +INTERVAL 1 DAY union select * from v1; 3567 3568create or replace view v1 as select 2 / 3 + 3, 2 / (3 + 3), (2 / 3) + 3; 3569Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3570select 2 / 3 + 3, 2 / (3 + 3), (2 / 3) + 3 union select * from v1; 3571 3572create or replace view v1 as select 2 / 3 - 3, 2 / (3 - 3), (2 / 3) - 3; 3573Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3574select 2 / 3 - 3, 2 / (3 - 3), (2 / 3) - 3 union select * from v1; 3575 3576create or replace view v1 as select 2 / 3 * 3, 2 / (3 * 3), (2 / 3) * 3; 3577Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3578select 2 / 3 * 3, 2 / (3 * 3), (2 / 3) * 3 union select * from v1; 3579 3580create or replace view v1 as select 2 / 3 / 3, 2 / (3 / 3), (2 / 3) / 3; 3581Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3582select 2 / 3 / 3, 2 / (3 / 3), (2 / 3) / 3 union select * from v1; 3583 3584create or replace view v1 as select 2 / 3 DIV 3, 2 / (3 DIV 3), (2 / 3) DIV 3; 3585Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3586select 2 / 3 DIV 3, 2 / (3 DIV 3), (2 / 3) DIV 3 union select * from v1; 3587 3588create or replace view v1 as select 2 / 3 MOD 3, 2 / (3 MOD 3), (2 / 3) MOD 3; 3589Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3590select 2 / 3 MOD 3, 2 / (3 MOD 3), (2 / 3) MOD 3 union select * from v1; 3591 3592create or replace view v1 as select 2 / 3 % 3, 2 / (3 % 3), (2 / 3) % 3; 3593Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3594select 2 / 3 % 3, 2 / (3 % 3), (2 / 3) % 3 union select * from v1; 3595 3596create or replace view v1 as select 2 / 3 ^ 3, 2 / (3 ^ 3), (2 / 3) ^ 3; 3597Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3598select 2 / 3 ^ 3, 2 / (3 ^ 3), (2 / 3) ^ 3 union select * from v1; 3599 3600create or replace view v1 as select 2 / 3 BETWEEN 1 AND 3, 2 / (3 BETWEEN 1 AND 3), (2 / 3) BETWEEN 1 AND 3; 3601Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3602select 2 / 3 BETWEEN 1 AND 3, 2 / (3 BETWEEN 1 AND 3), (2 / 3) BETWEEN 1 AND 3 union select * from v1; 3603 3604create or replace view v1 as select 2 DIV 3 IS FALSE, 2 DIV (3 IS FALSE), (2 DIV 3) IS FALSE; 3605Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3606select 2 DIV 3 IS FALSE, 2 DIV (3 IS FALSE), (2 DIV 3) IS FALSE union select * from v1; 3607 3608create or replace view v1 as select charset(2 DIV 3 COLLATE latin1_bin), charset(2 DIV (3 COLLATE latin1_bin)), charset((2 DIV 3) COLLATE latin1_bin); 3609Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3610select charset(2 DIV 3 COLLATE latin1_bin), charset(2 DIV (3 COLLATE latin1_bin)), charset((2 DIV 3) COLLATE latin1_bin) union select * from v1; 3611 3612create or replace view v1 as select 2 DIV 3 IN (0,1), 2 DIV (3 IN (0,1)), (2 DIV 3) IN (0,1); 3613Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3614select 2 DIV 3 IN (0,1), 2 DIV (3 IN (0,1)), (2 DIV 3) IN (0,1) union select * from v1; 3615 3616create or replace view v1 as select 2 DIV 3 OR 3, 2 DIV (3 OR 3), (2 DIV 3) OR 3; 3617Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3618select 2 DIV 3 OR 3, 2 DIV (3 OR 3), (2 DIV 3) OR 3 union select * from v1; 3619 3620create or replace view v1 as select 2 DIV 3 || 3, 2 DIV (3 || 3), (2 DIV 3) || 3; 3621Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3622select 2 DIV 3 || 3, 2 DIV (3 || 3), (2 DIV 3) || 3 union select * from v1; 3623 3624create or replace view v1 as select 2 DIV 3 XOR 3, 2 DIV (3 XOR 3), (2 DIV 3) XOR 3; 3625Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3626select 2 DIV 3 XOR 3, 2 DIV (3 XOR 3), (2 DIV 3) XOR 3 union select * from v1; 3627 3628create or replace view v1 as select 2 DIV 3 AND 3, 2 DIV (3 AND 3), (2 DIV 3) AND 3; 3629Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3630select 2 DIV 3 AND 3, 2 DIV (3 AND 3), (2 DIV 3) AND 3 union select * from v1; 3631 3632create or replace view v1 as select 2 DIV 3 && 3, 2 DIV (3 && 3), (2 DIV 3) && 3; 3633Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3634select 2 DIV 3 && 3, 2 DIV (3 && 3), (2 DIV 3) && 3 union select * from v1; 3635 3636create or replace view v1 as select 2 DIV 3 = 3, 2 DIV (3 = 3), (2 DIV 3) = 3; 3637Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3638select 2 DIV 3 = 3, 2 DIV (3 = 3), (2 DIV 3) = 3 union select * from v1; 3639 3640create or replace view v1 as select 2 DIV 3 <=> 3, 2 DIV (3 <=> 3), (2 DIV 3) <=> 3; 3641Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3642select 2 DIV 3 <=> 3, 2 DIV (3 <=> 3), (2 DIV 3) <=> 3 union select * from v1; 3643 3644create or replace view v1 as select 2 DIV 3 >= 3, 2 DIV (3 >= 3), (2 DIV 3) >= 3; 3645Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3646select 2 DIV 3 >= 3, 2 DIV (3 >= 3), (2 DIV 3) >= 3 union select * from v1; 3647 3648create or replace view v1 as select 2 DIV 3 <= 3, 2 DIV (3 <= 3), (2 DIV 3) <= 3; 3649Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3650select 2 DIV 3 <= 3, 2 DIV (3 <= 3), (2 DIV 3) <= 3 union select * from v1; 3651 3652create or replace view v1 as select 2 DIV 3 < 3, 2 DIV (3 < 3), (2 DIV 3) < 3; 3653Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3654select 2 DIV 3 < 3, 2 DIV (3 < 3), (2 DIV 3) < 3 union select * from v1; 3655 3656create or replace view v1 as select 2 DIV 3 <> 3, 2 DIV (3 <> 3), (2 DIV 3) <> 3; 3657Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3658select 2 DIV 3 <> 3, 2 DIV (3 <> 3), (2 DIV 3) <> 3 union select * from v1; 3659 3660create or replace view v1 as select 2 DIV 3 > 3, 2 DIV (3 > 3), (2 DIV 3) > 3; 3661Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3662select 2 DIV 3 > 3, 2 DIV (3 > 3), (2 DIV 3) > 3 union select * from v1; 3663 3664create or replace view v1 as select 2 DIV 3 != 3, 2 DIV (3 != 3), (2 DIV 3) != 3; 3665Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3666select 2 DIV 3 != 3, 2 DIV (3 != 3), (2 DIV 3) != 3 union select * from v1; 3667 3668create or replace view v1 as select 2 DIV 3 LIKE 3, 2 DIV (3 LIKE 3), (2 DIV 3) LIKE 3; 3669Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3670select 2 DIV 3 LIKE 3, 2 DIV (3 LIKE 3), (2 DIV 3) LIKE 3 union select * from v1; 3671 3672create or replace view v1 as select 2 DIV 3 REGEXP 3, 2 DIV (3 REGEXP 3), (2 DIV 3) REGEXP 3; 3673Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3674select 2 DIV 3 REGEXP 3, 2 DIV (3 REGEXP 3), (2 DIV 3) REGEXP 3 union select * from v1; 3675 3676create or replace view v1 as select 2 DIV 3 | 3, 2 DIV (3 | 3), (2 DIV 3) | 3; 3677Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3678select 2 DIV 3 | 3, 2 DIV (3 | 3), (2 DIV 3) | 3 union select * from v1; 3679 3680create or replace view v1 as select 2 DIV 3 & 1, 2 DIV (3 & 1), (2 DIV 3) & 1; 3681Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3682select 2 DIV 3 & 1, 2 DIV (3 & 1), (2 DIV 3) & 1 union select * from v1; 3683 3684create or replace view v1 as select 4 DIV 3 << 3, 4 DIV (3 << 3), (4 DIV 3) << 3; 3685Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3686select 4 DIV 3 << 3, 4 DIV (3 << 3), (4 DIV 3) << 3 union select * from v1; 3687 3688create or replace view v1 as select 2 DIV 3 >> 3, 2 DIV (3 >> 3), (2 DIV 3) >> 3; 3689Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3690select 2 DIV 3 >> 3, 2 DIV (3 >> 3), (2 DIV 3) >> 3 union select * from v1; 3691 3692create or replace view v1 as select 2 DIV '2000-01-01' +INTERVAL 1 DAY, 2 DIV ('2000-01-01' +INTERVAL 1 DAY), (2 DIV '2000-01-01') +INTERVAL 1 DAY; 3693Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3694select 2 DIV '2000-01-01' +INTERVAL 1 DAY, 2 DIV ('2000-01-01' +INTERVAL 1 DAY), (2 DIV '2000-01-01') +INTERVAL 1 DAY union select * from v1; 3695 3696create or replace view v1 as select 2 DIV 3 + 3, 2 DIV (3 + 3), (2 DIV 3) + 3; 3697Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3698select 2 DIV 3 + 3, 2 DIV (3 + 3), (2 DIV 3) + 3 union select * from v1; 3699 3700create or replace view v1 as select 2 DIV 3 - 3, 2 DIV (3 - 3), (2 DIV 3) - 3; 3701Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3702select 2 DIV 3 - 3, 2 DIV (3 - 3), (2 DIV 3) - 3 union select * from v1; 3703 3704create or replace view v1 as select 4 DIV 3 * 3, 4 DIV (3 * 3), (4 DIV 3) * 3; 3705Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3706select 4 DIV 3 * 3, 4 DIV (3 * 3), (4 DIV 3) * 3 union select * from v1; 3707 3708create or replace view v1 as select 2 DIV 3 / 3, 2 DIV (3 / 3), (2 DIV 3) / 3; 3709Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3710select 2 DIV 3 / 3, 2 DIV (3 / 3), (2 DIV 3) / 3 union select * from v1; 3711 3712create or replace view v1 as select 2 DIV 3 DIV 3, 2 DIV (3 DIV 3), (2 DIV 3) DIV 3; 3713Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3714select 2 DIV 3 DIV 3, 2 DIV (3 DIV 3), (2 DIV 3) DIV 3 union select * from v1; 3715 3716create or replace view v1 as select 2 DIV 3 MOD 3, 2 DIV (3 MOD 3), (2 DIV 3) MOD 3; 3717Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3718select 2 DIV 3 MOD 3, 2 DIV (3 MOD 3), (2 DIV 3) MOD 3 union select * from v1; 3719 3720create or replace view v1 as select 2 DIV 3 % 3, 2 DIV (3 % 3), (2 DIV 3) % 3; 3721Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3722select 2 DIV 3 % 3, 2 DIV (3 % 3), (2 DIV 3) % 3 union select * from v1; 3723 3724create or replace view v1 as select 2 DIV 3 ^ 3, 2 DIV (3 ^ 3), (2 DIV 3) ^ 3; 3725Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3726select 2 DIV 3 ^ 3, 2 DIV (3 ^ 3), (2 DIV 3) ^ 3 union select * from v1; 3727 3728create or replace view v1 as select 2 DIV 3 BETWEEN 1 AND 3, 2 DIV (3 BETWEEN 1 AND 3), (2 DIV 3) BETWEEN 1 AND 3; 3729Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3730select 2 DIV 3 BETWEEN 1 AND 3, 2 DIV (3 BETWEEN 1 AND 3), (2 DIV 3) BETWEEN 1 AND 3 union select * from v1; 3731 3732create or replace view v1 as select 2 MOD 3 IS FALSE, 2 MOD (3 IS FALSE), (2 MOD 3) IS FALSE; 3733Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3734select 2 MOD 3 IS FALSE, 2 MOD (3 IS FALSE), (2 MOD 3) IS FALSE union select * from v1; 3735 3736create or replace view v1 as select charset(2 MOD 3 COLLATE latin1_bin), charset(2 MOD (3 COLLATE latin1_bin)), charset((2 MOD 3) COLLATE latin1_bin); 3737Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3738select charset(2 MOD 3 COLLATE latin1_bin), charset(2 MOD (3 COLLATE latin1_bin)), charset((2 MOD 3) COLLATE latin1_bin) union select * from v1; 3739 3740create or replace view v1 as select 2 MOD 3 IN (0,1), 2 MOD (3 IN (0,1)), (2 MOD 3) IN (0,1); 3741Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3742select 2 MOD 3 IN (0,1), 2 MOD (3 IN (0,1)), (2 MOD 3) IN (0,1) union select * from v1; 3743 3744create or replace view v1 as select 2 MOD 3 OR 3, 2 MOD (3 OR 3), (2 MOD 3) OR 3; 3745Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3746select 2 MOD 3 OR 3, 2 MOD (3 OR 3), (2 MOD 3) OR 3 union select * from v1; 3747 3748create or replace view v1 as select 2 MOD 3 || 3, 2 MOD (3 || 3), (2 MOD 3) || 3; 3749Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3750select 2 MOD 3 || 3, 2 MOD (3 || 3), (2 MOD 3) || 3 union select * from v1; 3751 3752create or replace view v1 as select 2 MOD 3 XOR 3, 2 MOD (3 XOR 3), (2 MOD 3) XOR 3; 3753Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3754select 2 MOD 3 XOR 3, 2 MOD (3 XOR 3), (2 MOD 3) XOR 3 union select * from v1; 3755 3756create or replace view v1 as select 2 MOD 3 AND 3, 2 MOD (3 AND 3), (2 MOD 3) AND 3; 3757Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3758select 2 MOD 3 AND 3, 2 MOD (3 AND 3), (2 MOD 3) AND 3 union select * from v1; 3759 3760create or replace view v1 as select 2 MOD 3 && 3, 2 MOD (3 && 3), (2 MOD 3) && 3; 3761Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3762select 2 MOD 3 && 3, 2 MOD (3 && 3), (2 MOD 3) && 3 union select * from v1; 3763 3764create or replace view v1 as select 2 MOD 3 = 2, 2 MOD (3 = 2), (2 MOD 3) = 2; 3765Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3766select 2 MOD 3 = 2, 2 MOD (3 = 2), (2 MOD 3) = 2 union select * from v1; 3767 3768create or replace view v1 as select 2 MOD 3 <=> 2, 2 MOD (3 <=> 2), (2 MOD 3) <=> 2; 3769Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3770select 2 MOD 3 <=> 2, 2 MOD (3 <=> 2), (2 MOD 3) <=> 2 union select * from v1; 3771 3772create or replace view v1 as select 2 MOD 3 >= 1, 2 MOD (3 >= 1), (2 MOD 3) >= 1; 3773Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3774select 2 MOD 3 >= 1, 2 MOD (3 >= 1), (2 MOD 3) >= 1 union select * from v1; 3775 3776create or replace view v1 as select 2 MOD 3 <= 3, 2 MOD (3 <= 3), (2 MOD 3) <= 3; 3777Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3778select 2 MOD 3 <= 3, 2 MOD (3 <= 3), (2 MOD 3) <= 3 union select * from v1; 3779 3780create or replace view v1 as select 2 MOD 3 < 3, 2 MOD (3 < 3), (2 MOD 3) < 3; 3781Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3782select 2 MOD 3 < 3, 2 MOD (3 < 3), (2 MOD 3) < 3 union select * from v1; 3783 3784create or replace view v1 as select 2 MOD 3 <> 3, 2 MOD (3 <> 3), (2 MOD 3) <> 3; 3785Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3786select 2 MOD 3 <> 3, 2 MOD (3 <> 3), (2 MOD 3) <> 3 union select * from v1; 3787 3788create or replace view v1 as select 2 MOD 3 > 3, 2 MOD (3 > 3), (2 MOD 3) > 3; 3789Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3790select 2 MOD 3 > 3, 2 MOD (3 > 3), (2 MOD 3) > 3 union select * from v1; 3791 3792create or replace view v1 as select 2 MOD 3 != 3, 2 MOD (3 != 3), (2 MOD 3) != 3; 3793Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3794select 2 MOD 3 != 3, 2 MOD (3 != 3), (2 MOD 3) != 3 union select * from v1; 3795 3796create or replace view v1 as select 2 MOD 3 LIKE 2, 2 MOD (3 LIKE 2), (2 MOD 3) LIKE 2; 3797Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3798select 2 MOD 3 LIKE 2, 2 MOD (3 LIKE 2), (2 MOD 3) LIKE 2 union select * from v1; 3799 3800create or replace view v1 as select 2 MOD 3 REGEXP 2, 2 MOD (3 REGEXP 2), (2 MOD 3) REGEXP 2; 3801Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3802select 2 MOD 3 REGEXP 2, 2 MOD (3 REGEXP 2), (2 MOD 3) REGEXP 2 union select * from v1; 3803 3804create or replace view v1 as select 2 MOD 3 | 3, 2 MOD (3 | 3), (2 MOD 3) | 3; 3805Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3806select 2 MOD 3 | 3, 2 MOD (3 | 3), (2 MOD 3) | 3 union select * from v1; 3807 3808create or replace view v1 as select 2 MOD 4 & 4, 2 MOD (4 & 4), (2 MOD 4) & 4; 3809Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3810select 2 MOD 4 & 4, 2 MOD (4 & 4), (2 MOD 4) & 4 union select * from v1; 3811 3812create or replace view v1 as select 2 MOD 3 << 3, 2 MOD (3 << 3), (2 MOD 3) << 3; 3813Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3814select 2 MOD 3 << 3, 2 MOD (3 << 3), (2 MOD 3) << 3 union select * from v1; 3815 3816create or replace view v1 as select 2 MOD 3 >> 3, 2 MOD (3 >> 3), (2 MOD 3) >> 3; 3817Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3818select 2 MOD 3 >> 3, 2 MOD (3 >> 3), (2 MOD 3) >> 3 union select * from v1; 3819 3820create or replace view v1 as select 2 MOD '2000-01-01' +INTERVAL 1 DAY, 2 MOD ('2000-01-01' +INTERVAL 1 DAY), (2 MOD '2000-01-01') +INTERVAL 1 DAY; 3821Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3822select 2 MOD '2000-01-01' +INTERVAL 1 DAY, 2 MOD ('2000-01-01' +INTERVAL 1 DAY), (2 MOD '2000-01-01') +INTERVAL 1 DAY union select * from v1; 3823 3824create or replace view v1 as select 2 MOD 3 + 3, 2 MOD (3 + 3), (2 MOD 3) + 3; 3825Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3826select 2 MOD 3 + 3, 2 MOD (3 + 3), (2 MOD 3) + 3 union select * from v1; 3827 3828create or replace view v1 as select 2 MOD 3 - 3, 2 MOD (3 - 3), (2 MOD 3) - 3; 3829Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3830select 2 MOD 3 - 3, 2 MOD (3 - 3), (2 MOD 3) - 3 union select * from v1; 3831 3832create or replace view v1 as select 2 MOD 3 * 3, 2 MOD (3 * 3), (2 MOD 3) * 3; 3833Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3834select 2 MOD 3 * 3, 2 MOD (3 * 3), (2 MOD 3) * 3 union select * from v1; 3835 3836create or replace view v1 as select 2 MOD 3 / 3, 2 MOD (3 / 3), (2 MOD 3) / 3; 3837Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3838select 2 MOD 3 / 3, 2 MOD (3 / 3), (2 MOD 3) / 3 union select * from v1; 3839 3840create or replace view v1 as select 3 MOD 4 DIV 3, 3 MOD (4 DIV 3), (3 MOD 4) DIV 3; 3841Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3842select 3 MOD 4 DIV 3, 3 MOD (4 DIV 3), (3 MOD 4) DIV 3 union select * from v1; 3843 3844create or replace view v1 as select 2 MOD 3 MOD 3, 2 MOD (3 MOD 3), (2 MOD 3) MOD 3; 3845Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3846select 2 MOD 3 MOD 3, 2 MOD (3 MOD 3), (2 MOD 3) MOD 3 union select * from v1; 3847 3848create or replace view v1 as select 2 MOD 3 % 3, 2 MOD (3 % 3), (2 MOD 3) % 3; 3849Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3850select 2 MOD 3 % 3, 2 MOD (3 % 3), (2 MOD 3) % 3 union select * from v1; 3851 3852create or replace view v1 as select 2 MOD 3 ^ 3, 2 MOD (3 ^ 3), (2 MOD 3) ^ 3; 3853Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3854select 2 MOD 3 ^ 3, 2 MOD (3 ^ 3), (2 MOD 3) ^ 3 union select * from v1; 3855 3856create or replace view v1 as select 2 MOD 3 BETWEEN 1 AND 3, 2 MOD (3 BETWEEN 1 AND 3), (2 MOD 3) BETWEEN 1 AND 3; 3857Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3858select 2 MOD 3 BETWEEN 1 AND 3, 2 MOD (3 BETWEEN 1 AND 3), (2 MOD 3) BETWEEN 1 AND 3 union select * from v1; 3859 3860create or replace view v1 as select 2 % 3 IS FALSE, 2 % (3 IS FALSE), (2 % 3) IS FALSE; 3861Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3862select 2 % 3 IS FALSE, 2 % (3 IS FALSE), (2 % 3) IS FALSE union select * from v1; 3863 3864create or replace view v1 as select charset(2 % 3 COLLATE latin1_bin), charset(2 % (3 COLLATE latin1_bin)), charset((2 % 3) COLLATE latin1_bin); 3865Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3866select charset(2 % 3 COLLATE latin1_bin), charset(2 % (3 COLLATE latin1_bin)), charset((2 % 3) COLLATE latin1_bin) union select * from v1; 3867 3868create or replace view v1 as select 2 % 3 IN (0,1), 2 % (3 IN (0,1)), (2 % 3) IN (0,1); 3869Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3870select 2 % 3 IN (0,1), 2 % (3 IN (0,1)), (2 % 3) IN (0,1) union select * from v1; 3871 3872create or replace view v1 as select 2 % 3 OR 3, 2 % (3 OR 3), (2 % 3) OR 3; 3873Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3874select 2 % 3 OR 3, 2 % (3 OR 3), (2 % 3) OR 3 union select * from v1; 3875 3876create or replace view v1 as select 2 % 3 || 3, 2 % (3 || 3), (2 % 3) || 3; 3877Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3878select 2 % 3 || 3, 2 % (3 || 3), (2 % 3) || 3 union select * from v1; 3879 3880create or replace view v1 as select 2 % 3 XOR 3, 2 % (3 XOR 3), (2 % 3) XOR 3; 3881Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3882select 2 % 3 XOR 3, 2 % (3 XOR 3), (2 % 3) XOR 3 union select * from v1; 3883 3884create or replace view v1 as select 2 % 3 AND 3, 2 % (3 AND 3), (2 % 3) AND 3; 3885Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3886select 2 % 3 AND 3, 2 % (3 AND 3), (2 % 3) AND 3 union select * from v1; 3887 3888create or replace view v1 as select 2 % 3 && 3, 2 % (3 && 3), (2 % 3) && 3; 3889Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3890select 2 % 3 && 3, 2 % (3 && 3), (2 % 3) && 3 union select * from v1; 3891 3892create or replace view v1 as select 2 % 3 = 2, 2 % (3 = 2), (2 % 3) = 2; 3893Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3894select 2 % 3 = 2, 2 % (3 = 2), (2 % 3) = 2 union select * from v1; 3895 3896create or replace view v1 as select 2 % 3 <=> 2, 2 % (3 <=> 2), (2 % 3) <=> 2; 3897Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3898select 2 % 3 <=> 2, 2 % (3 <=> 2), (2 % 3) <=> 2 union select * from v1; 3899 3900create or replace view v1 as select 2 % 3 >= 1, 2 % (3 >= 1), (2 % 3) >= 1; 3901Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3902select 2 % 3 >= 1, 2 % (3 >= 1), (2 % 3) >= 1 union select * from v1; 3903 3904create or replace view v1 as select 2 % 3 <= 3, 2 % (3 <= 3), (2 % 3) <= 3; 3905Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3906select 2 % 3 <= 3, 2 % (3 <= 3), (2 % 3) <= 3 union select * from v1; 3907 3908create or replace view v1 as select 2 % 3 < 3, 2 % (3 < 3), (2 % 3) < 3; 3909Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3910select 2 % 3 < 3, 2 % (3 < 3), (2 % 3) < 3 union select * from v1; 3911 3912create or replace view v1 as select 2 % 3 <> 3, 2 % (3 <> 3), (2 % 3) <> 3; 3913Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3914select 2 % 3 <> 3, 2 % (3 <> 3), (2 % 3) <> 3 union select * from v1; 3915 3916create or replace view v1 as select 2 % 3 > 3, 2 % (3 > 3), (2 % 3) > 3; 3917Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3918select 2 % 3 > 3, 2 % (3 > 3), (2 % 3) > 3 union select * from v1; 3919 3920create or replace view v1 as select 2 % 3 != 3, 2 % (3 != 3), (2 % 3) != 3; 3921Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3922select 2 % 3 != 3, 2 % (3 != 3), (2 % 3) != 3 union select * from v1; 3923 3924create or replace view v1 as select 2 % 3 LIKE 2, 2 % (3 LIKE 2), (2 % 3) LIKE 2; 3925Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3926select 2 % 3 LIKE 2, 2 % (3 LIKE 2), (2 % 3) LIKE 2 union select * from v1; 3927 3928create or replace view v1 as select 2 % 3 REGEXP 2, 2 % (3 REGEXP 2), (2 % 3) REGEXP 2; 3929Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3930select 2 % 3 REGEXP 2, 2 % (3 REGEXP 2), (2 % 3) REGEXP 2 union select * from v1; 3931 3932create or replace view v1 as select 2 % 3 | 3, 2 % (3 | 3), (2 % 3) | 3; 3933Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3934select 2 % 3 | 3, 2 % (3 | 3), (2 % 3) | 3 union select * from v1; 3935 3936create or replace view v1 as select 2 % 4 & 4, 2 % (4 & 4), (2 % 4) & 4; 3937Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3938select 2 % 4 & 4, 2 % (4 & 4), (2 % 4) & 4 union select * from v1; 3939 3940create or replace view v1 as select 2 % 3 << 3, 2 % (3 << 3), (2 % 3) << 3; 3941Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3942select 2 % 3 << 3, 2 % (3 << 3), (2 % 3) << 3 union select * from v1; 3943 3944create or replace view v1 as select 2 % 3 >> 3, 2 % (3 >> 3), (2 % 3) >> 3; 3945Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3946select 2 % 3 >> 3, 2 % (3 >> 3), (2 % 3) >> 3 union select * from v1; 3947 3948create or replace view v1 as select 2 % '2000-01-01' +INTERVAL 1 DAY, 2 % ('2000-01-01' +INTERVAL 1 DAY), (2 % '2000-01-01') +INTERVAL 1 DAY; 3949Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3950select 2 % '2000-01-01' +INTERVAL 1 DAY, 2 % ('2000-01-01' +INTERVAL 1 DAY), (2 % '2000-01-01') +INTERVAL 1 DAY union select * from v1; 3951 3952create or replace view v1 as select 2 % 3 + 3, 2 % (3 + 3), (2 % 3) + 3; 3953Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3954select 2 % 3 + 3, 2 % (3 + 3), (2 % 3) + 3 union select * from v1; 3955 3956create or replace view v1 as select 2 % 3 - 3, 2 % (3 - 3), (2 % 3) - 3; 3957Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3958select 2 % 3 - 3, 2 % (3 - 3), (2 % 3) - 3 union select * from v1; 3959 3960create or replace view v1 as select 2 % 3 * 3, 2 % (3 * 3), (2 % 3) * 3; 3961Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3962select 2 % 3 * 3, 2 % (3 * 3), (2 % 3) * 3 union select * from v1; 3963 3964create or replace view v1 as select 2 % 3 / 3, 2 % (3 / 3), (2 % 3) / 3; 3965Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3966select 2 % 3 / 3, 2 % (3 / 3), (2 % 3) / 3 union select * from v1; 3967 3968create or replace view v1 as select 3 % 4 DIV 3, 3 % (4 DIV 3), (3 % 4) DIV 3; 3969Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3970select 3 % 4 DIV 3, 3 % (4 DIV 3), (3 % 4) DIV 3 union select * from v1; 3971 3972create or replace view v1 as select 2 % 3 MOD 3, 2 % (3 MOD 3), (2 % 3) MOD 3; 3973Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3974select 2 % 3 MOD 3, 2 % (3 MOD 3), (2 % 3) MOD 3 union select * from v1; 3975 3976create or replace view v1 as select 2 % 3 % 3, 2 % (3 % 3), (2 % 3) % 3; 3977Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3978select 2 % 3 % 3, 2 % (3 % 3), (2 % 3) % 3 union select * from v1; 3979 3980create or replace view v1 as select 2 % 3 ^ 3, 2 % (3 ^ 3), (2 % 3) ^ 3; 3981Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3982select 2 % 3 ^ 3, 2 % (3 ^ 3), (2 % 3) ^ 3 union select * from v1; 3983 3984create or replace view v1 as select 2 % 3 BETWEEN 1 AND 3, 2 % (3 BETWEEN 1 AND 3), (2 % 3) BETWEEN 1 AND 3; 3985Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3986select 2 % 3 BETWEEN 1 AND 3, 2 % (3 BETWEEN 1 AND 3), (2 % 3) BETWEEN 1 AND 3 union select * from v1; 3987 3988create or replace view v1 as select 2 ^ 3 IS FALSE, 2 ^ (3 IS FALSE), (2 ^ 3) IS FALSE; 3989Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3990select 2 ^ 3 IS FALSE, 2 ^ (3 IS FALSE), (2 ^ 3) IS FALSE union select * from v1; 3991 3992create or replace view v1 as select charset(2 ^ 3 COLLATE latin1_bin), charset(2 ^ (3 COLLATE latin1_bin)), charset((2 ^ 3) COLLATE latin1_bin); 3993Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3994select charset(2 ^ 3 COLLATE latin1_bin), charset(2 ^ (3 COLLATE latin1_bin)), charset((2 ^ 3) COLLATE latin1_bin) union select * from v1; 3995 3996create or replace view v1 as select 2 ^ 3 IN (0,1), 2 ^ (3 IN (0,1)), (2 ^ 3) IN (0,1); 3997Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 3998select 2 ^ 3 IN (0,1), 2 ^ (3 IN (0,1)), (2 ^ 3) IN (0,1) union select * from v1; 3999 4000create or replace view v1 as select 2 ^ 3 OR 3, 2 ^ (3 OR 3), (2 ^ 3) OR 3; 4001Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4002select 2 ^ 3 OR 3, 2 ^ (3 OR 3), (2 ^ 3) OR 3 union select * from v1; 4003 4004create or replace view v1 as select 2 ^ 3 || 3, 2 ^ (3 || 3), (2 ^ 3) || 3; 4005Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4006select 2 ^ 3 || 3, 2 ^ (3 || 3), (2 ^ 3) || 3 union select * from v1; 4007 4008create or replace view v1 as select 2 ^ 3 XOR 3, 2 ^ (3 XOR 3), (2 ^ 3) XOR 3; 4009Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4010select 2 ^ 3 XOR 3, 2 ^ (3 XOR 3), (2 ^ 3) XOR 3 union select * from v1; 4011 4012create or replace view v1 as select 2 ^ 3 AND 3, 2 ^ (3 AND 3), (2 ^ 3) AND 3; 4013Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4014select 2 ^ 3 AND 3, 2 ^ (3 AND 3), (2 ^ 3) AND 3 union select * from v1; 4015 4016create or replace view v1 as select 2 ^ 3 && 3, 2 ^ (3 && 3), (2 ^ 3) && 3; 4017Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4018select 2 ^ 3 && 3, 2 ^ (3 && 3), (2 ^ 3) && 3 union select * from v1; 4019 4020create or replace view v1 as select 2 ^ 3 = 3, 2 ^ (3 = 3), (2 ^ 3) = 3; 4021Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4022select 2 ^ 3 = 3, 2 ^ (3 = 3), (2 ^ 3) = 3 union select * from v1; 4023 4024create or replace view v1 as select 2 ^ 3 <=> 3, 2 ^ (3 <=> 3), (2 ^ 3) <=> 3; 4025Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4026select 2 ^ 3 <=> 3, 2 ^ (3 <=> 3), (2 ^ 3) <=> 3 union select * from v1; 4027 4028create or replace view v1 as select 2 ^ 3 >= 3, 2 ^ (3 >= 3), (2 ^ 3) >= 3; 4029Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4030select 2 ^ 3 >= 3, 2 ^ (3 >= 3), (2 ^ 3) >= 3 union select * from v1; 4031 4032create or replace view v1 as select 2 ^ 3 <= 3, 2 ^ (3 <= 3), (2 ^ 3) <= 3; 4033Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4034select 2 ^ 3 <= 3, 2 ^ (3 <= 3), (2 ^ 3) <= 3 union select * from v1; 4035 4036create or replace view v1 as select 2 ^ 3 < 3, 2 ^ (3 < 3), (2 ^ 3) < 3; 4037Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4038select 2 ^ 3 < 3, 2 ^ (3 < 3), (2 ^ 3) < 3 union select * from v1; 4039 4040create or replace view v1 as select 2 ^ 3 <> 3, 2 ^ (3 <> 3), (2 ^ 3) <> 3; 4041Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4042select 2 ^ 3 <> 3, 2 ^ (3 <> 3), (2 ^ 3) <> 3 union select * from v1; 4043 4044create or replace view v1 as select 2 ^ 3 > 3, 2 ^ (3 > 3), (2 ^ 3) > 3; 4045Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4046select 2 ^ 3 > 3, 2 ^ (3 > 3), (2 ^ 3) > 3 union select * from v1; 4047 4048create or replace view v1 as select 2 ^ 3 != 3, 2 ^ (3 != 3), (2 ^ 3) != 3; 4049Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4050select 2 ^ 3 != 3, 2 ^ (3 != 3), (2 ^ 3) != 3 union select * from v1; 4051 4052create or replace view v1 as select 2 ^ 3 LIKE 3, 2 ^ (3 LIKE 3), (2 ^ 3) LIKE 3; 4053Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4054select 2 ^ 3 LIKE 3, 2 ^ (3 LIKE 3), (2 ^ 3) LIKE 3 union select * from v1; 4055 4056create or replace view v1 as select 2 ^ 3 REGEXP 3, 2 ^ (3 REGEXP 3), (2 ^ 3) REGEXP 3; 4057Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4058select 2 ^ 3 REGEXP 3, 2 ^ (3 REGEXP 3), (2 ^ 3) REGEXP 3 union select * from v1; 4059 4060create or replace view v1 as select 2 ^ 3 | 3, 2 ^ (3 | 3), (2 ^ 3) | 3; 4061Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4062select 2 ^ 3 | 3, 2 ^ (3 | 3), (2 ^ 3) | 3 union select * from v1; 4063 4064create or replace view v1 as select 2 ^ 0 & 0, 2 ^ (0 & 0), (2 ^ 0) & 0; 4065Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4066select 2 ^ 0 & 0, 2 ^ (0 & 0), (2 ^ 0) & 0 union select * from v1; 4067 4068create or replace view v1 as select 2 ^ 3 << 3, 2 ^ (3 << 3), (2 ^ 3) << 3; 4069Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4070select 2 ^ 3 << 3, 2 ^ (3 << 3), (2 ^ 3) << 3 union select * from v1; 4071 4072create or replace view v1 as select 2 ^ 3 >> 3, 2 ^ (3 >> 3), (2 ^ 3) >> 3; 4073Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4074select 2 ^ 3 >> 3, 2 ^ (3 >> 3), (2 ^ 3) >> 3 union select * from v1; 4075 4076create or replace view v1 as select 2 ^ '2000-01-01' +INTERVAL 1 DAY, 2 ^ ('2000-01-01' +INTERVAL 1 DAY), (2 ^ '2000-01-01') +INTERVAL 1 DAY; 4077Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4078select 2 ^ '2000-01-01' +INTERVAL 1 DAY, 2 ^ ('2000-01-01' +INTERVAL 1 DAY), (2 ^ '2000-01-01') +INTERVAL 1 DAY union select * from v1; 4079 4080create or replace view v1 as select 2 ^ 3 + 1, 2 ^ (3 + 1), (2 ^ 3) + 1; 4081Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4082select 2 ^ 3 + 1, 2 ^ (3 + 1), (2 ^ 3) + 1 union select * from v1; 4083 4084create or replace view v1 as select 5 ^ 1 - 1, 5 ^ (1 - 1), (5 ^ 1) - 1; 4085Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4086select 5 ^ 1 - 1, 5 ^ (1 - 1), (5 ^ 1) - 1 union select * from v1; 4087 4088create or replace view v1 as select 2 ^ 3 * 3, 2 ^ (3 * 3), (2 ^ 3) * 3; 4089Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4090select 2 ^ 3 * 3, 2 ^ (3 * 3), (2 ^ 3) * 3 union select * from v1; 4091 4092create or replace view v1 as select 2 ^ 3 / 3, 2 ^ (3 / 3), (2 ^ 3) / 3; 4093Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4094select 2 ^ 3 / 3, 2 ^ (3 / 3), (2 ^ 3) / 3 union select * from v1; 4095 4096create or replace view v1 as select 2 ^ 3 DIV 3, 2 ^ (3 DIV 3), (2 ^ 3) DIV 3; 4097Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4098select 2 ^ 3 DIV 3, 2 ^ (3 DIV 3), (2 ^ 3) DIV 3 union select * from v1; 4099 4100create or replace view v1 as select 2 ^ 3 MOD 3, 2 ^ (3 MOD 3), (2 ^ 3) MOD 3; 4101Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4102select 2 ^ 3 MOD 3, 2 ^ (3 MOD 3), (2 ^ 3) MOD 3 union select * from v1; 4103 4104create or replace view v1 as select 2 ^ 3 % 3, 2 ^ (3 % 3), (2 ^ 3) % 3; 4105Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4106select 2 ^ 3 % 3, 2 ^ (3 % 3), (2 ^ 3) % 3 union select * from v1; 4107 4108create or replace view v1 as select 2 ^ 3 BETWEEN 1 AND 3, 2 ^ (3 BETWEEN 1 AND 3), (2 ^ 3) BETWEEN 1 AND 3; 4109Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4110select 2 ^ 3 BETWEEN 1 AND 3, 2 ^ (3 BETWEEN 1 AND 3), (2 ^ 3) BETWEEN 1 AND 3 union select * from v1; 4111 4112create or replace view v1 as select 2 BETWEEN 1 AND 1 IS FALSE, 2 BETWEEN 1 AND (1 IS FALSE), (2 BETWEEN 1 AND 1) IS FALSE; 4113Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4114select 2 BETWEEN 1 AND 1 IS FALSE, 2 BETWEEN 1 AND (1 IS FALSE), (2 BETWEEN 1 AND 1) IS FALSE union select * from v1; 4115 4116create or replace view v1 as select charset(2 BETWEEN 1 AND 3 COLLATE latin1_bin), charset(2 BETWEEN 1 AND (3 COLLATE latin1_bin)), charset((2 BETWEEN 1 AND 3) COLLATE latin1_bin); 4117Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4118select charset(2 BETWEEN 1 AND 3 COLLATE latin1_bin), charset(2 BETWEEN 1 AND (3 COLLATE latin1_bin)), charset((2 BETWEEN 1 AND 3) COLLATE latin1_bin) union select * from v1; 4119 4120create or replace view v1 as select 2 BETWEEN 1 AND 3 IN (0,1), 2 BETWEEN 1 AND (3 IN (0,1)), (2 BETWEEN 1 AND 3) IN (0,1); 4121Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4122select 2 BETWEEN 1 AND 3 IN (0,1), 2 BETWEEN 1 AND (3 IN (0,1)), (2 BETWEEN 1 AND 3) IN (0,1) union select * from v1; 4123 4124create or replace view v1 as select 2 BETWEEN 1 AND 3 OR 3, 2 BETWEEN 1 AND (3 OR 3), (2 BETWEEN 1 AND 3) OR 3; 4125Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4126select 2 BETWEEN 1 AND 3 OR 3, 2 BETWEEN 1 AND (3 OR 3), (2 BETWEEN 1 AND 3) OR 3 union select * from v1; 4127 4128create or replace view v1 as select 2 BETWEEN 1 AND 3 || 3, 2 BETWEEN 1 AND (3 || 3), (2 BETWEEN 1 AND 3) || 3; 4129Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4130select 2 BETWEEN 1 AND 3 || 3, 2 BETWEEN 1 AND (3 || 3), (2 BETWEEN 1 AND 3) || 3 union select * from v1; 4131 4132create or replace view v1 as select 2 BETWEEN 1 AND 1 XOR 1, 2 BETWEEN 1 AND (1 XOR 1), (2 BETWEEN 1 AND 1) XOR 1; 4133Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4134select 2 BETWEEN 1 AND 1 XOR 1, 2 BETWEEN 1 AND (1 XOR 1), (2 BETWEEN 1 AND 1) XOR 1 union select * from v1; 4135 4136create or replace view v1 as select 2 BETWEEN 1 AND 3 AND 3, 2 BETWEEN 1 AND (3 AND 3), (2 BETWEEN 1 AND 3) AND 3; 4137Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4138select 2 BETWEEN 1 AND 3 AND 3, 2 BETWEEN 1 AND (3 AND 3), (2 BETWEEN 1 AND 3) AND 3 union select * from v1; 4139 4140create or replace view v1 as select 2 BETWEEN 1 AND 3 && 3, 2 BETWEEN 1 AND (3 && 3), (2 BETWEEN 1 AND 3) && 3; 4141Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4142select 2 BETWEEN 1 AND 3 && 3, 2 BETWEEN 1 AND (3 && 3), (2 BETWEEN 1 AND 3) && 3 union select * from v1; 4143 4144create or replace view v1 as select 2 BETWEEN 1 AND 3 = 1, 2 BETWEEN 1 AND (3 = 1), (2 BETWEEN 1 AND 3) = 1; 4145Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4146select 2 BETWEEN 1 AND 3 = 1, 2 BETWEEN 1 AND (3 = 1), (2 BETWEEN 1 AND 3) = 1 union select * from v1; 4147 4148create or replace view v1 as select 2 BETWEEN 1 AND 3 <=> 1, 2 BETWEEN 1 AND (3 <=> 1), (2 BETWEEN 1 AND 3) <=> 1; 4149Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4150select 2 BETWEEN 1 AND 3 <=> 1, 2 BETWEEN 1 AND (3 <=> 1), (2 BETWEEN 1 AND 3) <=> 1 union select * from v1; 4151 4152create or replace view v1 as select 2 BETWEEN 1 AND 3 >= 1, 2 BETWEEN 1 AND (3 >= 1), (2 BETWEEN 1 AND 3) >= 1; 4153Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4154select 2 BETWEEN 1 AND 3 >= 1, 2 BETWEEN 1 AND (3 >= 1), (2 BETWEEN 1 AND 3) >= 1 union select * from v1; 4155 4156create or replace view v1 as select 2 BETWEEN 1 AND 3 <= 3, 2 BETWEEN 1 AND (3 <= 3), (2 BETWEEN 1 AND 3) <= 3; 4157Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4158select 2 BETWEEN 1 AND 3 <= 3, 2 BETWEEN 1 AND (3 <= 3), (2 BETWEEN 1 AND 3) <= 3 union select * from v1; 4159 4160create or replace view v1 as select 2 BETWEEN 1 AND 3 < 3, 2 BETWEEN 1 AND (3 < 3), (2 BETWEEN 1 AND 3) < 3; 4161Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4162select 2 BETWEEN 1 AND 3 < 3, 2 BETWEEN 1 AND (3 < 3), (2 BETWEEN 1 AND 3) < 3 union select * from v1; 4163 4164create or replace view v1 as select 2 BETWEEN 1 AND 3 <> 3, 2 BETWEEN 1 AND (3 <> 3), (2 BETWEEN 1 AND 3) <> 3; 4165Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4166select 2 BETWEEN 1 AND 3 <> 3, 2 BETWEEN 1 AND (3 <> 3), (2 BETWEEN 1 AND 3) <> 3 union select * from v1; 4167 4168create or replace view v1 as select 2 BETWEEN 1 AND 3 > 0, 2 BETWEEN 1 AND (3 > 0), (2 BETWEEN 1 AND 3) > 0; 4169Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4170select 2 BETWEEN 1 AND 3 > 0, 2 BETWEEN 1 AND (3 > 0), (2 BETWEEN 1 AND 3) > 0 union select * from v1; 4171 4172create or replace view v1 as select 2 BETWEEN 1 AND 3 != 3, 2 BETWEEN 1 AND (3 != 3), (2 BETWEEN 1 AND 3) != 3; 4173Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4174select 2 BETWEEN 1 AND 3 != 3, 2 BETWEEN 1 AND (3 != 3), (2 BETWEEN 1 AND 3) != 3 union select * from v1; 4175 4176create or replace view v1 as select 2 BETWEEN 1 AND 3 LIKE 1, 2 BETWEEN 1 AND (3 LIKE 1), (2 BETWEEN 1 AND 3) LIKE 1; 4177Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4178select 2 BETWEEN 1 AND 3 LIKE 1, 2 BETWEEN 1 AND (3 LIKE 1), (2 BETWEEN 1 AND 3) LIKE 1 union select * from v1; 4179 4180create or replace view v1 as select 2 BETWEEN 1 AND 3 REGEXP 1, 2 BETWEEN 1 AND (3 REGEXP 1), (2 BETWEEN 1 AND 3) REGEXP 1; 4181Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4182select 2 BETWEEN 1 AND 3 REGEXP 1, 2 BETWEEN 1 AND (3 REGEXP 1), (2 BETWEEN 1 AND 3) REGEXP 1 union select * from v1; 4183 4184create or replace view v1 as select 2 BETWEEN 1 AND 3 | 3, 2 BETWEEN 1 AND (3 | 3), (2 BETWEEN 1 AND 3) | 3; 4185Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4186select 2 BETWEEN 1 AND 3 | 3, 2 BETWEEN 1 AND (3 | 3), (2 BETWEEN 1 AND 3) | 3 union select * from v1; 4187 4188create or replace view v1 as select 2 BETWEEN 1 AND 2 & 2, 2 BETWEEN 1 AND (2 & 2), (2 BETWEEN 1 AND 2) & 2; 4189Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4190select 2 BETWEEN 1 AND 2 & 2, 2 BETWEEN 1 AND (2 & 2), (2 BETWEEN 1 AND 2) & 2 union select * from v1; 4191 4192create or replace view v1 as select 2 BETWEEN 1 AND 3 << 3, 2 BETWEEN 1 AND (3 << 3), (2 BETWEEN 1 AND 3) << 3; 4193Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4194select 2 BETWEEN 1 AND 3 << 3, 2 BETWEEN 1 AND (3 << 3), (2 BETWEEN 1 AND 3) << 3 union select * from v1; 4195 4196create or replace view v1 as select 2 BETWEEN 1 AND 4 >> 1, 2 BETWEEN 1 AND (4 >> 1), (2 BETWEEN 1 AND 4) >> 1; 4197Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4198select 2 BETWEEN 1 AND 4 >> 1, 2 BETWEEN 1 AND (4 >> 1), (2 BETWEEN 1 AND 4) >> 1 union select * from v1; 4199 4200create or replace view v1 as select 2 BETWEEN 1 AND '2000-01-01' +INTERVAL 1 DAY, 2 BETWEEN 1 AND ('2000-01-01' +INTERVAL 1 DAY), (2 BETWEEN 1 AND '2000-01-01') +INTERVAL 1 DAY; 4201Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4202select 2 BETWEEN 1 AND '2000-01-01' +INTERVAL 1 DAY, 2 BETWEEN 1 AND ('2000-01-01' +INTERVAL 1 DAY), (2 BETWEEN 1 AND '2000-01-01') +INTERVAL 1 DAY union select * from v1; 4203 4204create or replace view v1 as select 2 BETWEEN 1 AND 3 + 3, 2 BETWEEN 1 AND (3 + 3), (2 BETWEEN 1 AND 3) + 3; 4205Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4206select 2 BETWEEN 1 AND 3 + 3, 2 BETWEEN 1 AND (3 + 3), (2 BETWEEN 1 AND 3) + 3 union select * from v1; 4207 4208create or replace view v1 as select 2 BETWEEN 1 AND 3 - 3, 2 BETWEEN 1 AND (3 - 3), (2 BETWEEN 1 AND 3) - 3; 4209Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4210select 2 BETWEEN 1 AND 3 - 3, 2 BETWEEN 1 AND (3 - 3), (2 BETWEEN 1 AND 3) - 3 union select * from v1; 4211 4212create or replace view v1 as select 2 BETWEEN 1 AND 3 * 3, 2 BETWEEN 1 AND (3 * 3), (2 BETWEEN 1 AND 3) * 3; 4213Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4214select 2 BETWEEN 1 AND 3 * 3, 2 BETWEEN 1 AND (3 * 3), (2 BETWEEN 1 AND 3) * 3 union select * from v1; 4215 4216create or replace view v1 as select 2 BETWEEN 1 AND 3 / 3, 2 BETWEEN 1 AND (3 / 3), (2 BETWEEN 1 AND 3) / 3; 4217Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4218select 2 BETWEEN 1 AND 3 / 3, 2 BETWEEN 1 AND (3 / 3), (2 BETWEEN 1 AND 3) / 3 union select * from v1; 4219 4220create or replace view v1 as select 2 BETWEEN 1 AND 4 DIV 2, 2 BETWEEN 1 AND (4 DIV 2), (2 BETWEEN 1 AND 4) DIV 2; 4221Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4222select 2 BETWEEN 1 AND 4 DIV 2, 2 BETWEEN 1 AND (4 DIV 2), (2 BETWEEN 1 AND 4) DIV 2 union select * from v1; 4223 4224create or replace view v1 as select 2 BETWEEN 1 AND 3 MOD 3, 2 BETWEEN 1 AND (3 MOD 3), (2 BETWEEN 1 AND 3) MOD 3; 4225Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4226select 2 BETWEEN 1 AND 3 MOD 3, 2 BETWEEN 1 AND (3 MOD 3), (2 BETWEEN 1 AND 3) MOD 3 union select * from v1; 4227 4228create or replace view v1 as select 2 BETWEEN 1 AND 3 % 3, 2 BETWEEN 1 AND (3 % 3), (2 BETWEEN 1 AND 3) % 3; 4229Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4230select 2 BETWEEN 1 AND 3 % 3, 2 BETWEEN 1 AND (3 % 3), (2 BETWEEN 1 AND 3) % 3 union select * from v1; 4231 4232create or replace view v1 as select 2 BETWEEN 1 AND 3 ^ 3, 2 BETWEEN 1 AND (3 ^ 3), (2 BETWEEN 1 AND 3) ^ 3; 4233Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4234select 2 BETWEEN 1 AND 3 ^ 3, 2 BETWEEN 1 AND (3 ^ 3), (2 BETWEEN 1 AND 3) ^ 3 union select * from v1; 4235 4236create or replace view v1 as select 2 BETWEEN 1 AND 3 BETWEEN 1 AND 3, 2 BETWEEN 1 AND (3 BETWEEN 1 AND 3), (2 BETWEEN 1 AND 3) BETWEEN 1 AND 3; 4237Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4238select 2 BETWEEN 1 AND 3 BETWEEN 1 AND 3, 2 BETWEEN 1 AND (3 BETWEEN 1 AND 3), (2 BETWEEN 1 AND 3) BETWEEN 1 AND 3 union select * from v1; 4239 4240create or replace view v1 as select 2 LIKE 2 ESCAPE 3 IS FALSE, 2 LIKE 2 ESCAPE (3 IS FALSE), (2 LIKE 2 ESCAPE 3) IS FALSE; 4241Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4242select 2 LIKE 2 ESCAPE 3 IS FALSE, 2 LIKE 2 ESCAPE (3 IS FALSE), (2 LIKE 2 ESCAPE 3) IS FALSE union select * from v1; 4243 4244create or replace view v1 as select charset(2 LIKE 1 ESCAPE 3 COLLATE latin1_bin), charset(2 LIKE 1 ESCAPE (3 COLLATE latin1_bin)), charset((2 LIKE 1 ESCAPE 3) COLLATE latin1_bin); 4245Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4246select charset(2 LIKE 1 ESCAPE 3 COLLATE latin1_bin), charset(2 LIKE 1 ESCAPE (3 COLLATE latin1_bin)), charset((2 LIKE 1 ESCAPE 3) COLLATE latin1_bin) union select * from v1; 4247 4248create or replace view v1 as select 2 LIKE 1 ESCAPE 3 IN(0,1), 2 LIKE 1 ESCAPE (3 IN(0,1)), (2 LIKE 1 ESCAPE 3) IN(0,1); 4249Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4250select 2 LIKE 1 ESCAPE 3 IN(0,1), 2 LIKE 1 ESCAPE (3 IN(0,1)), (2 LIKE 1 ESCAPE 3) IN(0,1) union select * from v1; 4251 4252create or replace view v1 as select 2 LIKE 1 ESCAPE 3 OR 4, 2 LIKE 1 ESCAPE (3 OR 4), (2 LIKE 1 ESCAPE 3) OR 4; 4253Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4254select 2 LIKE 1 ESCAPE 3 OR 4, 2 LIKE 1 ESCAPE (3 OR 4), (2 LIKE 1 ESCAPE 3) OR 4 union select * from v1; 4255 4256create or replace view v1 as select 2 LIKE 1 ESCAPE 3 || 4, 2 LIKE 1 ESCAPE (3 || 4), (2 LIKE 1 ESCAPE 3) || 4; 4257Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4258select 2 LIKE 1 ESCAPE 3 || 4, 2 LIKE 1 ESCAPE (3 || 4), (2 LIKE 1 ESCAPE 3) || 4 union select * from v1; 4259 4260create or replace view v1 as select 2 LIKE 1 ESCAPE 3 XOR 4, 2 LIKE 1 ESCAPE (3 XOR 4), (2 LIKE 1 ESCAPE 3) XOR 4; 4261Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4262select 2 LIKE 1 ESCAPE 3 XOR 4, 2 LIKE 1 ESCAPE (3 XOR 4), (2 LIKE 1 ESCAPE 3) XOR 4 union select * from v1; 4263 4264create or replace view v1 as select 2 LIKE 2 ESCAPE 3 AND 0, 2 LIKE 2 ESCAPE (3 AND 0), (2 LIKE 2 ESCAPE 3) AND 0; 4265Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4266select 2 LIKE 2 ESCAPE 3 AND 0, 2 LIKE 2 ESCAPE (3 AND 0), (2 LIKE 2 ESCAPE 3) AND 0 union select * from v1; 4267 4268create or replace view v1 as select 2 LIKE 2 ESCAPE 3 && 0, 2 LIKE 2 ESCAPE (3 && 0), (2 LIKE 2 ESCAPE 3) && 0; 4269Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4270select 2 LIKE 2 ESCAPE 3 && 0, 2 LIKE 2 ESCAPE (3 && 0), (2 LIKE 2 ESCAPE 3) && 0 union select * from v1; 4271 4272create or replace view v1 as select 2 LIKE 2 ESCAPE 3 = 4, 2 LIKE 2 ESCAPE (3 = 4), (2 LIKE 2 ESCAPE 3) = 4; 4273Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4274select 2 LIKE 2 ESCAPE 3 = 4, 2 LIKE 2 ESCAPE (3 = 4), (2 LIKE 2 ESCAPE 3) = 4 union select * from v1; 4275 4276create or replace view v1 as select 2 LIKE 2 ESCAPE 3 <=> 4, 2 LIKE 2 ESCAPE (3 <=> 4), (2 LIKE 2 ESCAPE 3) <=> 4; 4277Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4278select 2 LIKE 2 ESCAPE 3 <=> 4, 2 LIKE 2 ESCAPE (3 <=> 4), (2 LIKE 2 ESCAPE 3) <=> 4 union select * from v1; 4279 4280create or replace view v1 as select 2 LIKE 2 ESCAPE 3 >= 4, 2 LIKE 2 ESCAPE (3 >= 4), (2 LIKE 2 ESCAPE 3) >= 4; 4281Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4282select 2 LIKE 2 ESCAPE 3 >= 4, 2 LIKE 2 ESCAPE (3 >= 4), (2 LIKE 2 ESCAPE 3) >= 4 union select * from v1; 4283 4284create or replace view v1 as select 2 LIKE 1 ESCAPE 3 <= 4, 2 LIKE 1 ESCAPE (3 <= 4), (2 LIKE 1 ESCAPE 3) <= 4; 4285Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4286select 2 LIKE 1 ESCAPE 3 <= 4, 2 LIKE 1 ESCAPE (3 <= 4), (2 LIKE 1 ESCAPE 3) <= 4 union select * from v1; 4287 4288create or replace view v1 as select 2 LIKE 1 ESCAPE 3 < 4, 2 LIKE 1 ESCAPE (3 < 4), (2 LIKE 1 ESCAPE 3) < 4; 4289Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4290select 2 LIKE 1 ESCAPE 3 < 4, 2 LIKE 1 ESCAPE (3 < 4), (2 LIKE 1 ESCAPE 3) < 4 union select * from v1; 4291 4292create or replace view v1 as select 2 LIKE 1 ESCAPE 3 <> 4, 2 LIKE 1 ESCAPE (3 <> 4), (2 LIKE 1 ESCAPE 3) <> 4; 4293Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4294select 2 LIKE 1 ESCAPE 3 <> 4, 2 LIKE 1 ESCAPE (3 <> 4), (2 LIKE 1 ESCAPE 3) <> 4 union select * from v1; 4295 4296create or replace view v1 as select 2 LIKE 2 ESCAPE 3 > 4, 2 LIKE 2 ESCAPE (3 > 4), (2 LIKE 2 ESCAPE 3) > 4; 4297Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4298select 2 LIKE 2 ESCAPE 3 > 4, 2 LIKE 2 ESCAPE (3 > 4), (2 LIKE 2 ESCAPE 3) > 4 union select * from v1; 4299 4300create or replace view v1 as select 2 LIKE 1 ESCAPE 3 != 4, 2 LIKE 1 ESCAPE (3 != 4), (2 LIKE 1 ESCAPE 3) != 4; 4301Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4302select 2 LIKE 1 ESCAPE 3 != 4, 2 LIKE 1 ESCAPE (3 != 4), (2 LIKE 1 ESCAPE 3) != 4 union select * from v1; 4303 4304create or replace view v1 as select 2 LIKE 2 ESCAPE 3 LIKE 4, 2 LIKE 2 ESCAPE (3 LIKE 4), (2 LIKE 2 ESCAPE 3) LIKE 4; 4305Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4306select 2 LIKE 2 ESCAPE 3 LIKE 4, 2 LIKE 2 ESCAPE (3 LIKE 4), (2 LIKE 2 ESCAPE 3) LIKE 4 union select * from v1; 4307 4308create or replace view v1 as select 2 LIKE 2 ESCAPE 3 REGEXP 4, 2 LIKE 2 ESCAPE (3 REGEXP 4), (2 LIKE 2 ESCAPE 3) REGEXP 4; 4309Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4310select 2 LIKE 2 ESCAPE 3 REGEXP 4, 2 LIKE 2 ESCAPE (3 REGEXP 4), (2 LIKE 2 ESCAPE 3) REGEXP 4 union select * from v1; 4311 4312create or replace view v1 as select 2 LIKE 1 ESCAPE 3 | 4, 2 LIKE 1 ESCAPE (3 | 4), (2 LIKE 1 ESCAPE 3) | 4; 4313Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4314select 2 LIKE 1 ESCAPE 3 | 4, 2 LIKE 1 ESCAPE (3 | 4), (2 LIKE 1 ESCAPE 3) | 4 union select * from v1; 4315 4316create or replace view v1 as select 2 LIKE 2 ESCAPE 3 & 4, 2 LIKE 2 ESCAPE (3 & 4), (2 LIKE 2 ESCAPE 3) & 4; 4317Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4318select 2 LIKE 2 ESCAPE 3 & 4, 2 LIKE 2 ESCAPE (3 & 4), (2 LIKE 2 ESCAPE 3) & 4 union select * from v1; 4319 4320create or replace view v1 as select 2 LIKE 2 ESCAPE 1 << 1, 2 LIKE 2 ESCAPE (1 << 1), (2 LIKE 2 ESCAPE 1) << 1; 4321Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4322select 2 LIKE 2 ESCAPE 1 << 1, 2 LIKE 2 ESCAPE (1 << 1), (2 LIKE 2 ESCAPE 1) << 1 union select * from v1; 4323 4324create or replace view v1 as select 2 LIKE 2 ESCAPE 3 >> 4, 2 LIKE 2 ESCAPE (3 >> 4), (2 LIKE 2 ESCAPE 3) >> 4; 4325Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4326select 2 LIKE 2 ESCAPE 3 >> 4, 2 LIKE 2 ESCAPE (3 >> 4), (2 LIKE 2 ESCAPE 3) >> 4 union select * from v1; 4327 4328create or replace view v1 as select 2 LIKE 1 ESCAPE 3 +INTERVAL 1 DAY, 2 LIKE 1 ESCAPE (3 +INTERVAL 1 DAY), (2 LIKE 1 ESCAPE 3) +INTERVAL 1 DAY; 4329Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4330select 2 LIKE 1 ESCAPE 3 +INTERVAL 1 DAY, 2 LIKE 1 ESCAPE (3 +INTERVAL 1 DAY), (2 LIKE 1 ESCAPE 3) +INTERVAL 1 DAY union select * from v1; 4331 4332create or replace view v1 as select 2 LIKE 1 ESCAPE 3 + 4, 2 LIKE 1 ESCAPE (3 + 4), (2 LIKE 1 ESCAPE 3) + 4; 4333Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4334select 2 LIKE 1 ESCAPE 3 + 4, 2 LIKE 1 ESCAPE (3 + 4), (2 LIKE 1 ESCAPE 3) + 4 union select * from v1; 4335 4336create or replace view v1 as select 2 LIKE 2 ESCAPE 1 - 1, 2 LIKE 2 ESCAPE (1 - 1), (2 LIKE 2 ESCAPE 1) - 1; 4337Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4338select 2 LIKE 2 ESCAPE 1 - 1, 2 LIKE 2 ESCAPE (1 - 1), (2 LIKE 2 ESCAPE 1) - 1 union select * from v1; 4339 4340create or replace view v1 as select 2 LIKE 2 ESCAPE 3 * 0, 2 LIKE 2 ESCAPE (3 * 0), (2 LIKE 2 ESCAPE 3) * 0; 4341Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4342select 2 LIKE 2 ESCAPE 3 * 0, 2 LIKE 2 ESCAPE (3 * 0), (2 LIKE 2 ESCAPE 3) * 0 union select * from v1; 4343 4344create or replace view v1 as select 2 LIKE 2 ESCAPE 3 DIV 3, 2 LIKE 2 ESCAPE (3 DIV 3), (2 LIKE 2 ESCAPE 3) DIV 3; 4345Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4346select 2 LIKE 2 ESCAPE 3 DIV 3, 2 LIKE 2 ESCAPE (3 DIV 3), (2 LIKE 2 ESCAPE 3) DIV 3 union select * from v1; 4347 4348create or replace view v1 as select 2 LIKE 2 ESCAPE 3 MOD 1, 2 LIKE 2 ESCAPE (3 MOD 1), (2 LIKE 2 ESCAPE 3) MOD 1; 4349Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4350select 2 LIKE 2 ESCAPE 3 MOD 1, 2 LIKE 2 ESCAPE (3 MOD 1), (2 LIKE 2 ESCAPE 3) MOD 1 union select * from v1; 4351 4352create or replace view v1 as select 2 LIKE 2 ESCAPE 3 % 1, 2 LIKE 2 ESCAPE (3 % 1), (2 LIKE 2 ESCAPE 3) % 1; 4353Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4354select 2 LIKE 2 ESCAPE 3 % 1, 2 LIKE 2 ESCAPE (3 % 1), (2 LIKE 2 ESCAPE 3) % 1 union select * from v1; 4355 4356create or replace view v1 as select 2 LIKE 1 ESCAPE 3 ^ 4, 2 LIKE 1 ESCAPE (3 ^ 4), (2 LIKE 1 ESCAPE 3) ^ 4; 4357Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4358select 2 LIKE 1 ESCAPE 3 ^ 4, 2 LIKE 1 ESCAPE (3 ^ 4), (2 LIKE 1 ESCAPE 3) ^ 4 union select * from v1; 4359 4360create or replace view v1 as select 2 LIKE 2 ESCAPE 3 BETWEEN 2 AND 4, 2 LIKE 2 ESCAPE (3 BETWEEN 2 AND 4), (2 LIKE 2 ESCAPE 3) BETWEEN 2 AND 4; 4361Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4362select 2 LIKE 2 ESCAPE 3 BETWEEN 2 AND 4, 2 LIKE 2 ESCAPE (3 BETWEEN 2 AND 4), (2 LIKE 2 ESCAPE 3) BETWEEN 2 AND 4 union select * from v1; 4363 4364create or replace view v1 as select NOT 2 IN (SELECT 0 UNION SELECT 2), NOT (2 IN (SELECT 0 UNION SELECT 2)), (NOT 2) IN (SELECT 0 UNION SELECT 2); 4365Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4366select NOT 2 IN (SELECT 0 UNION SELECT 2), NOT (2 IN (SELECT 0 UNION SELECT 2)), (NOT 2) IN (SELECT 0 UNION SELECT 2) union select * from v1; 4367 4368create or replace view v1 as select - 2 IN (SELECT 2 UNION SELECT 1), - (2 IN (SELECT 2 UNION SELECT 1)), (- 2) IN (SELECT 2 UNION SELECT 1); 4369Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4370select - 2 IN (SELECT 2 UNION SELECT 1), - (2 IN (SELECT 2 UNION SELECT 1)), (- 2) IN (SELECT 2 UNION SELECT 1) union select * from v1; 4371 4372create or replace view v1 as select ~ 2 IN (SELECT 0 UNION SELECT 1), ~ (2 IN (SELECT 0 UNION SELECT 1)), (~ 2) IN (SELECT 0 UNION SELECT 1); 4373Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4374select ~ 2 IN (SELECT 0 UNION SELECT 1), ~ (2 IN (SELECT 0 UNION SELECT 1)), (~ 2) IN (SELECT 0 UNION SELECT 1) union select * from v1; 4375 4376create or replace view v1 as select ! 2 IN (SELECT 0 UNION SELECT 2), ! (2 IN (SELECT 0 UNION SELECT 2)), (! 2) IN (SELECT 0 UNION SELECT 2); 4377Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4378select ! 2 IN (SELECT 0 UNION SELECT 2), ! (2 IN (SELECT 0 UNION SELECT 2)), (! 2) IN (SELECT 0 UNION SELECT 2) union select * from v1; 4379 4380create or replace view v1 as select BINARY 'c' IN (SELECT 'C' UNION SELECT 'X'), BINARY ('c' IN (SELECT 'C' UNION SELECT 'X')), (BINARY 'c') IN (SELECT 'C' UNION SELECT 'X'); 4381Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4382select BINARY 'c' IN (SELECT 'C' UNION SELECT 'X'), BINARY ('c' IN (SELECT 'C' UNION SELECT 'X')), (BINARY 'c') IN (SELECT 'C' UNION SELECT 'X') union select * from v1; 4383 4384create or replace view v1 as select 0 OR 3 IN (SELECT 3 UNION SELECT 10), 0 OR (3 IN (SELECT 3 UNION SELECT 10)), (0 OR 3) IN (SELECT 3 UNION SELECT 10); 4385Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4386select 0 OR 3 IN (SELECT 3 UNION SELECT 10), 0 OR (3 IN (SELECT 3 UNION SELECT 10)), (0 OR 3) IN (SELECT 3 UNION SELECT 10) union select * from v1; 4387 4388create or replace view v1 as select 0 || 3 IN (SELECT 3 UNION SELECT 10), 0 || (3 IN (SELECT 3 UNION SELECT 10)), (0 || 3) IN (SELECT 3 UNION SELECT 10); 4389Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4390select 0 || 3 IN (SELECT 3 UNION SELECT 10), 0 || (3 IN (SELECT 3 UNION SELECT 10)), (0 || 3) IN (SELECT 3 UNION SELECT 10) union select * from v1; 4391 4392create or replace view v1 as select 2 XOR 3 IN (SELECT 4 UNION SELECT 5), 2 XOR (3 IN (SELECT 4 UNION SELECT 5)), (2 XOR 3) IN (SELECT 4 UNION SELECT 5); 4393Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4394select 2 XOR 3 IN (SELECT 4 UNION SELECT 5), 2 XOR (3 IN (SELECT 4 UNION SELECT 5)), (2 XOR 3) IN (SELECT 4 UNION SELECT 5) union select * from v1; 4395 4396create or replace view v1 as select 2 AND 3 IN (SELECT 0 UNION SELECT 1), 2 AND (3 IN (SELECT 0 UNION SELECT 1)), (2 AND 3) IN (SELECT 0 UNION SELECT 1); 4397Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4398select 2 AND 3 IN (SELECT 0 UNION SELECT 1), 2 AND (3 IN (SELECT 0 UNION SELECT 1)), (2 AND 3) IN (SELECT 0 UNION SELECT 1) union select * from v1; 4399 4400create or replace view v1 as select 2 && 3 IN (SELECT 0 UNION SELECT 1), 2 && (3 IN (SELECT 0 UNION SELECT 1)), (2 && 3) IN (SELECT 0 UNION SELECT 1); 4401Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4402select 2 && 3 IN (SELECT 0 UNION SELECT 1), 2 && (3 IN (SELECT 0 UNION SELECT 1)), (2 && 3) IN (SELECT 0 UNION SELECT 1) union select * from v1; 4403 4404create or replace view v1 as select 2 = 3 IN (SELECT 0 UNION SELECT 1), 2 = (3 IN (SELECT 0 UNION SELECT 1)), (2 = 3) IN (SELECT 0 UNION SELECT 1); 4405Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4406select 2 = 3 IN (SELECT 0 UNION SELECT 1), 2 = (3 IN (SELECT 0 UNION SELECT 1)), (2 = 3) IN (SELECT 0 UNION SELECT 1) union select * from v1; 4407 4408create or replace view v1 as select 2 <=> 3 IN (SELECT 0 UNION SELECT 1), 2 <=> (3 IN (SELECT 0 UNION SELECT 1)), (2 <=> 3) IN (SELECT 0 UNION SELECT 1); 4409Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4410select 2 <=> 3 IN (SELECT 0 UNION SELECT 1), 2 <=> (3 IN (SELECT 0 UNION SELECT 1)), (2 <=> 3) IN (SELECT 0 UNION SELECT 1) union select * from v1; 4411 4412create or replace view v1 as select 2 >= 3 IN (SELECT 1 UNION SELECT 1), 2 >= (3 IN (SELECT 1 UNION SELECT 1)), (2 >= 3) IN (SELECT 1 UNION SELECT 1); 4413Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4414select 2 >= 3 IN (SELECT 1 UNION SELECT 1), 2 >= (3 IN (SELECT 1 UNION SELECT 1)), (2 >= 3) IN (SELECT 1 UNION SELECT 1) union select * from v1; 4415 4416create or replace view v1 as select 2 <= 3 IN (SELECT 0 UNION SELECT 1), 2 <= (3 IN (SELECT 0 UNION SELECT 1)), (2 <= 3) IN (SELECT 0 UNION SELECT 1); 4417Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4418select 2 <= 3 IN (SELECT 0 UNION SELECT 1), 2 <= (3 IN (SELECT 0 UNION SELECT 1)), (2 <= 3) IN (SELECT 0 UNION SELECT 1) union select * from v1; 4419 4420create or replace view v1 as select 2 < 3 IN (SELECT 0 UNION SELECT 1), 2 < (3 IN (SELECT 0 UNION SELECT 1)), (2 < 3) IN (SELECT 0 UNION SELECT 1); 4421Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4422select 2 < 3 IN (SELECT 0 UNION SELECT 1), 2 < (3 IN (SELECT 0 UNION SELECT 1)), (2 < 3) IN (SELECT 0 UNION SELECT 1) union select * from v1; 4423 4424create or replace view v1 as select 2 <> 3 IN (SELECT 0 UNION SELECT 0), 2 <> (3 IN (SELECT 0 UNION SELECT 0)), (2 <> 3) IN (SELECT 0 UNION SELECT 0); 4425Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4426select 2 <> 3 IN (SELECT 0 UNION SELECT 0), 2 <> (3 IN (SELECT 0 UNION SELECT 0)), (2 <> 3) IN (SELECT 0 UNION SELECT 0) union select * from v1; 4427 4428create or replace view v1 as select 2 > 3 IN (SELECT 1 UNION SELECT 1), 2 > (3 IN (SELECT 1 UNION SELECT 1)), (2 > 3) IN (SELECT 1 UNION SELECT 1); 4429Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4430select 2 > 3 IN (SELECT 1 UNION SELECT 1), 2 > (3 IN (SELECT 1 UNION SELECT 1)), (2 > 3) IN (SELECT 1 UNION SELECT 1) union select * from v1; 4431 4432create or replace view v1 as select 2 != 3 IN (SELECT 0 UNION SELECT 0), 2 != (3 IN (SELECT 0 UNION SELECT 0)), (2 != 3) IN (SELECT 0 UNION SELECT 0); 4433Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4434select 2 != 3 IN (SELECT 0 UNION SELECT 0), 2 != (3 IN (SELECT 0 UNION SELECT 0)), (2 != 3) IN (SELECT 0 UNION SELECT 0) union select * from v1; 4435 4436create or replace view v1 as select 2 LIKE 3 IN (SELECT 0 UNION SELECT 1), 2 LIKE (3 IN (SELECT 0 UNION SELECT 1)), (2 LIKE 3) IN (SELECT 0 UNION SELECT 1); 4437Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4438select 2 LIKE 3 IN (SELECT 0 UNION SELECT 1), 2 LIKE (3 IN (SELECT 0 UNION SELECT 1)), (2 LIKE 3) IN (SELECT 0 UNION SELECT 1) union select * from v1; 4439 4440create or replace view v1 as select 2 REGEXP 3 IN (SELECT 0 UNION SELECT 1), 2 REGEXP (3 IN (SELECT 0 UNION SELECT 1)), (2 REGEXP 3) IN (SELECT 0 UNION SELECT 1); 4441Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4442select 2 REGEXP 3 IN (SELECT 0 UNION SELECT 1), 2 REGEXP (3 IN (SELECT 0 UNION SELECT 1)), (2 REGEXP 3) IN (SELECT 0 UNION SELECT 1) union select * from v1; 4443 4444create or replace view v1 as select 2 | 3 IN (SELECT 0 UNION SELECT 1), 2 | (3 IN (SELECT 0 UNION SELECT 1)), (2 | 3) IN (SELECT 0 UNION SELECT 1); 4445Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4446select 2 | 3 IN (SELECT 0 UNION SELECT 1), 2 | (3 IN (SELECT 0 UNION SELECT 1)), (2 | 3) IN (SELECT 0 UNION SELECT 1) union select * from v1; 4447 4448create or replace view v1 as select 2 & 4 IN (SELECT 0 UNION SELECT 1), 2 & (4 IN (SELECT 0 UNION SELECT 1)), (2 & 4) IN (SELECT 0 UNION SELECT 1); 4449Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4450select 2 & 4 IN (SELECT 0 UNION SELECT 1), 2 & (4 IN (SELECT 0 UNION SELECT 1)), (2 & 4) IN (SELECT 0 UNION SELECT 1) union select * from v1; 4451 4452create or replace view v1 as select 2 << 3 IN (SELECT 0 UNION SELECT 1), 2 << (3 IN (SELECT 0 UNION SELECT 1)), (2 << 3) IN (SELECT 0 UNION SELECT 1); 4453Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4454select 2 << 3 IN (SELECT 0 UNION SELECT 1), 2 << (3 IN (SELECT 0 UNION SELECT 1)), (2 << 3) IN (SELECT 0 UNION SELECT 1) union select * from v1; 4455 4456create or replace view v1 as select 2 >> 3 IN (SELECT 0 UNION SELECT 1), 2 >> (3 IN (SELECT 0 UNION SELECT 1)), (2 >> 3) IN (SELECT 0 UNION SELECT 1); 4457Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4458select 2 >> 3 IN (SELECT 0 UNION SELECT 1), 2 >> (3 IN (SELECT 0 UNION SELECT 1)), (2 >> 3) IN (SELECT 0 UNION SELECT 1) union select * from v1; 4459 4460create or replace view v1 as select 2 + 3 IN (SELECT 0 UNION SELECT 1), 2 + (3 IN (SELECT 0 UNION SELECT 1)), (2 + 3) IN (SELECT 0 UNION SELECT 1); 4461Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4462select 2 + 3 IN (SELECT 0 UNION SELECT 1), 2 + (3 IN (SELECT 0 UNION SELECT 1)), (2 + 3) IN (SELECT 0 UNION SELECT 1) union select * from v1; 4463 4464create or replace view v1 as select 2 - 3 IN (SELECT 0 UNION SELECT 1), 2 - (3 IN (SELECT 0 UNION SELECT 1)), (2 - 3) IN (SELECT 0 UNION SELECT 1); 4465Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4466select 2 - 3 IN (SELECT 0 UNION SELECT 1), 2 - (3 IN (SELECT 0 UNION SELECT 1)), (2 - 3) IN (SELECT 0 UNION SELECT 1) union select * from v1; 4467 4468create or replace view v1 as select 2 * 0 IN (SELECT 0 UNION SELECT 1), 2 * (0 IN (SELECT 0 UNION SELECT 1)), (2 * 0) IN (SELECT 0 UNION SELECT 1); 4469Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4470select 2 * 0 IN (SELECT 0 UNION SELECT 1), 2 * (0 IN (SELECT 0 UNION SELECT 1)), (2 * 0) IN (SELECT 0 UNION SELECT 1) union select * from v1; 4471 4472create or replace view v1 as select 2 / 3 IN (SELECT 0 UNION SELECT 1), 2 / (3 IN (SELECT 0 UNION SELECT 1)), (2 / 3) IN (SELECT 0 UNION SELECT 1); 4473Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4474select 2 / 3 IN (SELECT 0 UNION SELECT 1), 2 / (3 IN (SELECT 0 UNION SELECT 1)), (2 / 3) IN (SELECT 0 UNION SELECT 1) union select * from v1; 4475 4476create or replace view v1 as select 2 DIV 3 IN (SELECT 0 UNION SELECT 1), 2 DIV (3 IN (SELECT 0 UNION SELECT 1)), (2 DIV 3) IN (SELECT 0 UNION SELECT 1); 4477Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4478select 2 DIV 3 IN (SELECT 0 UNION SELECT 1), 2 DIV (3 IN (SELECT 0 UNION SELECT 1)), (2 DIV 3) IN (SELECT 0 UNION SELECT 1) union select * from v1; 4479 4480create or replace view v1 as select 2 MOD 3 IN (SELECT 0 UNION SELECT 1), 2 MOD (3 IN (SELECT 0 UNION SELECT 1)), (2 MOD 3) IN (SELECT 0 UNION SELECT 1); 4481Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4482select 2 MOD 3 IN (SELECT 0 UNION SELECT 1), 2 MOD (3 IN (SELECT 0 UNION SELECT 1)), (2 MOD 3) IN (SELECT 0 UNION SELECT 1) union select * from v1; 4483 4484create or replace view v1 as select 2 % 3 IN (SELECT 0 UNION SELECT 1), 2 % (3 IN (SELECT 0 UNION SELECT 1)), (2 % 3) IN (SELECT 0 UNION SELECT 1); 4485Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4486select 2 % 3 IN (SELECT 0 UNION SELECT 1), 2 % (3 IN (SELECT 0 UNION SELECT 1)), (2 % 3) IN (SELECT 0 UNION SELECT 1) union select * from v1; 4487 4488create or replace view v1 as select 2 ^ 3 IN (SELECT 0 UNION SELECT 1), 2 ^ (3 IN (SELECT 0 UNION SELECT 1)), (2 ^ 3) IN (SELECT 0 UNION SELECT 1); 4489Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4490select 2 ^ 3 IN (SELECT 0 UNION SELECT 1), 2 ^ (3 IN (SELECT 0 UNION SELECT 1)), (2 ^ 3) IN (SELECT 0 UNION SELECT 1) union select * from v1; 4491 4492create or replace view v1 as select 2 BETWEEN 1 AND 3 IN (SELECT 0 UNION SELECT 1), 2 BETWEEN 1 AND (3 IN (SELECT 0 UNION SELECT 1)), (2 BETWEEN 1 AND 3) IN (SELECT 0 UNION SELECT 1); 4493Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4494select 2 BETWEEN 1 AND 3 IN (SELECT 0 UNION SELECT 1), 2 BETWEEN 1 AND (3 IN (SELECT 0 UNION SELECT 1)), (2 BETWEEN 1 AND 3) IN (SELECT 0 UNION SELECT 1) union select * from v1; 4495 4496create or replace view v1 as select 2 LIKE 1 ESCAPE 3 IN (SELECT 0 UNION SELECT 1), 2 LIKE 1 ESCAPE (3 IN (SELECT 0 UNION SELECT 1)), (2 LIKE 1 ESCAPE 3) IN (SELECT 0 UNION SELECT 1); 4497Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4498select 2 LIKE 1 ESCAPE 3 IN (SELECT 0 UNION SELECT 1), 2 LIKE 1 ESCAPE (3 IN (SELECT 0 UNION SELECT 1)), (2 LIKE 1 ESCAPE 3) IN (SELECT 0 UNION SELECT 1) union select * from v1; 4499 4500create or replace view v1 as select 3 BETWEEN 1 AND 2 AND NULL, 3 BETWEEN (1 AND 2) AND NULL, 3 BETWEEN 1 AND (2 AND NULL), (3 BETWEEN 1 AND 2) AND NULL; 4501Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4502select 3 BETWEEN 1 AND 2 AND NULL, 3 BETWEEN (1 AND 2) AND NULL, 3 BETWEEN 1 AND (2 AND NULL), (3 BETWEEN 1 AND 2) AND NULL union select * from v1; 4503 4504set sql_mode=PIPES_AS_CONCAT; 4505create or replace view v1 as select 2 OR 3 || 3, 2 OR (3 || 3), (2 OR 3) || 3; 4506Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4507select 2 OR 3 || 3, 2 OR (3 || 3), (2 OR 3) || 3 union select * from v1; 4508 4509create or replace view v1 as select 2 || 3 OR 3, 2 || (3 OR 3), (2 || 3) OR 3; 4510Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4511select 2 || 3 OR 3, 2 || (3 OR 3), (2 || 3) OR 3 union select * from v1; 4512 4513create or replace view v1 as select NOT 2 || 3, NOT (2 || 3), (NOT 2) || 3; 4514Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4515select NOT 2 || 3, NOT (2 || 3), (NOT 2) || 3 union select * from v1; 4516 4517create or replace view v1 as select - '2 ' || 3, - ('2 ' || 3), (- '2 ') || 3; 4518Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4519select - '2 ' || 3, - ('2 ' || 3), (- '2 ') || 3 union select * from v1; 4520 4521create or replace view v1 as select ~ 2 || 3, ~ (2 || 3), (~ 2) || 3; 4522Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4523select ~ 2 || 3, ~ (2 || 3), (~ 2) || 3 union select * from v1; 4524 4525create or replace view v1 as select ! 2 || 3, ! (2 || 3), (! 2) || 3; 4526Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4527select ! 2 || 3, ! (2 || 3), (! 2) || 3 union select * from v1; 4528 4529create or replace view v1 as select 2 || 3 IS FALSE, 2 || (3 IS FALSE), (2 || 3) IS FALSE; 4530Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4531select 2 || 3 IS FALSE, 2 || (3 IS FALSE), (2 || 3) IS FALSE union select * from v1; 4532 4533create or replace view v1 as select 0 || 3 IN (3,10), 0 || (3 IN (3,10)), (0 || 3) IN (3,10); 4534Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4535select 0 || 3 IN (3,10), 0 || (3 IN (3,10)), (0 || 3) IN (3,10) union select * from v1; 4536 4537create or replace view v1 as select 1 || 0 XOR 1, 1 || (0 XOR 1), (1 || 0) XOR 1; 4538Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4539select 1 || 0 XOR 1, 1 || (0 XOR 1), (1 || 0) XOR 1 union select * from v1; 4540 4541create or replace view v1 as select 1 || 1 AND 0, 1 || (1 AND 0), (1 || 1) AND 0; 4542Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4543select 1 || 1 AND 0, 1 || (1 AND 0), (1 || 1) AND 0 union select * from v1; 4544 4545create or replace view v1 as select 1 || 1 && 0, 1 || (1 && 0), (1 || 1) && 0; 4546Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4547select 1 || 1 && 0, 1 || (1 && 0), (1 || 1) && 0 union select * from v1; 4548 4549create or replace view v1 as select 2 || 3 = 3, 2 || (3 = 3), (2 || 3) = 3; 4550Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4551select 2 || 3 = 3, 2 || (3 = 3), (2 || 3) = 3 union select * from v1; 4552 4553create or replace view v1 as select 2 || 3 <=> 3, 2 || (3 <=> 3), (2 || 3) <=> 3; 4554Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4555select 2 || 3 <=> 3, 2 || (3 <=> 3), (2 || 3) <=> 3 union select * from v1; 4556 4557create or replace view v1 as select 2 || 3 >= 3, 2 || (3 >= 3), (2 || 3) >= 3; 4558Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4559select 2 || 3 >= 3, 2 || (3 >= 3), (2 || 3) >= 3 union select * from v1; 4560 4561create or replace view v1 as select 2 || 3 <= 0, 2 || (3 <= 0), (2 || 3) <= 0; 4562Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4563select 2 || 3 <= 0, 2 || (3 <= 0), (2 || 3) <= 0 union select * from v1; 4564 4565create or replace view v1 as select 2 || 3 < 0, 2 || (3 < 0), (2 || 3) < 0; 4566Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4567select 2 || 3 < 0, 2 || (3 < 0), (2 || 3) < 0 union select * from v1; 4568 4569create or replace view v1 as select 0 || 3 <> 3, 0 || (3 <> 3), (0 || 3) <> 3; 4570Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4571select 0 || 3 <> 3, 0 || (3 <> 3), (0 || 3) <> 3 union select * from v1; 4572 4573create or replace view v1 as select 2 || 3 > 3, 2 || (3 > 3), (2 || 3) > 3; 4574Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4575select 2 || 3 > 3, 2 || (3 > 3), (2 || 3) > 3 union select * from v1; 4576 4577create or replace view v1 as select 0 || 3 != 3, 0 || (3 != 3), (0 || 3) != 3; 4578Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4579select 0 || 3 != 3, 0 || (3 != 3), (0 || 3) != 3 union select * from v1; 4580 4581create or replace view v1 as select 2 || 3 LIKE 3, 2 || (3 LIKE 3), (2 || 3) LIKE 3; 4582Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4583select 2 || 3 LIKE 3, 2 || (3 LIKE 3), (2 || 3) LIKE 3 union select * from v1; 4584 4585create or replace view v1 as select 2 || 3 REGEXP 3, 2 || (3 REGEXP 3), (2 || 3) REGEXP 3; 4586Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4587select 2 || 3 REGEXP 3, 2 || (3 REGEXP 3), (2 || 3) REGEXP 3 union select * from v1; 4588 4589create or replace view v1 as select 2 || ' 3' | 3, 2 || (' 3' | 3), (2 || ' 3') | 3; 4590Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4591select 2 || ' 3' | 3, 2 || (' 3' | 3), (2 || ' 3') | 3 union select * from v1; 4592 4593create or replace view v1 as select 0 || 2 & 2, 0 || (2 & 2), (0 || 2) & 2; 4594Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4595select 0 || 2 & 2, 0 || (2 & 2), (0 || 2) & 2 union select * from v1; 4596 4597create or replace view v1 as select 2 || 3 << 3, 2 || (3 << 3), (2 || 3) << 3; 4598Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4599select 2 || 3 << 3, 2 || (3 << 3), (2 || 3) << 3 union select * from v1; 4600 4601create or replace view v1 as select 2 || 3 >> 3, 2 || (3 >> 3), (2 || 3) >> 3; 4602Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4603select 2 || 3 >> 3, 2 || (3 >> 3), (2 || 3) >> 3 union select * from v1; 4604 4605create or replace view v1 as select 2 || '2000-01-01' +INTERVAL 1 DAY, 2 || ('2000-01-01' +INTERVAL 1 DAY), (2 || '2000-01-01') +INTERVAL 1 DAY; 4606Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4607select 2 || '2000-01-01' +INTERVAL 1 DAY, 2 || ('2000-01-01' +INTERVAL 1 DAY), (2 || '2000-01-01') +INTERVAL 1 DAY union select * from v1; 4608 4609create or replace view v1 as select 2 || ' 3' + 3, 2 || (' 3' + 3), (2 || ' 3') + 3; 4610Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4611select 2 || ' 3' + 3, 2 || (' 3' + 3), (2 || ' 3') + 3 union select * from v1; 4612 4613create or replace view v1 as select 2 || ' 3' - 3, 2 || (' 3' - 3), (2 || ' 3') - 3; 4614Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4615select 2 || ' 3' - 3, 2 || (' 3' - 3), (2 || ' 3') - 3 union select * from v1; 4616 4617create or replace view v1 as select 2 || 3 * 3, 2 || (3 * 3), (2 || 3) * 3; 4618Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4619select 2 || 3 * 3, 2 || (3 * 3), (2 || 3) * 3 union select * from v1; 4620 4621create or replace view v1 as select 2 || 3 / 3, 2 || (3 / 3), (2 || 3) / 3; 4622Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4623select 2 || 3 / 3, 2 || (3 / 3), (2 || 3) / 3 union select * from v1; 4624 4625create or replace view v1 as select 2 || 3 DIV 3, 2 || (3 DIV 3), (2 || 3) DIV 3; 4626Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4627select 2 || 3 DIV 3, 2 || (3 DIV 3), (2 || 3) DIV 3 union select * from v1; 4628 4629create or replace view v1 as select 0 || 3 MOD 3, 0 || (3 MOD 3), (0 || 3) MOD 3; 4630Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4631select 0 || 3 MOD 3, 0 || (3 MOD 3), (0 || 3) MOD 3 union select * from v1; 4632 4633create or replace view v1 as select 0 || 3 % 3, 0 || (3 % 3), (0 || 3) % 3; 4634Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4635select 0 || 3 % 3, 0 || (3 % 3), (0 || 3) % 3 union select * from v1; 4636 4637create or replace view v1 as select 2 || ' 3' ^ 3, 2 || (' 3' ^ 3), (2 || ' 3') ^ 3; 4638Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4639select 2 || ' 3' ^ 3, 2 || (' 3' ^ 3), (2 || ' 3') ^ 3 union select * from v1; 4640 4641create or replace view v1 as select 2 || 3 BETWEEN 2 AND 3, 2 || (3 BETWEEN 2 AND 3), (2 || 3) BETWEEN 2 AND 3; 4642Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4643select 2 || 3 BETWEEN 2 AND 3, 2 || (3 BETWEEN 2 AND 3), (2 || 3) BETWEEN 2 AND 3 union select * from v1; 4644 4645create or replace view v1 as select 2 XOR 3 || 3, 2 XOR (3 || 3), (2 XOR 3) || 3; 4646Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4647select 2 XOR 3 || 3, 2 XOR (3 || 3), (2 XOR 3) || 3 union select * from v1; 4648 4649create or replace view v1 as select 0 AND 3 || 3, 0 AND (3 || 3), (0 AND 3) || 3; 4650Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4651select 0 AND 3 || 3, 0 AND (3 || 3), (0 AND 3) || 3 union select * from v1; 4652 4653create or replace view v1 as select 0 && 3 || 3, 0 && (3 || 3), (0 && 3) || 3; 4654Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4655select 0 && 3 || 3, 0 && (3 || 3), (0 && 3) || 3 union select * from v1; 4656 4657create or replace view v1 as select 2 = 3 || 3, 2 = (3 || 3), (2 = 3) || 3; 4658Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4659select 2 = 3 || 3, 2 = (3 || 3), (2 = 3) || 3 union select * from v1; 4660 4661create or replace view v1 as select 2 <=> 3 || 3, 2 <=> (3 || 3), (2 <=> 3) || 3; 4662Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4663select 2 <=> 3 || 3, 2 <=> (3 || 3), (2 <=> 3) || 3 union select * from v1; 4664 4665create or replace view v1 as select 2 >= 3 || 0, 2 >= (3 || 0), (2 >= 3) || 0; 4666Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4667select 2 >= 3 || 0, 2 >= (3 || 0), (2 >= 3) || 0 union select * from v1; 4668 4669create or replace view v1 as select 2 <= 3 || 3, 2 <= (3 || 3), (2 <= 3) || 3; 4670Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4671select 2 <= 3 || 3, 2 <= (3 || 3), (2 <= 3) || 3 union select * from v1; 4672 4673create or replace view v1 as select 2 < 3 || 3, 2 < (3 || 3), (2 < 3) || 3; 4674Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4675select 2 < 3 || 3, 2 < (3 || 3), (2 < 3) || 3 union select * from v1; 4676 4677create or replace view v1 as select 1 <> 3 || 3, 1 <> (3 || 3), (1 <> 3) || 3; 4678Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4679select 1 <> 3 || 3, 1 <> (3 || 3), (1 <> 3) || 3 union select * from v1; 4680 4681create or replace view v1 as select 0 > 3 || 3, 0 > (3 || 3), (0 > 3) || 3; 4682Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4683select 0 > 3 || 3, 0 > (3 || 3), (0 > 3) || 3 union select * from v1; 4684 4685create or replace view v1 as select 1 != 3 || 3, 1 != (3 || 3), (1 != 3) || 3; 4686Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4687select 1 != 3 || 3, 1 != (3 || 3), (1 != 3) || 3 union select * from v1; 4688 4689create or replace view v1 as select 2 LIKE 3 || 3, 2 LIKE (3 || 3), (2 LIKE 3) || 3; 4690Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4691select 2 LIKE 3 || 3, 2 LIKE (3 || 3), (2 LIKE 3) || 3 union select * from v1; 4692 4693create or replace view v1 as select 2 REGEXP 3 || 3, 2 REGEXP (3 || 3), (2 REGEXP 3) || 3; 4694Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4695select 2 REGEXP 3 || 3, 2 REGEXP (3 || 3), (2 REGEXP 3) || 3 union select * from v1; 4696 4697create or replace view v1 as select 2 | 3 || 3, 2 | (3 || 3), (2 | 3) || 3; 4698Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4699select 2 | 3 || 3, 2 | (3 || 3), (2 | 3) || 3 union select * from v1; 4700 4701create or replace view v1 as select 2 & 3 || 3, 2 & (3 || 3), (2 & 3) || 3; 4702Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4703select 2 & 3 || 3, 2 & (3 || 3), (2 & 3) || 3 union select * from v1; 4704 4705create or replace view v1 as select 2 << 3 || 3, 2 << (3 || 3), (2 << 3) || 3; 4706Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4707select 2 << 3 || 3, 2 << (3 || 3), (2 << 3) || 3 union select * from v1; 4708 4709create or replace view v1 as select 2 >> 3 || 0, 2 >> (3 || 0), (2 >> 3) || 0; 4710Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4711select 2 >> 3 || 0, 2 >> (3 || 0), (2 >> 3) || 0 union select * from v1; 4712 4713create or replace view v1 as select 2 + 3 || 3, 2 + (3 || 3), (2 + 3) || 3; 4714Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4715select 2 + 3 || 3, 2 + (3 || 3), (2 + 3) || 3 union select * from v1; 4716 4717create or replace view v1 as select 2 - 2 || 0, 2 - (2 || 0), (2 - 2) || 0; 4718Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4719select 2 - 2 || 0, 2 - (2 || 0), (2 - 2) || 0 union select * from v1; 4720 4721create or replace view v1 as select 2 * 3 || 3, 2 * (3 || 3), (2 * 3) || 3; 4722Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4723select 2 * 3 || 3, 2 * (3 || 3), (2 * 3) || 3 union select * from v1; 4724 4725create or replace view v1 as select 2 / 3 || 3, 2 / (3 || 3), (2 / 3) || 3; 4726Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4727select 2 / 3 || 3, 2 / (3 || 3), (2 / 3) || 3 union select * from v1; 4728 4729create or replace view v1 as select 2 DIV 3 || 3, 2 DIV (3 || 3), (2 DIV 3) || 3; 4730Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4731select 2 DIV 3 || 3, 2 DIV (3 || 3), (2 DIV 3) || 3 union select * from v1; 4732 4733create or replace view v1 as select 2 MOD 3 || 3, 2 MOD (3 || 3), (2 MOD 3) || 3; 4734Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4735select 2 MOD 3 || 3, 2 MOD (3 || 3), (2 MOD 3) || 3 union select * from v1; 4736 4737create or replace view v1 as select 2 % 3 || 3, 2 % (3 || 3), (2 % 3) || 3; 4738Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4739select 2 % 3 || 3, 2 % (3 || 3), (2 % 3) || 3 union select * from v1; 4740 4741create or replace view v1 as select 2 ^ 3 || 3, 2 ^ (3 || 3), (2 ^ 3) || 3; 4742Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4743select 2 ^ 3 || 3, 2 ^ (3 || 3), (2 ^ 3) || 3 union select * from v1; 4744 4745create or replace view v1 as select 2 BETWEEN 1 AND 3 || 3, 2 BETWEEN 1 AND (3 || 3), (2 BETWEEN 1 AND 3) || 3; 4746Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4747select 2 BETWEEN 1 AND 3 || 3, 2 BETWEEN 1 AND (3 || 3), (2 BETWEEN 1 AND 3) || 3 union select * from v1; 4748 4749create or replace view v1 as select charset(2 LIKE 1 ESCAPE 3 || ''), charset(2 LIKE 1 ESCAPE (3 || '')), charset((2 LIKE 1 ESCAPE 3) || ''); 4750Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4751select charset(2 LIKE 1 ESCAPE 3 || ''), charset(2 LIKE 1 ESCAPE (3 || '')), charset((2 LIKE 1 ESCAPE 3) || '') union select * from v1; 4752 4753# not precedence tests as such, but still tests of Item::print, parentheses and enum precedence 4754 4755create or replace view v1 as select ! - 1, - ! 1; 4756Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4757 4758create or replace view v1 as select ! BINARY 1, BINARY ! 1; 4759Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4760 4761create or replace view v1 as select ! (NOT 1), NOT ! 1; 4762Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4763 4764create or replace view v1 as select ! ~ 1, ~ ! 1; 4765Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4766 4767create or replace view v1 as select - BINARY 1, BINARY - 1; 4768Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4769 4770create or replace view v1 as select - (NOT 1), NOT - 1; 4771Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4772 4773create or replace view v1 as select - ~ 1, ~ - 1; 4774Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4775 4776create or replace view v1 as select BINARY (NOT 1), NOT BINARY 1; 4777Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4778 4779create or replace view v1 as select BINARY ~ 1, ~ BINARY 1; 4780Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4781 4782create or replace view v1 as select NOT ~ 1, ~ (NOT 1); 4783Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4784 4785create or replace view v1 as select 1 IS TRUE IS FALSE, 2 IS FALSE IS UNKNOWN, 3 IS UNKNOWN IS NULL, 4 IS NULL IS TRUE; 4786Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4787 4788create or replace view v1 as select 2 IS TRUE = 3, 2 IS FALSE = 3, 2 IS UNKNOWN = 3, 2 IS NULL = 3, ISNULL(2) = 1; 4789Select view_definition from information_schema.views where table_schema='test' and table_name='v1'; 4790 4791drop view v1; 4792