--disable_warnings
DROP TABLE IF EXISTS t1;
--enable_warnings
CREATE TABLE t1(c1 CHAR(1) NULL, c2 CHAR(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 CHAR(1) NULL, c2 CHAR(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 CHAR(1) NULL, c2 CHAR(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 CHAR(1) NULL, c2 CHAR(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 CHAR(1) NULL, c2 CHAR(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 CHAR(1) NULL, c2 CHAR(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 CHAR(1) NULL, c2 CHAR(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 VARCHAR(1) NULL, c2 VARCHAR(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 VARCHAR(1) NULL, c2 VARCHAR(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 VARCHAR(1) NULL, c2 VARCHAR(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 VARCHAR(1) NULL, c2 VARCHAR(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 VARCHAR(1) NULL, c2 VARCHAR(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 VARCHAR(1) NULL, c2 VARCHAR(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 VARCHAR(1) NULL, c2 VARCHAR(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 BINARY(1) NULL, c2 BINARY(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 BINARY(1) NULL, c2 BINARY(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 BINARY(1) NULL, c2 BINARY(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 BINARY(1) NULL, c2 BINARY(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 BINARY(1) NULL, c2 BINARY(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 BINARY(1) NULL, c2 BINARY(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 BINARY(1) NULL, c2 BINARY(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 VARBINARY(1) NULL, c2 VARBINARY(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 VARBINARY(1) NULL, c2 VARBINARY(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 VARBINARY(1) NULL, c2 VARBINARY(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 VARBINARY(1) NULL, c2 VARBINARY(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 VARBINARY(1) NULL, c2 VARBINARY(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 VARBINARY(1) NULL, c2 VARBINARY(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 VARBINARY(1) NULL, c2 VARBINARY(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 BLOB(1) NULL, c2 BLOB(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 BLOB(1) NULL, c2 BLOB(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 BLOB(1) NULL, c2 BLOB(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 BLOB(1) NULL, c2 BLOB(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 BLOB(1) NULL, c2 BLOB(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 BLOB(1) NULL, c2 BLOB(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 BLOB(1) NULL, c2 BLOB(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 TEXT(1) NULL, c2 TEXT(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 TEXT(1) NULL, c2 TEXT(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 TEXT(1) NULL, c2 TEXT(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 TEXT(1) NULL, c2 TEXT(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 TEXT(1) NULL, c2 TEXT(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 TEXT(1) NULL, c2 TEXT(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;
CREATE TABLE t1(c1 TEXT(1) NULL, c2 TEXT(1) NULL, c3 INT NULL);
--source suite/engines/funcs/t/data1.inc
SELECT DISTINCT c1 FROM t1;
SELECT DISTINCT c2 FROM t1;
SELECT DISTINCT c3 FROM t1;
SELECT DISTINCT c1,c3 FROM t1;
SELECT DISTINCT c1,c2,c3 FROM t1;
SELECT DISTINCT c3,c2,c1 FROM t1;
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2';
SELECT DISTINCT c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c2 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c1,c2,c3 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
SELECT DISTINCT c3,c2,c1 FROM t1 WHERE t1.c1='#C2' AND t1.c2='#C2';
DROP TABLE t1;

