Current Path : /home/usr.opt/mysql57/mysql-test/suite/engines/funcs/t/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //home/usr.opt/mysql57/mysql-test/suite/engines/funcs/t/se_string_union.test |
#Want to skip this test from daily Valgrind execution --source include/no_valgrind_without_big.inc --disable_warnings DROP TABLE IF EXISTS t1,t2; --enable_warnings CREATE TABLE t1(c1 CHAR(1) NULL, c2 CHAR(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 CHAR(1) NULL, c2 CHAR(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 CHAR(1) NULL, c2 CHAR(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 CHAR(1) NULL, c2 CHAR(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 CHAR(1) NULL, c2 CHAR(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 CHAR(1) NULL, c2 CHAR(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 CHAR(1) NULL, c2 CHAR(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 CHAR(1) NULL, c2 CHAR(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 CHAR(1) NULL, c2 CHAR(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 CHAR(1) NULL, c2 CHAR(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 CHAR(1) NULL, c2 CHAR(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 CHAR(1) NULL, c2 CHAR(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 CHAR(1) NULL, c2 CHAR(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 CHAR(1) NULL, c2 CHAR(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 VARCHAR(1) NULL, c2 VARCHAR(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 VARCHAR(1) NULL, c2 VARCHAR(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 VARCHAR(1) NULL, c2 VARCHAR(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 VARCHAR(1) NULL, c2 VARCHAR(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 VARCHAR(1) NULL, c2 VARCHAR(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 VARCHAR(1) NULL, c2 VARCHAR(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 VARCHAR(1) NULL, c2 VARCHAR(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 VARCHAR(1) NULL, c2 VARCHAR(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 VARCHAR(1) NULL, c2 VARCHAR(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 VARCHAR(1) NULL, c2 VARCHAR(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 VARCHAR(1) NULL, c2 VARCHAR(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 VARCHAR(1) NULL, c2 VARCHAR(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 VARCHAR(1) NULL, c2 VARCHAR(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 VARCHAR(1) NULL, c2 VARCHAR(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 BINARY(1) NULL, c2 BINARY(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 BINARY(1) NULL, c2 BINARY(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 BINARY(1) NULL, c2 BINARY(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 BINARY(1) NULL, c2 BINARY(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 BINARY(1) NULL, c2 BINARY(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 BINARY(1) NULL, c2 BINARY(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 BINARY(1) NULL, c2 BINARY(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 BINARY(1) NULL, c2 BINARY(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 BINARY(1) NULL, c2 BINARY(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 BINARY(1) NULL, c2 BINARY(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 BINARY(1) NULL, c2 BINARY(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 BINARY(1) NULL, c2 BINARY(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 BINARY(1) NULL, c2 BINARY(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 BINARY(1) NULL, c2 BINARY(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 VARBINARY(1) NULL, c2 VARBINARY(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 VARBINARY(1) NULL, c2 VARBINARY(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 VARBINARY(1) NULL, c2 VARBINARY(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 VARBINARY(1) NULL, c2 VARBINARY(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 VARBINARY(1) NULL, c2 VARBINARY(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 VARBINARY(1) NULL, c2 VARBINARY(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 VARBINARY(1) NULL, c2 VARBINARY(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 VARBINARY(1) NULL, c2 VARBINARY(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 VARBINARY(1) NULL, c2 VARBINARY(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 VARBINARY(1) NULL, c2 VARBINARY(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 VARBINARY(1) NULL, c2 VARBINARY(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 VARBINARY(1) NULL, c2 VARBINARY(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 VARBINARY(1) NULL, c2 VARBINARY(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 VARBINARY(1) NULL, c2 VARBINARY(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 BLOB(1) NULL, c2 BLOB(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 BLOB(1) NULL, c2 BLOB(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 BLOB(1) NULL, c2 BLOB(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 BLOB(1) NULL, c2 BLOB(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 BLOB(1) NULL, c2 BLOB(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 BLOB(1) NULL, c2 BLOB(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 BLOB(1) NULL, c2 BLOB(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 BLOB(1) NULL, c2 BLOB(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 BLOB(1) NULL, c2 BLOB(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 BLOB(1) NULL, c2 BLOB(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 BLOB(1) NULL, c2 BLOB(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 BLOB(1) NULL, c2 BLOB(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 BLOB(1) NULL, c2 BLOB(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 BLOB(1) NULL, c2 BLOB(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 TEXT(1) NULL, c2 TEXT(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 TEXT(1) NULL, c2 TEXT(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 TEXT(1) NULL, c2 TEXT(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 TEXT(1) NULL, c2 TEXT(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 TEXT(1) NULL, c2 TEXT(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 TEXT(1) NULL, c2 TEXT(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 TEXT(1) NULL, c2 TEXT(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 TEXT(1) NULL, c2 TEXT(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 TEXT(1) NULL, c2 TEXT(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 TEXT(1) NULL, c2 TEXT(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 TEXT(1) NULL, c2 TEXT(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 TEXT(1) NULL, c2 TEXT(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2; CREATE TABLE t1(c1 TEXT(1) NULL, c2 TEXT(1) NULL, c3 INT NULL); CREATE TABLE t2(c1 TEXT(1) NULL, c2 TEXT(1) NULL, c3 INT NULL); --source suite/engines/funcs/t/data1.inc --source suite/engines/funcs/t/data2.inc SELECT c1 FROM t1 UNION SELECT c1 FROM t2; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c1 !='#C2' ; SELECT c1 FROM t1 WHERE c1='#C2' UNION SELECT c2 FROM t1 WHERE c1='#C2' UNION SELECT c1 FROM t2 WHERE c2 ='#C2' ; DROP TABLE t1,t2;