2007-02-06 19:07:48 +01:00
! Attention: The file with the expected results suffers from
Bug#10713: mysqldump includes database in create view and referenced tables
--------------------------------------------------------------------------------
DROP TABLE IF EXISTS t1_selects, t1_modes, t1_values;
DROP VIEW IF EXISTS v1;
CREATE TABLE t1_values
(
id BIGINT AUTO_INCREMENT,
select_id BIGINT,
PRIMARY KEY(id)
2007-08-06 18:46:00 -07:00
) ENGINE = <engine_to_be_tested>;
2007-02-06 19:07:48 +01:00
ALTER TABLE t1_values ADD my_char_30 CHAR(30);
ALTER TABLE t1_values ADD my_varchar_1000 VARCHAR(1000);
ALTER TABLE t1_values ADD my_binary_30 BINARY(30);
ALTER TABLE t1_values ADD my_varbinary_1000 VARBINARY(1000);
ALTER TABLE t1_values ADD my_datetime DATETIME;
ALTER TABLE t1_values ADD my_date DATE;
ALTER TABLE t1_values ADD ts_dummy TIMESTAMP;
ALTER TABLE t1_values ADD my_timestamp TIMESTAMP;
ALTER TABLE t1_values ADD my_time TIME;
ALTER TABLE t1_values ADD my_year YEAR;
ALTER TABLE t1_values ADD my_bigint BIGINT;
ALTER TABLE t1_values ADD my_double DOUBLE;
ALTER TABLE t1_values ADD my_decimal DECIMAL(64,30);
SET sql_mode = 'traditional';
INSERT INTO t1_values SET id = 0;
INSERT INTO t1_values SET
my_char_30 = '',
my_varchar_1000 = '',
my_binary_30 = '',
my_varbinary_1000 = '',
my_datetime = '0001-01-01 00:00:00',
my_date = '0001-01-01',
my_timestamp = '1970-01-01 03:00:01',
my_time = '-838:59:59',
my_year = '1901',
my_bigint = -9223372036854775808,
my_decimal = -9999999999999999999999999999999999.999999999999999999999999999999 ,
my_double = -1.7976931348623E+308;
INSERT INTO t1_values SET
my_char_30 = '<--------30 characters------->',
my_varchar_1000 = CONCAT('<---------1000 characters',
RPAD('',965,'-'),'--------->'),
my_binary_30 = '<--------30 characters------->',
my_varbinary_1000 = CONCAT('<---------1000 characters',
RPAD('',965,'-'),'--------->'),
my_datetime = '9999-12-31 23:59:59',
my_date = '9999-12-31',
my_timestamp = '2038-01-01 02:59:59',
my_time = '838:59:59',
my_year = 2155,
my_bigint = 9223372036854775807,
my_decimal = +9999999999999999999999999999999999.999999999999999999999999999999 ,
my_double = 1.7976931348623E+308;
INSERT INTO t1_values SET
my_char_30 = ' ---äÖüß@µ*$-- ',
my_varchar_1000 = ' ---äÖüß@µ*$-- ',
my_binary_30 = ' ---äÖüß@µ*$-- ',
my_varbinary_1000 = ' ---äÖüß@µ*$-- ',
my_datetime = '2004-02-29 23:59:59',
my_date = '2004-02-29',
my_timestamp = '2004-02-29 23:59:59',
my_time = '13:00:00',
my_year = 2000,
my_bigint = 0,
my_decimal = 0.0,
my_double = 0;
INSERT INTO t1_values SET
my_char_30 = '-1',
my_varchar_1000 = '-1',
my_binary_30 = '-1',
my_varbinary_1000 = '-1',
my_datetime = '2005-06-28 10:00:00',
my_date = '2005-06-28',
my_timestamp = '2005-06-28 10:00:00',
my_time = '10:00:00',
my_year = 2005,
my_bigint = -1,
my_decimal = -1.000000000000000000000000000000,
my_double = -0.1E+1;
PREPARE ins_sel_with_result FROM "INSERT INTO t1_selects SET my_select = @my_select,
disable_result = 'No'" ;
PREPARE ins_sel_no_result FROM "INSERT INTO t1_selects SET my_select = @my_select,
disable_result = 'Yes'" ;
SET sql_mode = 'traditional';
SET @my_select = 'SELECT sqrt(my_bigint), my_bigint, id FROM t1_values';
INSERT INTO t1_values SET select_id = @select_id,
my_bigint = 4;
INSERT INTO t1_values SET select_id = @select_id,
my_bigint = -25;
INSERT INTO t1_values SET select_id = @select_id,
my_char_30 = '2005-06-27';
INSERT INTO t1_values SET select_id = @select_id,
my_varchar_1000 = '2005-06-27';
INSERT INTO t1_values SET select_id = @select_id,
my_binary_30 = '2005-06-27';
INSERT INTO t1_values SET select_id = @select_id,
my_varbinary_1000 = '2005-06-27';
INSERT INTO t1_values SET select_id = @select_id,
my_bigint = 20050627;
INSERT INTO t1_values SET select_id = @select_id,
my_double = +20.050627E+6;
INSERT INTO t1_values SET select_id = @select_id,
my_char_30 = '2005-06-27 17:58';
INSERT INTO t1_values SET select_id = @select_id,
my_varchar_1000 = '2005-06-27 17:58';
INSERT INTO t1_values SET select_id = @select_id,
my_binary_30 = '2005-06-27 17:58';
INSERT INTO t1_values SET select_id = @select_id,
my_varbinary_1000 = '2005-06-27 17:58';
INSERT INTO t1_values SET select_id = @select_id,
my_bigint = 200506271758;
INSERT INTO t1_values SET select_id = @select_id,
my_double = +0.0200506271758E+13;
INSERT INTO t1_values SET select_id = @select_id,
my_char_30 = '1 17:58';
INSERT INTO t1_values SET select_id = @select_id,
my_varchar_1000 = '1 17:58';
INSERT INTO t1_values SET select_id = @select_id,
my_binary_30 = '1 17:58';
INSERT INTO t1_values SET select_id = @select_id,
my_varbinary_1000 = '1 17:58';
INSERT INTO t1_values SET select_id = @select_id,
my_bigint = 1758;
2007-08-06 18:46:00 -07:00
INSERT INTO t1_values SET select_id = @select_id,
my_double = +1.758E+3;
2007-02-06 19:07:48 +01:00
INSERT INTO t1_values SET select_id = @select_id,
my_char_30 = '-3333.3333';
INSERT INTO t1_values SET select_id = @select_id,
my_varchar_1000 = '-3333.3333';
INSERT INTO t1_values SET select_id = @select_id,
my_binary_30 = '-3333.3333';
INSERT INTO t1_values SET select_id = @select_id,
my_varbinary_1000 = '-3333.3333';
2007-08-06 18:46:00 -07:00
INSERT INTO t1_values SET select_id = @select_id,
my_double = -0.33333333E+4;
2007-02-06 19:07:48 +01:00
"Attention: CAST --> SIGNED INTEGER
Bug#5913 Traditional mode: BIGINT range not correctly delimited
2007-08-06 18:46:00 -07:00
Status: To be fixed later"
2007-02-06 19:07:48 +01:00
--------------------------------------------------------------------------------
"Attention: CAST --> UNSIGNED INTEGER
2007-08-06 18:46:00 -07:00
The file with expected results suffers from Bug 5913"
2007-02-06 19:07:48 +01:00
--------------------------------------------------------------------------------
some statements disabled because of
2007-08-06 18:46:00 -07:00
Bug#5913 Traditional mode: BIGINT range not correctly delimited
2007-02-06 19:07:48 +01:00
--------------------------------------------------------------------------------
SET @my_select = 'SELECT CONVERT(my_char_30 USING utf8),
my_char_30, id FROM t1_values';
SET @my_select = 'SELECT CONVERT(my_varchar_1000 USING utf8),
my_varchar_1000, id FROM t1_values';
SET @my_select = 'SELECT CONVERT(my_binary_30 USING utf8),
my_binary_30, id FROM t1_values';
SET @my_select = 'SELECT CONVERT(my_varbinary_1000 USING utf8),
my_varbinary_1000, id FROM t1_values';
SET @my_select = 'SELECT CONVERT(my_char_30 USING koi8r),
my_char_30, id FROM t1_values';
SET @my_select = 'SELECT CONVERT(my_varchar_1000 USING koi8r),
my_varchar_1000, id FROM t1_values';
SET @my_select = 'SELECT CONVERT(my_binary_30 USING koi8r),
my_binary_30, id FROM t1_values';
SET @my_select = 'SELECT CONVERT(my_varbinary_1000 USING koi8r),
my_varbinary_1000, id FROM t1_values';
SET @my_select = 'SELECT BIT_LENGTH(my_char_30),
my_char_30, id FROM t1_values';
SET @my_select = 'SELECT BIT_LENGTH(my_varchar_1000),
my_varchar_1000, id FROM t1_values';
SET @my_select = 'SELECT BIT_LENGTH(my_binary_30),
my_binary_30, id FROM t1_values';
SET @my_select = 'SELECT BIT_LENGTH(my_varbinary_1000),
my_varbinary_1000, id FROM t1_values';
SET @my_select = 'SELECT INSTR(my_char_30, ''char''),
my_char_30, id FROM t1_values';
SET @my_select = 'SELECT LCASE(my_varchar_1000),
my_varchar_1000, id FROM t1_values';
SET @my_select =
'SELECT LEFT(my_char_30, 2), my_char_30, id FROM t1_values';
SET @my_select =
'SELECT LEFT(my_varchar_1000, 2), my_varchar_1000, id FROM t1_values';
SET @my_select =
'SELECT LEFT(my_binary_30, 2), my_binary_30, id FROM t1_values';
SET @my_select =
'SELECT LEFT(my_varbinary_1000, 2), my_varbinary_1000, id FROM t1_values';
"Attention: LEFT('AaBbCcDdEeFfGgHhIiJjÄäÜüÖö', <numeric column>)
2007-08-06 18:46:00 -07:00
The file with expected results suffers from Bug 10963"
2007-02-06 19:07:48 +01:00
and the testcases with length = BIGINT or DOUBLE column are deactivated,
because there are 32/64 Bit differences
--------------------------------------------------------------------------------
SET @my_select =
'SELECT LEFT(''AaBbCcDdEeFfGgHhIiJjÄäÜüÖö'', my_decimal), my_decimal, id FROM t1_values';
SET @my_select = 'SELECT LENGTH(my_char_30),
my_char_30, id FROM t1_values';
SET @my_select = 'SELECT LENGTH(my_varchar_1000),
my_varchar_1000, id FROM t1_values';
SET @my_select = 'SELECT LENGTH(my_binary_30),
my_binary_30, id FROM t1_values';
SET @my_select = 'SELECT LENGTH(my_varbinary_1000),
my_varbinary_1000, id FROM t1_values';
2007-08-06 18:46:00 -07:00
SELECT 'äÄ@' INTO OUTFILE '../tmp/func_view.dat';
2007-02-06 19:07:48 +01:00
SET @my_select =
2007-08-06 18:46:00 -07:00
'SELECT LOAD_FILE(''../tmp/func_view.dat''), id FROM t1_values';
2007-02-06 19:07:48 +01:00
SET @my_select = 'SELECT LOCATE(''char'', my_char_30),
my_char_30, id FROM t1_values';
SET @my_select = 'SELECT LOCATE(''char'', my_varchar_1000),
my_varchar_1000, id FROM t1_values';
SET @my_select = 'SELECT LOCATE(''char'', my_binary_30),
my_binary_30, id FROM t1_values';
SET @my_select = 'SELECT LOCATE(''char'', my_varbinary_1000),
my_varbinary_1000, id FROM t1_values';
SET @my_select = 'SELECT LOCATE(my_char_30, my_char_30 ),
my_char_30, id FROM t1_values';
SET @my_select = 'SELECT LOCATE(my_char_30, my_varchar_1000 ),
my_char_30, my_varchar_1000 id FROM t1_values';
SET @my_select = 'SELECT LOCATE(my_char_30, my_binary_30 ),
my_char_30, my_binary_30 id FROM t1_values';
SET @my_select = 'SELECT LOCATE(my_char_30, my_varbinary_1000 ),
my_char_30, my_varbinary_1000 id FROM t1_values';
SET @my_select = 'SELECT LOCATE(my_varchar_1000, my_varchar_1000 ),
my_varchar_1000, id FROM t1_values';
SET @my_select = 'SELECT LOCATE(my_varchar_1000, my_char_30 ),
my_varchar_1000, my_char_30 id FROM t1_values';
SET @my_select = 'SELECT LOCATE(my_varchar_1000, my_binary_30 ),
my_varchar_1000, my_binary_30 id FROM t1_values';
SET @my_select = 'SELECT LOCATE(my_varchar_1000, my_varbinary_1000 ),
my_varchar_1000, my_varbinary_1000 id FROM t1_values';
SET @my_select = 'SELECT LOCATE(my_binary_30, my_binary_30 ),
my_binary_30, id FROM t1_values';
SET @my_select = 'SELECT LOCATE(my_binary_30, my_char_30 ),
my_binary_30, my_char_30 id FROM t1_values';
SET @my_select = 'SELECT LOCATE(my_binary_30, my_varchar_1000 ),
my_binary_30, my_varchar_1000 id FROM t1_values';
SET @my_select = 'SELECT LOCATE(my_binary_30, my_varbinary_1000 ),
my_binary_30, my_varbinary_1000 id FROM t1_values';
SET @my_select = 'SELECT LOCATE(my_varbinary_1000, my_varbinary_1000 ),
my_varbinary_1000, id FROM t1_values';
SET @my_select = 'SELECT LOCATE(my_varbinary_1000, my_char_30 ),
my_varbinary_1000, my_char_30 id FROM t1_values';
SET @my_select = 'SELECT LOCATE(my_varbinary_1000, my_varchar_1000 ),
my_varbinary_1000, my_varchar_1000 id FROM t1_values';
SET @my_select = 'SELECT LOCATE(my_varbinary_1000, my_binary_30 ),
my_varbinary_1000, my_binary_30 id FROM t1_values';
SET @my_select = 'SELECT LOCATE(''-'', my_char_30, 3),
my_char_30, id FROM t1_values';
SET @my_select = 'SELECT LOCATE(''-'', my_varchar_1000, 3),
my_varchar_1000, id FROM t1_values';
SET @my_select = 'SELECT LOCATE(''-'', my_binary_30, 3),
my_binary_30, id FROM t1_values';
SET @my_select = 'SELECT LOCATE(''-'', my_varbinary_1000, 3),
my_varbinary_1000, id FROM t1_values';
SET @my_select = 'SELECT LOCATE(''-'', '' - -ABC'', my_bigint),
my_bigint, id FROM t1_values';
SET @my_select = 'SELECT LOCATE(''-'', '' - -ABC'', my_double),
my_double, id FROM t1_values';
SET @my_select = 'SELECT LOCATE(''-'', '' - -ABC'', my_decimal),
my_decimal, id FROM t1_values';
SET @my_select = 'SELECT LOWER(my_char_30),
my_char_30, id FROM t1_values';
SET @my_select = 'SELECT LOWER(my_varchar_1000),
my_varchar_1000, id FROM t1_values';
SET @my_select = 'SELECT LOWER(my_binary_30),
my_binary_30, id FROM t1_values';
SET @my_select = 'SELECT LOWER(my_varbinary_1000),
my_varbinary_1000, id FROM t1_values';
SET @my_select = 'SELECT LTRIM(my_char_30),
my_char_30, id FROM t1_values';
SET @my_select = 'SELECT LTRIM(my_varchar_1000),
my_varchar_1000, id FROM t1_values';
SET @my_select = 'SELECT LTRIM(my_binary_30),
my_binary_30, id FROM t1_values';
SET @my_select = 'SELECT LTRIM(my_varbinary_1000),
my_varbinary_1000, id FROM t1_values';
SET @my_select =
'SELECT CONCAT(''A'',my_char_30), my_char_30, id FROM t1_values';
SET @my_select = 'SELECT my_char_30, id FROM t1_values';
INSERT INTO t1_values SET select_id = @select_id,
my_char_30 = 'Viana do Castelo';
SET sql_mode = '';
"# The basic preparations end and the main test starts here"
--------------------------------------------------------------------------------
CREATE VIEW v1 AS SELECT my_char_30, id FROM t1_values;
SELECT my_char_30, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 190 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1_values`.`my_char_30` AS `my_char_30`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 190 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT CONCAT('A',my_char_30), my_char_30, id FROM t1_values;
SELECT CONCAT('A',my_char_30), my_char_30, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 189 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
CONCAT('A',my_char_30) my_char_30 id
NULL NULL 1
A 2
A<--------30 characters-------> <--------30 characters-------> 3
A ---äÖüß@µ*$-- ---äÖüß@µ*$-- 4
A-1 -1 5
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select concat(_latin1'A',`t1_values`.`my_char_30`) AS `CONCAT('A',my_char_30)`,`t1_values`.`my_char_30` AS `my_char_30`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 189 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
CONCAT('A',my_char_30) my_char_30 id
NULL NULL 1
A 2
A<--------30 characters-------> <--------30 characters-------> 3
A ---äÖüß@µ*$-- ---äÖüß@µ*$-- 4
A-1 -1 5
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LTRIM(my_varbinary_1000),
my_varbinary_1000, id FROM t1_values;
SELECT LTRIM(my_varbinary_1000),
my_varbinary_1000, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 188 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select ltrim(`t1_values`.`my_varbinary_1000`) AS `LTRIM(my_varbinary_1000)`,`t1_values`.`my_varbinary_1000` AS `my_varbinary_1000`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 188 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LTRIM(my_binary_30),
my_binary_30, id FROM t1_values;
SELECT LTRIM(my_binary_30),
my_binary_30, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 187 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select ltrim(`t1_values`.`my_binary_30`) AS `LTRIM(my_binary_30)`,`t1_values`.`my_binary_30` AS `my_binary_30`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 187 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LTRIM(my_varchar_1000),
my_varchar_1000, id FROM t1_values;
SELECT LTRIM(my_varchar_1000),
my_varchar_1000, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 186 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select ltrim(`t1_values`.`my_varchar_1000`) AS `LTRIM(my_varchar_1000)`,`t1_values`.`my_varchar_1000` AS `my_varchar_1000`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 186 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LTRIM(my_char_30),
my_char_30, id FROM t1_values;
SELECT LTRIM(my_char_30),
my_char_30, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 185 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select ltrim(`t1_values`.`my_char_30`) AS `LTRIM(my_char_30)`,`t1_values`.`my_char_30` AS `my_char_30`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 185 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOWER(my_varbinary_1000),
my_varbinary_1000, id FROM t1_values;
SELECT LOWER(my_varbinary_1000),
my_varbinary_1000, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 184 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select lcase(`t1_values`.`my_varbinary_1000`) AS `LOWER(my_varbinary_1000)`,`t1_values`.`my_varbinary_1000` AS `my_varbinary_1000`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 184 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOWER(my_binary_30),
my_binary_30, id FROM t1_values;
SELECT LOWER(my_binary_30),
my_binary_30, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 183 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select lcase(`t1_values`.`my_binary_30`) AS `LOWER(my_binary_30)`,`t1_values`.`my_binary_30` AS `my_binary_30`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 183 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOWER(my_varchar_1000),
my_varchar_1000, id FROM t1_values;
SELECT LOWER(my_varchar_1000),
my_varchar_1000, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 182 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select lcase(`t1_values`.`my_varchar_1000`) AS `LOWER(my_varchar_1000)`,`t1_values`.`my_varchar_1000` AS `my_varchar_1000`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 182 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOWER(my_char_30),
my_char_30, id FROM t1_values;
SELECT LOWER(my_char_30),
my_char_30, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 181 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select lcase(`t1_values`.`my_char_30`) AS `LOWER(my_char_30)`,`t1_values`.`my_char_30` AS `my_char_30`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 181 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOCATE('-', ' - -ABC', my_decimal),
my_decimal, id FROM t1_values;
SELECT LOCATE('-', ' - -ABC', my_decimal),
my_decimal, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 180 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate(_latin1'-',_latin1' - -ABC',`t1_values`.`my_decimal`) AS `LOCATE('-', ' - -ABC', my_decimal)`,`t1_values`.`my_decimal` AS `my_decimal`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 180 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOCATE('-', ' - -ABC', my_double),
my_double, id FROM t1_values;
SELECT LOCATE('-', ' - -ABC', my_double),
my_double, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 179 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate(_latin1'-',_latin1' - -ABC',`t1_values`.`my_double`) AS `LOCATE('-', ' - -ABC', my_double)`,`t1_values`.`my_double` AS `my_double`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 179 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOCATE('-', ' - -ABC', my_bigint),
my_bigint, id FROM t1_values;
SELECT LOCATE('-', ' - -ABC', my_bigint),
my_bigint, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 178 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate(_latin1'-',_latin1' - -ABC',`t1_values`.`my_bigint`) AS `LOCATE('-', ' - -ABC', my_bigint)`,`t1_values`.`my_bigint` AS `my_bigint`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 178 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOCATE('-', my_varbinary_1000, 3),
my_varbinary_1000, id FROM t1_values;
SELECT LOCATE('-', my_varbinary_1000, 3),
my_varbinary_1000, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 177 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate(_latin1'-',`t1_values`.`my_varbinary_1000`,3) AS `LOCATE('-', my_varbinary_1000, 3)`,`t1_values`.`my_varbinary_1000` AS `my_varbinary_1000`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 177 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOCATE('-', my_binary_30, 3),
my_binary_30, id FROM t1_values;
SELECT LOCATE('-', my_binary_30, 3),
my_binary_30, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 176 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate(_latin1'-',`t1_values`.`my_binary_30`,3) AS `LOCATE('-', my_binary_30, 3)`,`t1_values`.`my_binary_30` AS `my_binary_30`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 176 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOCATE('-', my_varchar_1000, 3),
my_varchar_1000, id FROM t1_values;
SELECT LOCATE('-', my_varchar_1000, 3),
my_varchar_1000, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 175 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate(_latin1'-',`t1_values`.`my_varchar_1000`,3) AS `LOCATE('-', my_varchar_1000, 3)`,`t1_values`.`my_varchar_1000` AS `my_varchar_1000`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 175 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOCATE('-', my_char_30, 3),
my_char_30, id FROM t1_values;
SELECT LOCATE('-', my_char_30, 3),
my_char_30, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 174 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate(_latin1'-',`t1_values`.`my_char_30`,3) AS `LOCATE('-', my_char_30, 3)`,`t1_values`.`my_char_30` AS `my_char_30`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 174 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOCATE(my_varbinary_1000, my_binary_30 ),
my_varbinary_1000, my_binary_30 id FROM t1_values;
SELECT LOCATE(my_varbinary_1000, my_binary_30 ),
my_varbinary_1000, my_binary_30 id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 173 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate(`t1_values`.`my_varbinary_1000`,`t1_values`.`my_binary_30`) AS `LOCATE(my_varbinary_1000, my_binary_30 )`,`t1_values`.`my_varbinary_1000` AS `my_varbinary_1000`,`t1_values`.`my_binary_30` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 173 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOCATE(my_varbinary_1000, my_varchar_1000 ),
my_varbinary_1000, my_varchar_1000 id FROM t1_values;
SELECT LOCATE(my_varbinary_1000, my_varchar_1000 ),
my_varbinary_1000, my_varchar_1000 id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 172 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate(`t1_values`.`my_varbinary_1000`,`t1_values`.`my_varchar_1000`) AS `LOCATE(my_varbinary_1000, my_varchar_1000 )`,`t1_values`.`my_varbinary_1000` AS `my_varbinary_1000`,`t1_values`.`my_varchar_1000` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 172 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOCATE(my_varbinary_1000, my_char_30 ),
my_varbinary_1000, my_char_30 id FROM t1_values;
SELECT LOCATE(my_varbinary_1000, my_char_30 ),
my_varbinary_1000, my_char_30 id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 171 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate(`t1_values`.`my_varbinary_1000`,`t1_values`.`my_char_30`) AS `LOCATE(my_varbinary_1000, my_char_30 )`,`t1_values`.`my_varbinary_1000` AS `my_varbinary_1000`,`t1_values`.`my_char_30` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 171 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOCATE(my_varbinary_1000, my_varbinary_1000 ),
my_varbinary_1000, id FROM t1_values;
SELECT LOCATE(my_varbinary_1000, my_varbinary_1000 ),
my_varbinary_1000, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 170 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate(`t1_values`.`my_varbinary_1000`,`t1_values`.`my_varbinary_1000`) AS `LOCATE(my_varbinary_1000, my_varbinary_1000 )`,`t1_values`.`my_varbinary_1000` AS `my_varbinary_1000`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 170 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOCATE(my_binary_30, my_varbinary_1000 ),
my_binary_30, my_varbinary_1000 id FROM t1_values;
SELECT LOCATE(my_binary_30, my_varbinary_1000 ),
my_binary_30, my_varbinary_1000 id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 169 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate(`t1_values`.`my_binary_30`,`t1_values`.`my_varbinary_1000`) AS `LOCATE(my_binary_30, my_varbinary_1000 )`,`t1_values`.`my_binary_30` AS `my_binary_30`,`t1_values`.`my_varbinary_1000` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 169 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOCATE(my_binary_30, my_varchar_1000 ),
my_binary_30, my_varchar_1000 id FROM t1_values;
SELECT LOCATE(my_binary_30, my_varchar_1000 ),
my_binary_30, my_varchar_1000 id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 168 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate(`t1_values`.`my_binary_30`,`t1_values`.`my_varchar_1000`) AS `LOCATE(my_binary_30, my_varchar_1000 )`,`t1_values`.`my_binary_30` AS `my_binary_30`,`t1_values`.`my_varchar_1000` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 168 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOCATE(my_binary_30, my_char_30 ),
my_binary_30, my_char_30 id FROM t1_values;
SELECT LOCATE(my_binary_30, my_char_30 ),
my_binary_30, my_char_30 id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 167 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate(`t1_values`.`my_binary_30`,`t1_values`.`my_char_30`) AS `LOCATE(my_binary_30, my_char_30 )`,`t1_values`.`my_binary_30` AS `my_binary_30`,`t1_values`.`my_char_30` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 167 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOCATE(my_binary_30, my_binary_30 ),
my_binary_30, id FROM t1_values;
SELECT LOCATE(my_binary_30, my_binary_30 ),
my_binary_30, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 166 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate(`t1_values`.`my_binary_30`,`t1_values`.`my_binary_30`) AS `LOCATE(my_binary_30, my_binary_30 )`,`t1_values`.`my_binary_30` AS `my_binary_30`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 166 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOCATE(my_varchar_1000, my_varbinary_1000 ),
my_varchar_1000, my_varbinary_1000 id FROM t1_values;
SELECT LOCATE(my_varchar_1000, my_varbinary_1000 ),
my_varchar_1000, my_varbinary_1000 id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 165 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate(`t1_values`.`my_varchar_1000`,`t1_values`.`my_varbinary_1000`) AS `LOCATE(my_varchar_1000, my_varbinary_1000 )`,`t1_values`.`my_varchar_1000` AS `my_varchar_1000`,`t1_values`.`my_varbinary_1000` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 165 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOCATE(my_varchar_1000, my_binary_30 ),
my_varchar_1000, my_binary_30 id FROM t1_values;
SELECT LOCATE(my_varchar_1000, my_binary_30 ),
my_varchar_1000, my_binary_30 id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 164 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate(`t1_values`.`my_varchar_1000`,`t1_values`.`my_binary_30`) AS `LOCATE(my_varchar_1000, my_binary_30 )`,`t1_values`.`my_varchar_1000` AS `my_varchar_1000`,`t1_values`.`my_binary_30` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 164 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOCATE(my_varchar_1000, my_char_30 ),
my_varchar_1000, my_char_30 id FROM t1_values;
SELECT LOCATE(my_varchar_1000, my_char_30 ),
my_varchar_1000, my_char_30 id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 163 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate(`t1_values`.`my_varchar_1000`,`t1_values`.`my_char_30`) AS `LOCATE(my_varchar_1000, my_char_30 )`,`t1_values`.`my_varchar_1000` AS `my_varchar_1000`,`t1_values`.`my_char_30` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 163 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOCATE(my_varchar_1000, my_varchar_1000 ),
my_varchar_1000, id FROM t1_values;
SELECT LOCATE(my_varchar_1000, my_varchar_1000 ),
my_varchar_1000, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 162 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate(`t1_values`.`my_varchar_1000`,`t1_values`.`my_varchar_1000`) AS `LOCATE(my_varchar_1000, my_varchar_1000 )`,`t1_values`.`my_varchar_1000` AS `my_varchar_1000`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 162 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOCATE(my_char_30, my_varbinary_1000 ),
my_char_30, my_varbinary_1000 id FROM t1_values;
SELECT LOCATE(my_char_30, my_varbinary_1000 ),
my_char_30, my_varbinary_1000 id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 161 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate(`t1_values`.`my_char_30`,`t1_values`.`my_varbinary_1000`) AS `LOCATE(my_char_30, my_varbinary_1000 )`,`t1_values`.`my_char_30` AS `my_char_30`,`t1_values`.`my_varbinary_1000` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 161 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOCATE(my_char_30, my_binary_30 ),
my_char_30, my_binary_30 id FROM t1_values;
SELECT LOCATE(my_char_30, my_binary_30 ),
my_char_30, my_binary_30 id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 160 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate(`t1_values`.`my_char_30`,`t1_values`.`my_binary_30`) AS `LOCATE(my_char_30, my_binary_30 )`,`t1_values`.`my_char_30` AS `my_char_30`,`t1_values`.`my_binary_30` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 160 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOCATE(my_char_30, my_varchar_1000 ),
my_char_30, my_varchar_1000 id FROM t1_values;
SELECT LOCATE(my_char_30, my_varchar_1000 ),
my_char_30, my_varchar_1000 id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 159 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate(`t1_values`.`my_char_30`,`t1_values`.`my_varchar_1000`) AS `LOCATE(my_char_30, my_varchar_1000 )`,`t1_values`.`my_char_30` AS `my_char_30`,`t1_values`.`my_varchar_1000` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 159 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOCATE(my_char_30, my_char_30 ),
my_char_30, id FROM t1_values;
SELECT LOCATE(my_char_30, my_char_30 ),
my_char_30, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 158 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate(`t1_values`.`my_char_30`,`t1_values`.`my_char_30`) AS `LOCATE(my_char_30, my_char_30 )`,`t1_values`.`my_char_30` AS `my_char_30`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 158 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOCATE('char', my_varbinary_1000),
my_varbinary_1000, id FROM t1_values;
SELECT LOCATE('char', my_varbinary_1000),
my_varbinary_1000, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 157 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate(_latin1'char',`t1_values`.`my_varbinary_1000`) AS `LOCATE('char', my_varbinary_1000)`,`t1_values`.`my_varbinary_1000` AS `my_varbinary_1000`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 157 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOCATE('char', my_binary_30),
my_binary_30, id FROM t1_values;
SELECT LOCATE('char', my_binary_30),
my_binary_30, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 156 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate(_latin1'char',`t1_values`.`my_binary_30`) AS `LOCATE('char', my_binary_30)`,`t1_values`.`my_binary_30` AS `my_binary_30`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 156 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOCATE('char', my_varchar_1000),
my_varchar_1000, id FROM t1_values;
SELECT LOCATE('char', my_varchar_1000),
my_varchar_1000, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 155 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate(_latin1'char',`t1_values`.`my_varchar_1000`) AS `LOCATE('char', my_varchar_1000)`,`t1_values`.`my_varchar_1000` AS `my_varchar_1000`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 155 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LOCATE('char', my_char_30),
my_char_30, id FROM t1_values;
SELECT LOCATE('char', my_char_30),
my_char_30, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 154 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate(_latin1'char',`t1_values`.`my_char_30`) AS `LOCATE('char', my_char_30)`,`t1_values`.`my_char_30` AS `my_char_30`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 154 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
2007-08-06 18:46:00 -07:00
CREATE VIEW v1 AS SELECT LOAD_FILE('../tmp/func_view.dat'), id FROM t1_values;
SELECT LOAD_FILE('../tmp/func_view.dat'), id FROM t1_values
WHERE select_id = 153 OR select_id IS NULL order by id;
LOAD_FILE('../tmp/func_view.dat') id
äÄ@
2007-02-06 19:07:48 +01:00
1
2007-08-06 18:46:00 -07:00
äÄ@
2007-02-06 19:07:48 +01:00
2
2007-08-06 18:46:00 -07:00
äÄ@
2007-02-06 19:07:48 +01:00
3
2007-08-06 18:46:00 -07:00
äÄ@
2007-02-06 19:07:48 +01:00
4
2007-08-06 18:46:00 -07:00
äÄ@
2007-02-06 19:07:48 +01:00
5
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select load_file(_latin1'../tmp/func_view.dat') AS `LOAD_FILE('../tmp/func_view.dat')`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 153 OR select_id IS NULL) order by id;
LOAD_FILE('../tmp/func_view.dat') id
äÄ@
2007-02-06 19:07:48 +01:00
1
2007-08-06 18:46:00 -07:00
äÄ@
2007-02-06 19:07:48 +01:00
2
2007-08-06 18:46:00 -07:00
äÄ@
2007-02-06 19:07:48 +01:00
3
2007-08-06 18:46:00 -07:00
äÄ@
2007-02-06 19:07:48 +01:00
4
2007-08-06 18:46:00 -07:00
äÄ@
2007-02-06 19:07:48 +01:00
5
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LENGTH(my_varbinary_1000),
my_varbinary_1000, id FROM t1_values;
SELECT LENGTH(my_varbinary_1000),
my_varbinary_1000, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 152 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select length(`t1_values`.`my_varbinary_1000`) AS `LENGTH(my_varbinary_1000)`,`t1_values`.`my_varbinary_1000` AS `my_varbinary_1000`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 152 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LENGTH(my_binary_30),
my_binary_30, id FROM t1_values;
SELECT LENGTH(my_binary_30),
my_binary_30, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 151 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select length(`t1_values`.`my_binary_30`) AS `LENGTH(my_binary_30)`,`t1_values`.`my_binary_30` AS `my_binary_30`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 151 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LENGTH(my_varchar_1000),
my_varchar_1000, id FROM t1_values;
SELECT LENGTH(my_varchar_1000),
my_varchar_1000, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 150 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select length(`t1_values`.`my_varchar_1000`) AS `LENGTH(my_varchar_1000)`,`t1_values`.`my_varchar_1000` AS `my_varchar_1000`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 150 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LENGTH(my_char_30),
my_char_30, id FROM t1_values;
SELECT LENGTH(my_char_30),
my_char_30, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 149 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select length(`t1_values`.`my_char_30`) AS `LENGTH(my_char_30)`,`t1_values`.`my_char_30` AS `my_char_30`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 149 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LEFT('AaBbCcDdEeFfGgHhIiJjÄäÜüÖö', my_decimal), my_decimal, id FROM t1_values;
SELECT LEFT('AaBbCcDdEeFfGgHhIiJjÄäÜüÖö', my_decimal), my_decimal, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 148 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
LEFT('AaBbCcDdEeFfGgHhIiJjÄäÜüÖö', my_decimal) my_decimal id
NULL NULL 1
-9999999999999999999999999999999999.999999999999999999999999999999 2
AaBbCcDdEeFfGgHhIiJjÄäÜüÖö 9999999999999999999999999999999999.999999999999999999999999999999 3
0.000000000000000000000000000000 4
-1.000000000000000000000000000000 5
Warnings:
Error 1292 Truncated incorrect DECIMAL value: ''
Error 1292 Truncated incorrect DECIMAL value: ''
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select left(_latin1'AaBbCcDdEeFfGgHhIiJjÄäÜüÖö',`t1_values`.`my_decimal`) AS `LEFT('AaBbCcDdEeFfGgHhIiJjÄäÜüÖö', my_decimal)`,`t1_values`.`my_decimal` AS `my_decimal`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 148 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
LEFT('AaBbCcDdEeFfGgHhIiJjÄäÜüÖö', my_decimal) my_decimal id
NULL NULL 1
-9999999999999999999999999999999999.999999999999999999999999999999 2
AaBbCcDdEeFfGgHhIiJjÄäÜüÖö 9999999999999999999999999999999999.999999999999999999999999999999 3
0.000000000000000000000000000000 4
-1.000000000000000000000000000000 5
Warnings:
Error 1292 Truncated incorrect DECIMAL value: ''
Error 1292 Truncated incorrect DECIMAL value: ''
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LEFT(my_varbinary_1000, 2), my_varbinary_1000, id FROM t1_values;
SELECT LEFT(my_varbinary_1000, 2), my_varbinary_1000, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 147 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
LEFT(my_varbinary_1000, 2) my_varbinary_1000 id
NULL NULL 1
2
<- <---------1000 characters--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> 3
- ---äÖüß@µ*$-- 4
-1 -1 5
SHOW CREATE VIEW v1;
2007-08-06 18:46:00 -07:00
View Create View character_set_client collation_connection
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select left(`t1_values`.`my_varbinary_1000`,2) AS `LEFT(my_varbinary_1000, 2)`,`t1_values`.`my_varbinary_1000` AS `my_varbinary_1000`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
2007-02-06 19:07:48 +01:00
SELECT v1.* FROM v1
WHERE v1.id IN (SELECT id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 147 OR select_id IS NULL) order by id;
2007-02-06 19:07:48 +01:00
LEFT(my_varbinary_1000, 2) my_varbinary_1000 id
NULL NULL 1
2
<- <---------1000 characters--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> 3
- ---äÖüß@µ*$-- 4
-1 -1 5
DROP VIEW v1;
CREATE VIEW v1 AS SELECT LEFT(my_binary_30, 2), my_binary_30, id FROM t1_values;
SELECT LEFT(my_binary_30, 2), my_binary_30, id FROM t1_values
2007-08-06 18:46:00 -07:00
WHERE select_id = 146 OR select_id IS NULL order by id;
2007-02-06 19:07:48 +01:00
LEFT(my_binary_30, 2) my_binary_30 id
NULL NULL 1