mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 14:02:32 +01:00
78207030bb
Note datadict files do not include wrong is_updatable wrong value as a result of bug 30020. mysql-test/suite/funcs_1/datadict/datadict_master.inc: Updated test file mysql-test/suite/funcs_1/r/innodb__datadict.result: Updated test file mysql-test/suite/funcs_1/r/innodb_func_view.result: Updated test file mysql-test/suite/funcs_1/r/innodb_trig_0102.result: Updated test file mysql-test/suite/funcs_1/r/innodb_trig_08.result: Updated test file mysql-test/suite/funcs_1/r/innodb_trig_09.result: Updated test file mysql-test/suite/funcs_1/r/innodb_views.result: Updated test file mysql-test/suite/funcs_1/r/memory__datadict.result: Updated test file mysql-test/suite/funcs_1/r/memory_func_view.result: Updated test file mysql-test/suite/funcs_1/r/memory_trig_0102.result: Updated test file mysql-test/suite/funcs_1/r/memory_trig_08.result: Updated test file mysql-test/suite/funcs_1/r/memory_trig_09.result: Updated test file mysql-test/suite/funcs_1/r/memory_views.result: Updated test file mysql-test/suite/funcs_1/r/myisam__datadict.result: Updated test file mysql-test/suite/funcs_1/r/myisam_func_view.result: Updated test file mysql-test/suite/funcs_1/r/myisam_trig_0102.result: Updated test file mysql-test/suite/funcs_1/r/myisam_trig_08.result: Updated test file mysql-test/suite/funcs_1/r/myisam_trig_09.result: Updated test file mysql-test/suite/funcs_1/r/myisam_views.result: Updated test file mysql-test/suite/funcs_1/triggers/triggers_0102.inc: Updated test file mysql-test/suite/funcs_1/views/func_view.inc: Updated test file
5088 lines
280 KiB
Text
5088 lines
280 KiB
Text
|
||
! 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)
|
||
) ENGINE = 'InnoDB' ;
|
||
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;
|
||
|
||
some statements disabled because of
|
||
Bug#12440: CAST(data type DOUBLE AS TIME) strange results
|
||
--------------------------------------------------------------------------------
|
||
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';
|
||
|
||
some statements disabled because of
|
||
Bug#13349: CAST(1.0E+300 TO DECIMAL) returns wrong result + diff little/big endian
|
||
--------------------------------------------------------------------------------
|
||
|
||
"Attention: CAST --> SIGNED INTEGER
|
||
The file with expected results suffers from
|
||
Bug#5083 Big integer values are inserted as negative into
|
||
decimal/string columns
|
||
Bug#5913 Traditional mode: BIGINT range not correctly delimited
|
||
Both have the status: To be fixed later"
|
||
--------------------------------------------------------------------------------
|
||
|
||
some statements disabled because of
|
||
Bug #13344: CAST(1E+300 TO signed int) on little endian CPU, wrong result
|
||
--------------------------------------------------------------------------------
|
||
|
||
"Attention: CAST --> UNSIGNED INTEGER
|
||
The file with expected results suffers from Bug 5083 5913 9809"
|
||
--------------------------------------------------------------------------------
|
||
|
||
some statements disabled because of
|
||
Bugs#8663: cant use bgint unsigned as input to cast
|
||
--------------------------------------------------------------------------------
|
||
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';
|
||
|
||
"Attention: IF(my_year IS NULL, ...
|
||
The file with expected results suffers from
|
||
Bug#11689. successful CREATE VIEW but SELECT on view fails."
|
||
--------------------------------------------------------------------------------
|
||
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>)
|
||
The file with expected results suffers from Bug 10963 11728"
|
||
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';
|
||
SET @my_select =
|
||
'SELECT LOAD_FILE(''../log/current_test''), 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 = 187 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 187 OR select_id IS NULL);
|
||
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 = 186 OR select_id IS NULL;
|
||
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
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 186 OR select_id IS NULL);
|
||
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 = 185 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 185 OR select_id IS NULL);
|
||
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 = 184 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 184 OR select_id IS NULL);
|
||
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 = 183 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 183 OR select_id IS NULL);
|
||
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 = 182 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 182 OR select_id IS NULL);
|
||
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 = 181 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 181 OR select_id IS NULL);
|
||
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 = 180 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 180 OR select_id IS NULL);
|
||
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 = 179 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 179 OR select_id IS NULL);
|
||
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 = 178 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 178 OR select_id IS NULL);
|
||
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 = 177 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 177 OR select_id IS NULL);
|
||
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 = 176 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 176 OR select_id IS NULL);
|
||
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 = 175 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 175 OR select_id IS NULL);
|
||
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 = 174 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 174 OR select_id IS NULL);
|
||
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 = 173 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 173 OR select_id IS NULL);
|
||
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 = 172 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 172 OR select_id IS NULL);
|
||
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 = 171 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 171 OR select_id IS NULL);
|
||
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 = 170 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 170 OR select_id IS NULL);
|
||
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 = 169 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 169 OR select_id IS NULL);
|
||
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 = 168 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 168 OR select_id IS NULL);
|
||
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 = 167 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 167 OR select_id IS NULL);
|
||
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 = 166 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 166 OR select_id IS NULL);
|
||
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 = 165 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 165 OR select_id IS NULL);
|
||
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 = 164 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 164 OR select_id IS NULL);
|
||
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 = 163 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 163 OR select_id IS NULL);
|
||
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 = 162 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 162 OR select_id IS NULL);
|
||
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 = 161 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 161 OR select_id IS NULL);
|
||
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 = 160 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 160 OR select_id IS NULL);
|
||
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 = 159 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 159 OR select_id IS NULL);
|
||
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 = 158 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 158 OR select_id IS NULL);
|
||
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 = 157 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 157 OR select_id IS NULL);
|
||
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 = 156 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 156 OR select_id IS NULL);
|
||
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 = 155 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 155 OR select_id IS NULL);
|
||
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 = 154 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 154 OR select_id IS NULL);
|
||
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 = 153 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 153 OR select_id IS NULL);
|
||
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 = 152 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 152 OR select_id IS NULL);
|
||
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 = 151 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 151 OR select_id IS NULL);
|
||
DROP VIEW v1;
|
||
|
||
|
||
CREATE VIEW v1 AS SELECT LOAD_FILE('../log/current_test'), id FROM t1_values;
|
||
SELECT LOAD_FILE('../log/current_test'), id FROM t1_values
|
||
WHERE select_id = 150 OR select_id IS NULL;
|
||
LOAD_FILE('../log/current_test') id
|
||
CURRENT_TEST: innodb_func_view
|
||
1
|
||
CURRENT_TEST: innodb_func_view
|
||
2
|
||
CURRENT_TEST: innodb_func_view
|
||
3
|
||
CURRENT_TEST: innodb_func_view
|
||
4
|
||
CURRENT_TEST: innodb_func_view
|
||
5
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select load_file(_latin1'../log/current_test') AS `LOAD_FILE('../log/current_test')`,`t1_values`.`id` AS `id` from `t1_values`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 150 OR select_id IS NULL);
|
||
LOAD_FILE('../log/current_test') id
|
||
CURRENT_TEST: innodb_func_view
|
||
1
|
||
CURRENT_TEST: innodb_func_view
|
||
2
|
||
CURRENT_TEST: innodb_func_view
|
||
3
|
||
CURRENT_TEST: innodb_func_view
|
||
4
|
||
CURRENT_TEST: innodb_func_view
|
||
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 = 149 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 149 OR select_id IS NULL);
|
||
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 = 148 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 148 OR select_id IS NULL);
|
||
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 = 147 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 147 OR select_id IS NULL);
|
||
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 = 146 OR select_id IS NULL;
|
||
SHOW CREATE VIEW v1;
|
||
View Create View
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 146 OR select_id IS NULL);
|
||
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 = 145 OR select_id IS NULL;
|
||
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;
|
||
View Create View
|
||
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select left(_latin1'AaBbCcDdEeFfGgHhIiJj<4A><6A><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',`t1_values`.`my_decimal`) AS `LEFT('AaBbCcDdEeFfGgHhIiJjÄäÜüÖö', my_decimal)`,`t1_values`.`my_decimal` AS `my_decimal`,`t1_values`.`id` AS `id` from `t1_values`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 145 OR select_id IS NULL);
|
||
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
|
||
WHERE select_id = 144 OR select_id IS NULL;
|
||
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
|
||
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`
|
||
SELECT v1.* FROM v1
|
||
WHERE v1.id IN (SELECT id FROM t1_values
|
||
WHERE select_id = 144 OR select_id IS NULL);
|
||
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 = 143 OR select_id IS NULL;
|
||
LEFT(my_binary_30, 2) my_binary_30 id
|
||
NULL NULL 1
|
||
|