mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
2fdb556e04
This patch changes the main name of 3 byte character set from utf8 to utf8mb3. New old_mode UTF8_IS_UTF8MB3 is added and set TRUE by default, so that utf8 would mean utf8mb3. If not set, utf8 would mean utf8mb4.
5289 lines
312 KiB
Text
5289 lines
312 KiB
Text
SET @@session.sql_mode = 'NO_ENGINE_SUBSTITUTION';
|
||
SET timestamp=unix_timestamp('2001-02-03 10:20:30');
|
||
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)
|
||
) ENGINE = <engine_to_be_tested>;
|
||
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 NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
|
||
ALTER TABLE t1_values ADD my_timestamp TIMESTAMP NOT NULL DEFAULT '2001-01-01 10:20:30';
|
||
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 14: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;
|
||
##### 1.1.1. CAST --> BINARY
|
||
##### 1.1.2. CAST --> CHAR
|
||
##### 1.1.3. CAST --> DATE
|
||
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;
|
||
##### 1.1.4. CAST --> DATETIME
|
||
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;
|
||
##### 1.1.5. CAST --> TIME
|
||
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;
|
||
INSERT INTO t1_values SET select_id = @select_id,
|
||
my_double = +1.758E+3;
|
||
##### 1.1.6. CAST --> DECIMAL
|
||
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';
|
||
INSERT INTO t1_values SET select_id = @select_id,
|
||
my_double = -0.33333333E+4;
|
||
##### 1.1.7. CAST --> SIGNED INTEGER
|
||
|
||
"Attention: CAST --> SIGNED INTEGER
|
||
Bug#5913 Traditional mode: BIGINT range not correctly delimited
|
||
Status: To be fixed later"
|
||
--------------------------------------------------------------------------------
|
||
##### 1.1.8. CAST --> UNSIGNED INTEGER
|
||
|
||
"Attention: CAST --> UNSIGNED INTEGER
|
||
The file with expected results suffers from Bug 5913"
|
||
--------------------------------------------------------------------------------
|
||
|
||
some statements disabled because of
|
||
Bug#5913 Traditional mode: BIGINT range not correctly delimited
|
||
--------------------------------------------------------------------------------
|
||
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';
|
||
SET @my_select =
|
||
'SELECT LEFT(''AaBbCcDdEeFfGgHhIiJjÄäÜüÖö'', my_bigint), my_bigint, id FROM t1_values';
|
||
SET @my_select =
|
||
'SELECT LEFT(''AaBbCcDdEeFfGgHhIiJjÄäÜüÖö'', my_decimal), my_decimal, id FROM t1_values';
|
||
SET @my_select =
|
||
'SELECT LEFT(''AaBbCcDdEeFfGgHhIiJjÄäÜüÖö'', my_double), my_double, 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';
|
||
SET @my_select =
|
||
'SELECT LOAD_FILE(''<MYSQLTEST_VARDIR>/std_data/funcs_1/load_file.txt'')
|
||
AS my_col,
|
||
id FROM t1_values';
|
||
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
|
||
WHERE select_id = 193 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 193 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 192 OR select_id IS NULL order by id;
|
||
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;
|
||
View Create View character_set_client collation_connection
|
||
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select concat('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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 192 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 191 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 191 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 190 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 190 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 189 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 189 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 188 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 188 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 187 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 187 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 186 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 186 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 185 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 185 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 184 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 184 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 183 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View character_set_client collation_connection
|
||
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate('-',' - -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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 183 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 182 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View character_set_client collation_connection
|
||
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate('-',' - -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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 182 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 181 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View character_set_client collation_connection
|
||
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate('-',' - -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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 181 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 180 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
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`,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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 180 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 179 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
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`,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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 179 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 178 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
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`,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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 178 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 177 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
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`,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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 177 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 176 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 176 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 175 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 175 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 174 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 174 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 173 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 173 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 172 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 172 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 171 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 171 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 170 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 170 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 169 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 169 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 168 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 168 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 167 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 167 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 166 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 166 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 165 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 165 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 164 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 164 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 163 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 163 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 162 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 162 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 161 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 161 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 160 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View character_set_client collation_connection
|
||
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate('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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 160 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 159 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View character_set_client collation_connection
|
||
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate('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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 159 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 158 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View character_set_client collation_connection
|
||
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate('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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 158 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 157 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View character_set_client collation_connection
|
||
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select locate('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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 157 OR select_id IS NULL) order by id;
|
||
DROP VIEW v1;
|
||
|
||
|
||
CREATE VIEW v1 AS SELECT LOAD_FILE('<MYSQLTEST_VARDIR>/std_data/funcs_1/load_file.txt')
|
||
AS my_col,
|
||
id FROM t1_values;
|
||
SELECT LOAD_FILE('<MYSQLTEST_VARDIR>/std_data/funcs_1/load_file.txt')
|
||
AS my_col,
|
||
id FROM t1_values
|
||
WHERE select_id = 156 OR select_id IS NULL order by id;
|
||
my_col id
|
||
Here is content from load_file
|
||
1
|
||
Here is content from load_file
|
||
2
|
||
Here is content from load_file
|
||
3
|
||
Here is content from load_file
|
||
4
|
||
Here is content from load_file
|
||
5
|
||
SHOW CREATE VIEW v1;
|
||
View Create View character_set_client collation_connection
|
||
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select load_file('<MYSQLTEST_VARDIR>/std_data/funcs_1/load_file.txt') AS `my_col`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 156 OR select_id IS NULL) order by id;
|
||
my_col id
|
||
Here is content from load_file
|
||
1
|
||
Here is content from load_file
|
||
2
|
||
Here is content from load_file
|
||
3
|
||
Here is content from load_file
|
||
4
|
||
Here is content from load_file
|
||
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
|
||
WHERE select_id = 155 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View character_set_client collation_connection
|
||
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select octet_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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 155 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 154 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View character_set_client collation_connection
|
||
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select octet_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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 154 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 153 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View character_set_client collation_connection
|
||
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select octet_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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 153 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 152 OR select_id IS NULL order by id;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View character_set_client collation_connection
|
||
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select octet_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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 152 OR select_id IS NULL) order by id;
|
||
DROP VIEW v1;
|
||
|
||
|
||
CREATE VIEW v1 AS SELECT LEFT('AaBbCcDdEeFfGgHhIiJjÄäÜüÖö', my_double), my_double, id FROM t1_values;
|
||
SELECT LEFT('AaBbCcDdEeFfGgHhIiJjÄäÜüÖö', my_double), my_double, id FROM t1_values
|
||
WHERE select_id = 151 OR select_id IS NULL order by id;
|
||
LEFT('AaBbCcDdEeFfGgHhIiJjÄäÜüÖö', my_double) my_double id
|
||
NULL NULL 1
|
||
-1.7976931348623e308 2
|
||
AaBbCcDdEeFfGgHhIiJjÄäÜüÖö 1.7976931348623e308 3
|
||
0 4
|
||
-1 5
|
||
Warnings:
|
||
Warning 1916 Got overflow when converting '-1.7976931348623e308' to INT. Value truncated
|
||
Warning 1916 Got overflow when converting '1.7976931348623e308' to INT. Value truncated
|
||
SHOW CREATE VIEW v1;
|
||
View Create View character_set_client collation_connection
|
||
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select left('AaBbCcDdEeFfGgHhIiJjÄäÜüÖö',`t1_values`.`my_double`) AS `LEFT('AaBbCcDdEeFfGgHhIiJjÄäÜüÖö', my_double)`,`t1_values`.`my_double` AS `my_double`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 151 OR select_id IS NULL) order by id;
|
||
LEFT('AaBbCcDdEeFfGgHhIiJjÄäÜüÖö', my_double) my_double id
|
||
NULL NULL 1
|
||
-1.7976931348623e308 2
|
||
AaBbCcDdEeFfGgHhIiJjÄäÜüÖö 1.7976931348623e308 3
|
||
0 4
|
||
-1 5
|
||
Warnings:
|
||
Warning 1916 Got overflow when converting '-1.7976931348623e308' to INT. Value truncated
|
||
Warning 1916 Got overflow when converting '1.7976931348623e308' to INT. Value truncated
|
||
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
|
||
WHERE select_id = 150 OR select_id IS NULL order by id;
|
||
LEFT('AaBbCcDdEeFfGgHhIiJjÄäÜüÖö', my_decimal) my_decimal id
|
||
NULL NULL 1
|
||
-9999999999999999999999999999999999.999999999999999999999999999999 2
|
||
AaBbCcDdEeFfGgHhIiJjÄäÜüÖö 9999999999999999999999999999999999.999999999999999999999999999999 3
|
||
0.000000000000000000000000000000 4
|
||
-1.000000000000000000000000000000 5
|
||
Warnings:
|
||
Warning 1916 Got overflow when converting '-9999999999999999999999999999999999.999999999999999999999999999999' to INT. Value truncated
|
||
Warning 1916 Got overflow when converting '9999999999999999999999999999999999.999999999999999999999999999999' to INT. Value truncated
|
||
SHOW CREATE VIEW v1;
|
||
View Create View character_set_client collation_connection
|
||
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select left('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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 150 OR select_id IS NULL) order by id;
|
||
LEFT('AaBbCcDdEeFfGgHhIiJjÄäÜüÖö', my_decimal) my_decimal id
|
||
NULL NULL 1
|
||
-9999999999999999999999999999999999.999999999999999999999999999999 2
|
||
AaBbCcDdEeFfGgHhIiJjÄäÜüÖö 9999999999999999999999999999999999.999999999999999999999999999999 3
|
||
0.000000000000000000000000000000 4
|
||
-1.000000000000000000000000000000 5
|
||
Warnings:
|
||
Warning 1916 Got overflow when converting '-9999999999999999999999999999999999.999999999999999999999999999999' to INT. Value truncated
|
||
Warning 1916 Got overflow when converting '9999999999999999999999999999999999.999999999999999999999999999999' to INT. Value truncated
|
||
DROP VIEW v1;
|
||
|
||
|
||
CREATE VIEW v1 AS SELECT LEFT('AaBbCcDdEeFfGgHhIiJjÄäÜüÖö', my_bigint), my_bigint, id FROM t1_values;
|
||
SELECT LEFT('AaBbCcDdEeFfGgHhIiJjÄäÜüÖö', my_bigint), my_bigint, id FROM t1_values
|
||
WHERE select_id = 149 OR select_id IS NULL order by id;
|
||
LEFT('AaBbCcDdEeFfGgHhIiJjÄäÜüÖö', my_bigint) my_bigint id
|
||
NULL NULL 1
|
||
-9223372036854775808 2
|
||
AaBbCcDdEeFfGgHhIiJjÄäÜüÖö 9223372036854775807 3
|
||
0 4
|
||
-1 5
|
||
SHOW CREATE VIEW v1;
|
||
View Create View character_set_client collation_connection
|
||
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select left('AaBbCcDdEeFfGgHhIiJjÄäÜüÖö',`t1_values`.`my_bigint`) AS `LEFT('AaBbCcDdEeFfGgHhIiJjÄäÜüÖö', my_bigint)`,`t1_values`.`my_bigint` AS `my_bigint`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 149 OR select_id IS NULL) order by id;
|
||
LEFT('AaBbCcDdEeFfGgHhIiJjÄäÜüÖö', my_bigint) my_bigint id
|
||
NULL NULL 1
|
||
-9223372036854775808 2
|
||
AaBbCcDdEeFfGgHhIiJjÄäÜüÖö 9223372036854775807 3
|
||
0 4
|
||
-1 5
|
||
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
|
||
WHERE select_id = 148 OR select_id IS NULL order by id;
|
||
LEFT(my_varbinary_1000, 2) my_varbinary_1000 id
|
||
NULL NULL 1
|
||
2
|
||
<- <---------1000 characters--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> 3
|
||
- ---äÖüß@µ*$-- 4
|
||
-1 -1 5
|
||
SHOW CREATE VIEW v1;
|
||
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
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 148 OR select_id IS NULL) order by id;
|
||
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
|
||
WHERE select_id = 147 OR select_id IS NULL order by id;
|
||
LEFT(my_binary_30, 2) my_binary_30 id
|
||
NULL NULL 1
|
||
2
|
||
<- <--------30 characters-------> 3
|
||
- ---äÖüß@µ*$-- 4
|
||
-1 -1 5
|
||
SHOW CREATE VIEW v1;
|
||
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_binary_30`,2) AS `LEFT(my_binary_30, 2)`,`t1_values`.`my_binary_30` AS `my_binary_30`,`t1_values`.`id` AS `id` from `t1_values` latin1 latin1_swedish_ci
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 147 OR select_id IS NULL) order by id;
|
||
LEFT(my_binary_30, 2) my_binary_30 id
|
||
NULL NULL 1
|
||
|