mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Sergey Petrunya fixes for subselect* tests,
and other misc test fixes
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
drop table if exists t1,t2,t3,t4,t5,t6;
|
||||
drop view if exists v1, v2;
|
||||
set @subselect4_tmp= @@optimizer_switch;
|
||||
set optimizer_switch='semijoin=on,firstmatch=on,loosescan=on';
|
||||
set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
|
||||
@ -121,14 +122,14 @@ EXPLAIN
|
||||
SELECT * FROM t1 WHERE ( a, b ) NOT IN ( SELECT c, d FROM t2 );
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
x PRIMARY x x x x x x x x
|
||||
x SUBQUERY x x x x x x x x
|
||||
x DEPENDENT SUBQUERY x x x x x x x x
|
||||
SELECT * FROM t1 WHERE ( a, b ) NOT IN ( SELECT c, d FROM t2 );
|
||||
a b
|
||||
EXPLAIN
|
||||
SELECT * FROM t1 WHERE ( a, b ) NOT IN ( SELECT c, d FROM t2 ) IS NULL;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
|
||||
2 SUBQUERY t2 ALL NULL NULL NULL NULL 2
|
||||
2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
|
||||
SELECT * FROM t1 WHERE ( a, b ) NOT IN ( SELECT c, d FROM t2 ) IS NULL;
|
||||
a b
|
||||
1 NULL
|
||||
@ -151,28 +152,28 @@ EXPLAIN
|
||||
SELECT * FROM t1 WHERE ( a, b ) NOT IN ( SELECT e, f FROM t3 );
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
x PRIMARY x x x x x x x x
|
||||
x SUBQUERY x x x x x x x x
|
||||
x DEPENDENT SUBQUERY x x x x x x x x
|
||||
SELECT * FROM t1 WHERE ( a, b ) NOT IN ( SELECT e, f FROM t3 );
|
||||
a b
|
||||
EXPLAIN
|
||||
SELECT * FROM t2 WHERE ( c, d ) NOT IN ( SELECT a, b FROM t1 );
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
x PRIMARY x x x x x x x x
|
||||
x SUBQUERY x x x x x x x x
|
||||
x DEPENDENT SUBQUERY x x x x x x x x
|
||||
SELECT * FROM t2 WHERE ( c, d ) NOT IN ( SELECT a, b FROM t1 );
|
||||
c d
|
||||
EXPLAIN
|
||||
SELECT * FROM t3 WHERE ( e, f ) NOT IN ( SELECT c, d FROM t2 );
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
x PRIMARY x x x x x x x x
|
||||
x SUBQUERY x x x x x x x x
|
||||
x DEPENDENT SUBQUERY x x x x x x x x
|
||||
SELECT * FROM t3 WHERE ( e, f ) NOT IN ( SELECT c, d FROM t2 );
|
||||
e f
|
||||
EXPLAIN
|
||||
SELECT * FROM t2 WHERE ( c, d ) NOT IN ( SELECT e, f FROM t3 );
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
x PRIMARY x x x x x x x x
|
||||
x SUBQUERY x x x x x x x x
|
||||
x DEPENDENT SUBQUERY x x x x x x x x
|
||||
SELECT * FROM t2 WHERE ( c, d ) NOT IN ( SELECT e, f FROM t3 );
|
||||
c d
|
||||
SELECT * FROM t1 WHERE ( a, b ) NOT IN
|
||||
@ -224,7 +225,7 @@ id select_type table type possible_keys key key_len ref rows filtered Extra
|
||||
2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
|
||||
Warnings:
|
||||
Note 1276 Field or reference 'test.t1.c' of SELECT #2 was resolved in SELECT #1
|
||||
Note 1003 select (select 1 from `test`.`t2` where 0) AS `RESULT` from `test`.`t1`
|
||||
Note 1003 select (select 1 from `test`.`t2` where 0) AS `RESULT` from dual
|
||||
first equivalent variant
|
||||
SELECT (SELECT 1 FROM t2 WHERE d = IFNULL(c,NULL)) AS RESULT FROM t1 GROUP BY c ;
|
||||
RESULT
|
||||
@ -235,7 +236,7 @@ id select_type table type possible_keys key key_len ref rows filtered Extra
|
||||
2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
|
||||
Warnings:
|
||||
Note 1276 Field or reference 'test.t1.c' of SELECT #2 was resolved in SELECT #1
|
||||
Note 1003 select (select 1 from `test`.`t2` where 0) AS `RESULT` from `test`.`t1` group by NULL
|
||||
Note 1003 select (select 1 from `test`.`t2` where 0) AS `RESULT` from dual group by NULL
|
||||
second equivalent variant
|
||||
SELECT (SELECT 1 FROM t2 WHERE d = c) AS RESULT FROM t1 GROUP BY c ;
|
||||
RESULT
|
||||
@ -246,7 +247,7 @@ id select_type table type possible_keys key key_len ref rows filtered Extra
|
||||
2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
|
||||
Warnings:
|
||||
Note 1276 Field or reference 'test.t1.c' of SELECT #2 was resolved in SELECT #1
|
||||
Note 1003 select (select 1 from `test`.`t2` where 0) AS `RESULT` from `test`.`t1` group by NULL
|
||||
Note 1003 select (select 1 from `test`.`t2` where 0) AS `RESULT` from dual group by NULL
|
||||
DROP TABLE t1,t2;
|
||||
#
|
||||
# BUG#45928 "Differing query results depending on MRR and
|
||||
@ -506,6 +507,7 @@ DROP TABLE t1,t2;
|
||||
#
|
||||
# End of 5.3 tests.
|
||||
#
|
||||
#
|
||||
# Bug#53236 Segfault in DTCollation::set(DTCollation&)
|
||||
#
|
||||
CREATE TABLE t1 (
|
||||
@ -574,7 +576,7 @@ INSERT INTO t1 VALUES ('28','6','m'),('29','4','c');
|
||||
CREATE TABLE t2 (f11 varchar(1)) ;
|
||||
INSERT INTO t2 VALUES ('f'),('d');
|
||||
SET @old_optimizer_switch = @@session.optimizer_switch;
|
||||
SET SESSION optimizer_switch = 'materialization=on,in_to_exists=off,';
|
||||
SET SESSION optimizer_switch = 'materialization=on,in_to_exists=off';
|
||||
EXPLAIN
|
||||
SELECT * FROM t1
|
||||
WHERE f3 = (
|
||||
@ -1232,8 +1234,7 @@ FROM t2 JOIN t1 ON t1.f3
|
||||
WHERE ('v') IN (SELECT f4 FROM t2)
|
||||
GROUP BY f9;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 PRIMARY t2 system NULL NULL NULL NULL 1
|
||||
1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
|
||||
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
|
||||
3 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
|
||||
2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2
|
||||
SELECT COUNT(t2.f3),
|
||||
@ -1249,8 +1250,7 @@ FROM t2 JOIN t1 ON t1.f3
|
||||
WHERE ('v') IN (SELECT f4 FROM t2)
|
||||
ORDER BY f9;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 PRIMARY t2 system NULL NULL NULL NULL 1
|
||||
1 PRIMARY t1 ALL NULL NULL NULL NULL 2 Using where
|
||||
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
|
||||
3 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
|
||||
2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2
|
||||
SELECT COUNT(t2.f3),
|
||||
@ -1502,6 +1502,8 @@ RIGHT JOIN t0 AS alias2 ON alias2.f10
|
||||
WHERE ( alias2.f1 , alias2.f2 ) IN ( SELECT f2 , f1 FROM t0 GROUP BY f2 , f1 );
|
||||
f1 f2
|
||||
8 8
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DOUBLE value: 'u'
|
||||
EXPLAIN
|
||||
SELECT * FROM t2 WHERE (f1b, f2b) IN (SELECT f1a, f2a FROM t1 GROUP BY f1a, f2a);
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
@ -1534,6 +1536,8 @@ RIGHT JOIN t0 AS alias2 ON alias2.f10
|
||||
WHERE ( alias2.f1 , alias2.f2 ) IN ( SELECT f2 , f1 FROM t0 GROUP BY f2 , f1 );
|
||||
f1 f2
|
||||
8 8
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DOUBLE value: 'u'
|
||||
EXPLAIN
|
||||
SELECT * FROM t2 WHERE (f1b, f2b) IN (SELECT f1a, f2a FROM t1 GROUP BY f1a, f2a);
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
@ -1755,6 +1759,9 @@ ON SUBQUERY2_t2.col_varchar_key
|
||||
WHERE SUBQUERY2_t2.col_varchar_nokey IN
|
||||
(SELECT col_varchar_nokey FROM t1 GROUP BY col_varchar_nokey));
|
||||
col_int_key
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DOUBLE value: 'v'
|
||||
Warning 1292 Truncated incorrect DOUBLE value: 'r'
|
||||
set @@optimizer_switch='subquery_cache=off,materialization=off,in_to_exists=on,semijoin=off';
|
||||
EXPLAIN
|
||||
SELECT col_int_key
|
||||
@ -1777,6 +1784,9 @@ ON SUBQUERY2_t2.col_varchar_key
|
||||
WHERE SUBQUERY2_t2.col_varchar_nokey IN
|
||||
(SELECT col_varchar_nokey FROM t1 GROUP BY col_varchar_nokey));
|
||||
col_int_key
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DOUBLE value: 'v'
|
||||
Warning 1292 Truncated incorrect DOUBLE value: 'r'
|
||||
drop table t1, t2;
|
||||
set @@optimizer_switch = @old_optimizer_switch;
|
||||
#
|
||||
@ -1884,9 +1894,7 @@ EXPLAIN SELECT t1.f4
|
||||
FROM t1 JOIN ( t2 JOIN t3 ON t3.f3 = t2.f4 ) ON t3.f3 = t2.f3
|
||||
WHERE t1.f4 IN ( SELECT f4 FROM t2 ) ;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 PRIMARY t1 system NULL NULL NULL NULL 1
|
||||
1 PRIMARY t3 system NULL NULL NULL NULL 1
|
||||
1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where
|
||||
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
|
||||
2 SUBQUERY t2 ALL NULL NULL NULL NULL 2
|
||||
SELECT t1.f4
|
||||
FROM t1 JOIN ( t2 JOIN t3 ON t3.f3 = t2.f4 ) ON t3.f3 = t2.f3
|
||||
@ -1897,9 +1905,7 @@ EXPLAIN SELECT t1.f4
|
||||
FROM t1 JOIN ( t2 JOIN t3 ON t3.f3 = t2.f4 ) ON t3.f3 = t2.f3
|
||||
WHERE t1.f4 IN ( SELECT f4 FROM t2 ) ;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 PRIMARY t1 system NULL NULL NULL NULL 1
|
||||
1 PRIMARY t3 system NULL NULL NULL NULL 1
|
||||
1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where
|
||||
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
|
||||
2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
|
||||
SELECT t1.f4
|
||||
FROM t1 JOIN ( t2 JOIN t3 ON t3.f3 = t2.f4 ) ON t3.f3 = t2.f3
|
||||
|
@ -1235,8 +1235,7 @@ GROUP BY t3i
|
||||
)
|
||||
);
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 PRIMARY t1 system NULL NULL NULL NULL 1
|
||||
1 PRIMARY t4 ALL NULL NULL NULL NULL 2 Using where
|
||||
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
|
||||
2 SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using where
|
||||
3 SUBQUERY t3 ALL NULL NULL NULL NULL 2 Using temporary
|
||||
DROP TABLE t1,t2,t3,t4;
|
||||
@ -1369,8 +1368,7 @@ INSERT INTO t2 VALUES (10,0),(11,0);
|
||||
explain SELECT * FROM t1 JOIN t2 USING (f1)
|
||||
WHERE t1.f1 IN (SELECT t1.pk FROM t1 ORDER BY t1.f1);
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 PRIMARY t1 system NULL NULL NULL NULL 1
|
||||
1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where
|
||||
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
|
||||
2 SUBQUERY t1 system NULL NULL NULL NULL 1
|
||||
SELECT * FROM t1 JOIN t2 USING (f1)
|
||||
WHERE t1.f1 IN (SELECT t1.pk FROM t1 ORDER BY t1.f1);
|
||||
|
@ -66,7 +66,7 @@ a b pk1 pk2 pk3
|
||||
set @save_max_heap_table_size= @@max_heap_table_size;
|
||||
set max_heap_table_size=16384;
|
||||
set @save_join_buffer_size = @@join_buffer_size;
|
||||
set join_buffer_size= 8000;
|
||||
set join_buffer_size= 8192;
|
||||
drop table t3;
|
||||
create table t3 (
|
||||
a int,
|
||||
@ -83,8 +83,6 @@ id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 PRIMARY <subquery2> ALL distinct_key NULL NULL NULL 10
|
||||
1 PRIMARY t3 ref b b 5 test.t0.a 1
|
||||
2 SUBQUERY t0 ALL NULL NULL NULL NULL 10 Using where
|
||||
set @save_ecp= @@engine_condition_pushdown;
|
||||
set engine_condition_pushdown=0;
|
||||
select * from t3 where b in (select A.a+B.a from t0 A, t0 B where B.a<5);
|
||||
a b pk1 pk2
|
||||
0 0 0 0
|
||||
@ -101,7 +99,6 @@ a b pk1 pk2
|
||||
11 11 11 11
|
||||
12 12 12 12
|
||||
13 13 13 13
|
||||
set engine_condition_pushdown=@save_ecp;
|
||||
set join_buffer_size= @save_join_buffer_size;
|
||||
set max_heap_table_size= @save_max_heap_table_size;
|
||||
explain select * from t1 where a in (select b from t2);
|
||||
@ -121,7 +118,7 @@ a b
|
||||
2 2
|
||||
drop table t1, t2, t3;
|
||||
set @save_join_buffer_size = @@join_buffer_size;
|
||||
set join_buffer_size= 8000;
|
||||
set join_buffer_size= 8192;
|
||||
create table t1 (a int, filler1 binary(200), filler2 binary(200));
|
||||
insert into t1 select a, 'filler123456', 'filler123456' from t0;
|
||||
insert into t1 select a+10, 'filler123456', 'filler123456' from t0;
|
||||
|
@ -857,7 +857,7 @@ from t1_1024
|
||||
where a1 in (select substring(b1,1,1024) from t2_1024 where b1 > '0');
|
||||
id select_type table type possible_keys key key_len ref rows filtered Extra
|
||||
1 PRIMARY t1_1024 ALL NULL NULL NULL NULL 3 100.00
|
||||
1 PRIMARY <subquery2> eq_ref NULL distinct_key 15 func,func 1 100.00
|
||||
1 PRIMARY <subquery2> eq_ref NULL distinct_key 13 func,func 1 100.00
|
||||
2 SUBQUERY t2_1024 ALL NULL NULL NULL NULL 3 100.00 Using where
|
||||
Warnings:
|
||||
Note 1003 select left(`test`.`t1_1024`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1024`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1024` semi join (`test`.`t2_1024`) where ((`test`.`t2_1024`.`b1` > '0') and (`test`.`t1_1024`.`a1` = substr(`test`.`t2_1024`.`b1`,1,1024)))
|
||||
@ -951,7 +951,7 @@ from t1_1025
|
||||
where a1 in (select substring(b1,1,1025) from t2_1025 where b1 > '0');
|
||||
id select_type table type possible_keys key key_len ref rows filtered Extra
|
||||
1 PRIMARY t1_1025 ALL NULL NULL NULL NULL 3 100.00
|
||||
1 PRIMARY <subquery2> eq_ref NULL distinct_key 15 func,func 1 100.00
|
||||
1 PRIMARY <subquery2> eq_ref NULL distinct_key 13 func,func 1 100.00
|
||||
2 SUBQUERY t2_1025 ALL NULL NULL NULL NULL 3 100.00 Using where
|
||||
Warnings:
|
||||
Note 1003 select left(`test`.`t1_1025`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1025`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1025` semi join (`test`.`t2_1025`) where ((`test`.`t2_1025`.`b1` > '0') and (`test`.`t1_1025`.`a1` = substr(`test`.`t2_1025`.`b1`,1,1025)))
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -12,6 +12,7 @@ AS "user_comment",
|
||||
FROM information_schema.tables
|
||||
WHERE table_schema = 'information_schema'
|
||||
AND table_name <> 'profiling' AND table_name not like 'innodb_%'
|
||||
AND table_name not like 'pbxt_%' AND table_name not like 'xtradb_%'
|
||||
ORDER BY table_schema,table_name;
|
||||
TABLE_CATALOG def
|
||||
TABLE_SCHEMA information_schema
|
||||
@ -795,29 +796,6 @@ CREATE_OPTIONS #CO#
|
||||
TABLE_COMMENT #TC#
|
||||
user_comment
|
||||
Separator -----------------------------------------------------
|
||||
TABLE_CATALOG def
|
||||
TABLE_SCHEMA information_schema
|
||||
TABLE_NAME XTRADB_ADMIN_COMMAND
|
||||
TABLE_TYPE SYSTEM VIEW
|
||||
ENGINE MEMORY
|
||||
VERSION 10
|
||||
ROW_FORMAT Fixed
|
||||
TABLE_ROWS #TBLR#
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
MAX_DATA_LENGTH #MDL#
|
||||
INDEX_LENGTH #IL#
|
||||
DATA_FREE #DF#
|
||||
AUTO_INCREMENT NULL
|
||||
CREATE_TIME #CRT#
|
||||
UPDATE_TIME #UT#
|
||||
CHECK_TIME #CT#
|
||||
TABLE_COLLATION utf8_general_ci
|
||||
CHECKSUM NULL
|
||||
CREATE_OPTIONS #CO#
|
||||
TABLE_COMMENT #TC#
|
||||
user_comment
|
||||
Separator -----------------------------------------------------
|
||||
DROP USER testuser1@localhost;
|
||||
CREATE USER testuser1@localhost;
|
||||
GRANT SELECT ON test1.* TO testuser1@localhost;
|
||||
@ -834,6 +812,7 @@ AS "user_comment",
|
||||
FROM information_schema.tables
|
||||
WHERE table_schema = 'information_schema'
|
||||
AND table_name <> 'profiling' AND table_name not like 'innodb_%'
|
||||
AND table_name not like 'pbxt_%' AND table_name not like 'xtradb_%'
|
||||
ORDER BY table_schema,table_name;
|
||||
TABLE_CATALOG def
|
||||
TABLE_SCHEMA information_schema
|
||||
@ -1617,29 +1596,6 @@ CREATE_OPTIONS #CO#
|
||||
TABLE_COMMENT #TC#
|
||||
user_comment
|
||||
Separator -----------------------------------------------------
|
||||
TABLE_CATALOG def
|
||||
TABLE_SCHEMA information_schema
|
||||
TABLE_NAME XTRADB_ADMIN_COMMAND
|
||||
TABLE_TYPE SYSTEM VIEW
|
||||
ENGINE MEMORY
|
||||
VERSION 10
|
||||
ROW_FORMAT Fixed
|
||||
TABLE_ROWS #TBLR#
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
MAX_DATA_LENGTH #MDL#
|
||||
INDEX_LENGTH #IL#
|
||||
DATA_FREE #DF#
|
||||
AUTO_INCREMENT NULL
|
||||
CREATE_TIME #CRT#
|
||||
UPDATE_TIME #UT#
|
||||
CHECK_TIME #CT#
|
||||
TABLE_COLLATION utf8_general_ci
|
||||
CHECKSUM NULL
|
||||
CREATE_OPTIONS #CO#
|
||||
TABLE_COMMENT #TC#
|
||||
user_comment
|
||||
Separator -----------------------------------------------------
|
||||
# Switch to connection default and close connection testuser1
|
||||
DROP USER testuser1@localhost;
|
||||
DROP DATABASE test1;
|
||||
|
@ -15,5 +15,6 @@
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_innodb.inc
|
||||
let $my_where = WHERE table_schema = 'information_schema'
|
||||
AND table_name <> 'profiling' AND table_name not like 'innodb_%';
|
||||
AND table_name <> 'profiling' AND table_name not like 'innodb_%'
|
||||
AND table_name not like 'pbxt_%' AND table_name not like 'xtradb_%';
|
||||
--source suite/funcs_1/datadict/tables1.inc
|
||||
|
@ -1506,7 +1506,7 @@ select locate('lo','hello',-18446744073709551615);
|
||||
locate('lo','hello',-18446744073709551615)
|
||||
0
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
select locate('lo','hello',18446744073709551615);
|
||||
locate('lo','hello',18446744073709551615)
|
||||
0
|
||||
@ -1514,22 +1514,22 @@ select locate('lo','hello',-18446744073709551616);
|
||||
locate('lo','hello',-18446744073709551616)
|
||||
0
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
select locate('lo','hello',18446744073709551616);
|
||||
locate('lo','hello',18446744073709551616)
|
||||
0
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
select locate('lo','hello',-18446744073709551617);
|
||||
locate('lo','hello',-18446744073709551617)
|
||||
0
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
select locate('lo','hello',18446744073709551617);
|
||||
locate('lo','hello',18446744073709551617)
|
||||
0
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
select left('hello', 10);
|
||||
left('hello', 10)
|
||||
hello
|
||||
@ -1561,8 +1561,8 @@ select left('hello', -18446744073709551615);
|
||||
left('hello', -18446744073709551615)
|
||||
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
select left('hello', 18446744073709551615);
|
||||
left('hello', 18446744073709551615)
|
||||
hello
|
||||
@ -1570,26 +1570,26 @@ select left('hello', -18446744073709551616);
|
||||
left('hello', -18446744073709551616)
|
||||
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
select left('hello', 18446744073709551616);
|
||||
left('hello', 18446744073709551616)
|
||||
hello
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
select left('hello', -18446744073709551617);
|
||||
left('hello', -18446744073709551617)
|
||||
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
select left('hello', 18446744073709551617);
|
||||
left('hello', 18446744073709551617)
|
||||
hello
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
select right('hello', 10);
|
||||
right('hello', 10)
|
||||
hello
|
||||
@ -1621,8 +1621,8 @@ select right('hello', -18446744073709551615);
|
||||
right('hello', -18446744073709551615)
|
||||
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
select right('hello', 18446744073709551615);
|
||||
right('hello', 18446744073709551615)
|
||||
hello
|
||||
@ -1630,26 +1630,26 @@ select right('hello', -18446744073709551616);
|
||||
right('hello', -18446744073709551616)
|
||||
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
select right('hello', 18446744073709551616);
|
||||
right('hello', 18446744073709551616)
|
||||
hello
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
select right('hello', -18446744073709551617);
|
||||
right('hello', -18446744073709551617)
|
||||
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
select right('hello', 18446744073709551617);
|
||||
right('hello', 18446744073709551617)
|
||||
hello
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
select substring('hello', 2, -1);
|
||||
substring('hello', 2, -1)
|
||||
|
||||
@ -1681,8 +1681,8 @@ select substring('hello', -18446744073709551615, 1);
|
||||
substring('hello', -18446744073709551615, 1)
|
||||
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
select substring('hello', 18446744073709551615, 1);
|
||||
substring('hello', 18446744073709551615, 1)
|
||||
|
||||
@ -1690,26 +1690,26 @@ select substring('hello', -18446744073709551616, 1);
|
||||
substring('hello', -18446744073709551616, 1)
|
||||
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
select substring('hello', 18446744073709551616, 1);
|
||||
substring('hello', 18446744073709551616, 1)
|
||||
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
select substring('hello', -18446744073709551617, 1);
|
||||
substring('hello', -18446744073709551617, 1)
|
||||
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
select substring('hello', 18446744073709551617, 1);
|
||||
substring('hello', 18446744073709551617, 1)
|
||||
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
select substring('hello', 1, -1);
|
||||
substring('hello', 1, -1)
|
||||
|
||||
@ -1735,8 +1735,8 @@ select substring('hello', 1, -18446744073709551615);
|
||||
substring('hello', 1, -18446744073709551615)
|
||||
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
select substring('hello', 1, 18446744073709551615);
|
||||
substring('hello', 1, 18446744073709551615)
|
||||
hello
|
||||
@ -1744,26 +1744,26 @@ select substring('hello', 1, -18446744073709551616);
|
||||
substring('hello', 1, -18446744073709551616)
|
||||
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
select substring('hello', 1, 18446744073709551616);
|
||||
substring('hello', 1, 18446744073709551616)
|
||||
hello
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
select substring('hello', 1, -18446744073709551617);
|
||||
substring('hello', 1, -18446744073709551617)
|
||||
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
select substring('hello', 1, 18446744073709551617);
|
||||
substring('hello', 1, 18446744073709551617)
|
||||
hello
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
select substring('hello', -1, -1);
|
||||
substring('hello', -1, -1)
|
||||
|
||||
@ -1789,10 +1789,10 @@ select substring('hello', -18446744073709551615, -18446744073709551615);
|
||||
substring('hello', -18446744073709551615, -18446744073709551615)
|
||||
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
select substring('hello', 18446744073709551615, 18446744073709551615);
|
||||
substring('hello', 18446744073709551615, 18446744073709551615)
|
||||
|
||||
@ -1800,34 +1800,34 @@ select substring('hello', -18446744073709551616, -18446744073709551616);
|
||||
substring('hello', -18446744073709551616, -18446744073709551616)
|
||||
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
select substring('hello', 18446744073709551616, 18446744073709551616);
|
||||
substring('hello', 18446744073709551616, 18446744073709551616)
|
||||
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
select substring('hello', -18446744073709551617, -18446744073709551617);
|
||||
substring('hello', -18446744073709551617, -18446744073709551617)
|
||||
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
select substring('hello', 18446744073709551617, 18446744073709551617);
|
||||
substring('hello', 18446744073709551617, 18446744073709551617)
|
||||
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
select insert('hello', -1, 1, 'hi');
|
||||
insert('hello', -1, 1, 'hi')
|
||||
hello
|
||||
@ -1853,7 +1853,7 @@ select insert('hello', -18446744073709551615, 1, 'hi');
|
||||
insert('hello', -18446744073709551615, 1, 'hi')
|
||||
hello
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
select insert('hello', 18446744073709551615, 1, 'hi');
|
||||
insert('hello', 18446744073709551615, 1, 'hi')
|
||||
hello
|
||||
@ -1861,22 +1861,22 @@ select insert('hello', -18446744073709551616, 1, 'hi');
|
||||
insert('hello', -18446744073709551616, 1, 'hi')
|
||||
hello
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
select insert('hello', 18446744073709551616, 1, 'hi');
|
||||
insert('hello', 18446744073709551616, 1, 'hi')
|
||||
hello
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
select insert('hello', -18446744073709551617, 1, 'hi');
|
||||
insert('hello', -18446744073709551617, 1, 'hi')
|
||||
hello
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
select insert('hello', 18446744073709551617, 1, 'hi');
|
||||
insert('hello', 18446744073709551617, 1, 'hi')
|
||||
hello
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
select insert('hello', 1, -1, 'hi');
|
||||
insert('hello', 1, -1, 'hi')
|
||||
hi
|
||||
@ -1902,7 +1902,7 @@ select insert('hello', 1, -18446744073709551615, 'hi');
|
||||
insert('hello', 1, -18446744073709551615, 'hi')
|
||||
hi
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
select insert('hello', 1, 18446744073709551615, 'hi');
|
||||
insert('hello', 1, 18446744073709551615, 'hi')
|
||||
hi
|
||||
@ -1910,22 +1910,22 @@ select insert('hello', 1, -18446744073709551616, 'hi');
|
||||
insert('hello', 1, -18446744073709551616, 'hi')
|
||||
hi
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
select insert('hello', 1, 18446744073709551616, 'hi');
|
||||
insert('hello', 1, 18446744073709551616, 'hi')
|
||||
hi
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
select insert('hello', 1, -18446744073709551617, 'hi');
|
||||
insert('hello', 1, -18446744073709551617, 'hi')
|
||||
hi
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
select insert('hello', 1, 18446744073709551617, 'hi');
|
||||
insert('hello', 1, 18446744073709551617, 'hi')
|
||||
hi
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
select insert('hello', -1, -1, 'hi');
|
||||
insert('hello', -1, -1, 'hi')
|
||||
hello
|
||||
@ -1951,8 +1951,8 @@ select insert('hello', -18446744073709551615, -18446744073709551615, 'hi');
|
||||
insert('hello', -18446744073709551615, -18446744073709551615, 'hi')
|
||||
hello
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
select insert('hello', 18446744073709551615, 18446744073709551615, 'hi');
|
||||
insert('hello', 18446744073709551615, 18446744073709551615, 'hi')
|
||||
hello
|
||||
@ -1960,26 +1960,26 @@ select insert('hello', -18446744073709551616, -18446744073709551616, 'hi');
|
||||
insert('hello', -18446744073709551616, -18446744073709551616, 'hi')
|
||||
hello
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
select insert('hello', 18446744073709551616, 18446744073709551616, 'hi');
|
||||
insert('hello', 18446744073709551616, 18446744073709551616, 'hi')
|
||||
hello
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
select insert('hello', -18446744073709551617, -18446744073709551617, 'hi');
|
||||
insert('hello', -18446744073709551617, -18446744073709551617, 'hi')
|
||||
hello
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
select insert('hello', 18446744073709551617, 18446744073709551617, 'hi');
|
||||
insert('hello', 18446744073709551617, 18446744073709551617, 'hi')
|
||||
hello
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
select repeat('hello', -1);
|
||||
repeat('hello', -1)
|
||||
|
||||
@ -2011,8 +2011,8 @@ select repeat('hello', -18446744073709551615);
|
||||
repeat('hello', -18446744073709551615)
|
||||
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
select repeat('hello', 18446744073709551615);
|
||||
repeat('hello', 18446744073709551615)
|
||||
NULL
|
||||
@ -2022,27 +2022,27 @@ select repeat('hello', -18446744073709551616);
|
||||
repeat('hello', -18446744073709551616)
|
||||
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
select repeat('hello', 18446744073709551616);
|
||||
repeat('hello', 18446744073709551616)
|
||||
NULL
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated
|
||||
select repeat('hello', -18446744073709551617);
|
||||
repeat('hello', -18446744073709551617)
|
||||
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
select repeat('hello', 18446744073709551617);
|
||||
repeat('hello', 18446744073709551617)
|
||||
NULL
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated
|
||||
select space(-1);
|
||||
space(-1)
|
||||
@ -2075,8 +2075,8 @@ select space(-18446744073709551615);
|
||||
space(-18446744073709551615)
|
||||
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
select space(18446744073709551615);
|
||||
space(18446744073709551615)
|
||||
NULL
|
||||
@ -2086,27 +2086,27 @@ select space(-18446744073709551616);
|
||||
space(-18446744073709551616)
|
||||
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
select space(18446744073709551616);
|
||||
space(18446744073709551616)
|
||||
NULL
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated
|
||||
select space(-18446744073709551617);
|
||||
space(-18446744073709551617)
|
||||
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
select space(18446744073709551617);
|
||||
space(18446744073709551617)
|
||||
NULL
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated
|
||||
select rpad('hello', -1, '1');
|
||||
rpad('hello', -1, '1')
|
||||
@ -2139,8 +2139,8 @@ select rpad('hello', -18446744073709551615, '1');
|
||||
rpad('hello', -18446744073709551615, '1')
|
||||
NULL
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
select rpad('hello', 18446744073709551615, '1');
|
||||
rpad('hello', 18446744073709551615, '1')
|
||||
NULL
|
||||
@ -2150,27 +2150,27 @@ select rpad('hello', -18446744073709551616, '1');
|
||||
rpad('hello', -18446744073709551616, '1')
|
||||
NULL
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
select rpad('hello', 18446744073709551616, '1');
|
||||
rpad('hello', 18446744073709551616, '1')
|
||||
NULL
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Warning 1301 Result of rpad() was larger than max_allowed_packet (1048576) - truncated
|
||||
select rpad('hello', -18446744073709551617, '1');
|
||||
rpad('hello', -18446744073709551617, '1')
|
||||
NULL
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
select rpad('hello', 18446744073709551617, '1');
|
||||
rpad('hello', 18446744073709551617, '1')
|
||||
NULL
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Warning 1301 Result of rpad() was larger than max_allowed_packet (1048576) - truncated
|
||||
select lpad('hello', -1, '1');
|
||||
lpad('hello', -1, '1')
|
||||
@ -2203,8 +2203,8 @@ select lpad('hello', -18446744073709551615, '1');
|
||||
lpad('hello', -18446744073709551615, '1')
|
||||
NULL
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated.
|
||||
select lpad('hello', 18446744073709551615, '1');
|
||||
lpad('hello', 18446744073709551615, '1')
|
||||
NULL
|
||||
@ -2214,28 +2214,27 @@ select lpad('hello', -18446744073709551616, '1');
|
||||
lpad('hello', -18446744073709551616, '1')
|
||||
NULL
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated.
|
||||
select lpad('hello', 18446744073709551616, '1');
|
||||
lpad('hello', 18446744073709551616, '1')
|
||||
NULL
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated.
|
||||
Warning 1301 Result of lpad() was larger than max_allowed_packet (1048576) - truncated
|
||||
select lpad('hello', -18446744073709551617, '1');
|
||||
lpad('hello', -18446744073709551617, '1')
|
||||
NULL
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated.
|
||||
select lpad('hello', 18446744073709551617, '1');
|
||||
lpad('hello', 18446744073709551617, '1')
|
||||
NULL
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Error 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
>>>>>>> MERGE-SOURCE
|
||||
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated.
|
||||
Warning 1301 Result of lpad() was larger than max_allowed_packet (1048576) - truncated
|
||||
SET @orig_sql_mode = @@SQL_MODE;
|
||||
SET SQL_MODE=traditional;
|
||||
|
@ -1171,8 +1171,8 @@ id select_type table type possible_keys key key_len ref rows Extra
|
||||
EXPLAIN SELECT 1 FROM t1 WHERE a IN
|
||||
(SELECT a FROM t1 USE INDEX (i2) IGNORE INDEX (i2));
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 PRIMARY t1 index PRIMARY,i2 PRIMARY 4 NULL 144 Using index
|
||||
1 PRIMARY t1 ALL NULL NULL NULL NULL 144 Using where; FirstMatch(t1)
|
||||
1 PRIMARY t1 index NULL PRIMARY 4 NULL 144 Using where; Using index
|
||||
2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 144 Using where
|
||||
CREATE TABLE t2 (a INT, b INT, KEY(a));
|
||||
INSERT INTO t2 VALUES (1, 1), (2, 2), (3,3), (4,4);
|
||||
EXPLAIN SELECT a, SUM(b) FROM t2 GROUP BY a LIMIT 2;
|
||||
@ -1184,11 +1184,6 @@ id select_type table type possible_keys key key_len ref rows Extra
|
||||
EXPLAIN SELECT 1 FROM t2 WHERE a IN
|
||||
(SELECT a FROM t1 USE INDEX (i2) IGNORE INDEX (i2));
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 PRIMARY t2 index a a 5 NULL 4 Using index
|
||||
1 PRIMARY t1 ALL NULL NULL NULL NULL 144 Using where; FirstMatch(t2)
|
||||
SHOW VARIABLES LIKE 'old';
|
||||
Variable_name Value
|
||||
old OFF
|
||||
SET @@old = off;
|
||||
ERROR HY000: Variable 'old' is a read only variable
|
||||
1 PRIMARY t2 index NULL a 5 NULL 4 Using where; Using index
|
||||
2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 144 Using where
|
||||
DROP TABLE t1, t2;
|
||||
|
@ -699,10 +699,9 @@ select * from v1a join v1b on t1.b = t2.b;
|
||||
ERROR 42S22: Unknown column 't1.b' in 'on clause'
|
||||
select * from information_schema.statistics join information_schema.columns
|
||||
using(table_name,column_name) where table_name='user';
|
||||
TABLE_NAME COLUMN_NAME TABLE_CATALOG TABLE_SCHEMA NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT TABLE_CATALOG TABLE_SCHEMA ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT
|
||||
user Host NULL mysql 0 mysql PRIMARY 1 A NULL NULL NULL BTREE NULL mysql 1 NO char 60 180 NULL NULL NULL utf8 utf8_bin char(60) PRI #
|
||||
user User NULL mysql 0 mysql PRIMARY 2 A 3 NULL NULL BTREE NULL mysql 2 NO char 16 48 NULL NULL NULL utf8 utf8_bin char(16) PRI #
|
||||
>>>>>>> MERGE-SOURCE
|
||||
TABLE_NAME COLUMN_NAME TABLE_CATALOG TABLE_SCHEMA NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT INDEX_COMMENT TABLE_CATALOG TABLE_SCHEMA ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT
|
||||
user Host def mysql 0 mysql PRIMARY 1 A NULL NULL NULL BTREE def mysql 1 NO char 60 180 NULL NULL NULL utf8 utf8_bin char(60) PRI # select,insert,update,references
|
||||
user User def mysql 0 mysql PRIMARY 2 A 4 NULL NULL BTREE def mysql 2 NO char 16 48 NULL NULL NULL utf8 utf8_bin char(16) PRI # select,insert,update,references
|
||||
drop table t1;
|
||||
drop table t2;
|
||||
drop table t3;
|
||||
|
@ -443,7 +443,7 @@ prepare stmt1 from ' KILL 0 ';
|
||||
prepare stmt1 from ' explain select a from t1 order by b ';
|
||||
execute stmt1;
|
||||
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
|
||||
def id 8 3 1 N 32929 0 63
|
||||
def id 8 3 1 Y 32928 0 63
|
||||
def select_type 253 19 6 N 1 31 8
|
||||
def table 253 64 2 Y 0 31 8
|
||||
def type 253 10 3 Y 0 31 8
|
||||
@ -459,7 +459,7 @@ SET @arg00=1 ;
|
||||
prepare stmt1 from ' explain select a from t1 where a > ? order by b ';
|
||||
execute stmt1 using @arg00;
|
||||
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
|
||||
def id 8 3 1 N 32929 0 63
|
||||
def id 8 3 1 Y 32928 0 63
|
||||
def select_type 253 19 6 N 1 31 8
|
||||
def table 253 64 2 Y 0 31 8
|
||||
def type 253 10 5 Y 0 31 8
|
||||
|
@ -101,7 +101,7 @@ Com_show_status 3
|
||||
show status like 'hand%write%';
|
||||
Variable_name Value
|
||||
Handler_tmp_write 0
|
||||
Handler_write 5
|
||||
Handler_write 0
|
||||
show status like '%tmp%';
|
||||
Variable_name Value
|
||||
Created_tmp_disk_tables 0
|
||||
@ -113,7 +113,7 @@ Rows_tmp_read 5
|
||||
show status like 'hand%write%';
|
||||
Variable_name Value
|
||||
Handler_tmp_write 0
|
||||
Handler_write 7
|
||||
Handler_write 0
|
||||
show status like '%tmp%';
|
||||
Variable_name Value
|
||||
Created_tmp_disk_tables 0
|
||||
|
@ -50,11 +50,7 @@ id select_type table type possible_keys key key_len ref rows filtered Extra
|
||||
Warnings:
|
||||
Note 1276 Field or reference 'b.a' of SELECT #3 was resolved in SELECT #1
|
||||
Note 1276 Field or reference 'b.a' of SELECT #3 was resolved in SELECT #1
|
||||
<<<<<<< TREE
|
||||
Note 1003 select 1 AS `1` from dual having (<expr_cache><'1'>((select '1')) = 1)
|
||||
=======
|
||||
Note 1003 select 1 AS `1` from (select 1 AS `a`) `b` having ((select 1) = 1)
|
||||
>>>>>>> MERGE-SOURCE
|
||||
Note 1003 select 1 AS `1` from dual having ((select 1) = 1)
|
||||
SELECT 1 FROM (SELECT 1 as a) as b HAVING (SELECT a)=1;
|
||||
1
|
||||
1
|
||||
@ -207,11 +203,7 @@ id select_type table type possible_keys key key_len ref rows filtered Extra
|
||||
3 DERIVED t2 ALL NULL NULL NULL NULL 2 100.00 Using where
|
||||
2 SUBQUERY t3 ALL NULL NULL NULL NULL 3 100.00 Using where; Using filesort
|
||||
Warnings:
|
||||
<<<<<<< TREE
|
||||
Note 1003 select (select `test`.`t3`.`a` from `test`.`t3` where (`test`.`t3`.`a` < 8) order by 1 desc limit 1) AS `(select t3.a from t3 where a<8 order by 1 desc limit 1)`,'2' AS `a` from dual
|
||||
=======
|
||||
Note 1003 select (select `test`.`t3`.`a` from `test`.`t3` where (`test`.`t3`.`a` < 8) order by 1 desc limit 1) AS `(select t3.a from t3 where a<8 order by 1 desc limit 1)`,`tt`.`a` AS `a` from (select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t2` where (`test`.`t2`.`a` > 1)) `tt`
|
||||
>>>>>>> MERGE-SOURCE
|
||||
select * from t1 where t1.a=(select t2.a from t2 where t2.b=(select max(a) from t3) order by 1 desc limit 1);
|
||||
a
|
||||
2
|
||||
@ -1189,7 +1181,7 @@ id select_type table type possible_keys key key_len ref rows filtered Extra
|
||||
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL NULL No tables used
|
||||
2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
|
||||
Warnings:
|
||||
Note 1003 select <in_optimizer>(0,<exists>(select 1 from `test`.`t1` `a` where (0 = 1))) AS `0 IN (SELECT 1 FROM t1 a)`
|
||||
Note 1003 select <in_optimizer>(0,<exists>(select 1 from dual where (0 = 1))) AS `0 IN (SELECT 1 FROM t1 a)`
|
||||
INSERT INTO t1 (pseudo) VALUES ('test1');
|
||||
SELECT 0 IN (SELECT 1 FROM t1 a);
|
||||
0 IN (SELECT 1 FROM t1 a)
|
||||
@ -4302,7 +4294,7 @@ NULL UNION RESULT <union2,3> ALL NULL NULL NULL NULL NULL NULL
|
||||
Warnings:
|
||||
Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
|
||||
Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1
|
||||
Note 1003 select 2 AS `2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a`>(exists((select 1 from `test`.`t2` where (`test`.`t1`.`a` = `test`.`t2`.`a`)) union (select 1 from `test`.`t2` where (`test`.`t1`.`a` = `test`.`t2`.`a`))))
|
||||
Note 1003 select 2 AS `2` from `test`.`t1` where exists((select 1 from `test`.`t2` where (`test`.`t1`.`a` = `test`.`t2`.`a`)) union (select 1 from `test`.`t2` where (`test`.`t1`.`a` = `test`.`t2`.`a`)))
|
||||
DROP TABLE t1,t2;
|
||||
create table t1(f11 int, f12 int);
|
||||
create table t2(f21 int unsigned not null, f22 int, f23 varchar(10));
|
||||
|
@ -838,12 +838,12 @@ select 9999999999999999999999999999999999999999999999999999999999999999999999999
|
||||
x
|
||||
99999999999999999999999999999999999999999999999999999999999999999
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '' to DECIMAL. Value truncated.
|
||||
Warning 1916 Got overflow when converting '' to DECIMAL. Value truncated.
|
||||
select 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 + 1 as x;
|
||||
x
|
||||
100000000000000000000000000000000000000000000000000000000000000000
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '' to DECIMAL. Value truncated.
|
||||
Warning 1916 Got overflow when converting '' to DECIMAL. Value truncated.
|
||||
select 0.190287977636363637 + 0.040372670 * 0 - 0;
|
||||
0.190287977636363637 + 0.040372670 * 0 - 0
|
||||
0.190287977636363637
|
||||
@ -1368,16 +1368,12 @@ create table t1 (c1 decimal(64));
|
||||
insert into t1 values(
|
||||
89000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '' to DECIMAL. Value truncated.
|
||||
Warning 1916 Got overflow when converting '' to DECIMAL. Value truncated.
|
||||
Warning 1264 Out of range value for column 'c1' at row 1
|
||||
insert into t1 values(
|
||||
99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 *
|
||||
99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999);
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '' to DECIMAL. Value truncated.
|
||||
Error 1916 Got overflow when converting '' to DECIMAL. Value truncated.
|
||||
Error 1916 Got overflow when converting '' to DECIMAL. Value truncated.
|
||||
Warning 1264 Out of range value for column 'c1' at row 1
|
||||
ERROR 22003: DECIMAL value is out of range in '(99999999999999999999999999999999999999999999999999999999999999999 * 99999999999999999999999999999999999999999999999999999999999999999)'
|
||||
insert into t1 values(1e100);
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c1' at row 1
|
||||
@ -1446,4 +1442,4 @@ select cast(19999999999999999999 as unsigned);
|
||||
cast(19999999999999999999 as unsigned)
|
||||
18446744073709551615
|
||||
Warnings:
|
||||
Error 1916 Got overflow when converting '19999999999999999999' to UNSIGNED INT. Value truncated.
|
||||
Warning 1916 Got overflow when converting '19999999999999999999' to UNSIGNED INT. Value truncated.
|
||||
|
@ -777,13 +777,8 @@ EXPLAIN SELECT a, SUM(b) FROM t2 IGNORE INDEX (a) GROUP BY a LIMIT 2;
|
||||
EXPLAIN SELECT 1 FROM t2 WHERE a IN
|
||||
(SELECT a FROM t1 USE INDEX (i2) IGNORE INDEX (i2));
|
||||
|
||||
SHOW VARIABLES LIKE 'old';
|
||||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
SET @@old = off;
|
||||
|
||||
DROP TABLE t1, t2;
|
||||
|
||||
|
||||
--disable_query_log
|
||||
drop database pbxt;
|
||||
--enable_query_log
|
||||
|
@ -75,10 +75,6 @@ SET @@global.query_alloc_block_size = 1024;
|
||||
SELECT @@global.query_alloc_block_size;
|
||||
SET @@global.query_alloc_block_size = 1025;
|
||||
SELECT @@global.query_alloc_block_size;
|
||||
SET @@global.query_alloc_block_size = 4294967295;
|
||||
SELECT @@global.query_alloc_block_size;
|
||||
SET @@global.query_alloc_block_size = 4294967294;
|
||||
SELECT @@global.query_alloc_block_size;
|
||||
SET @@global.query_alloc_block_size = 65536;
|
||||
SELECT @@global.query_alloc_block_size;
|
||||
|
||||
@ -91,10 +87,6 @@ SET @@session.query_alloc_block_size = 1024;
|
||||
SELECT @@session.query_alloc_block_size;
|
||||
SET @@session.query_alloc_block_size = 1025;
|
||||
SELECT @@session.query_alloc_block_size;
|
||||
SET @@session.query_alloc_block_size = 4294967295;
|
||||
SELECT @@session.query_alloc_block_size;
|
||||
SET @@session.query_alloc_block_size = 4294967294;
|
||||
SELECT @@session.query_alloc_block_size;
|
||||
SET @@session.query_alloc_block_size = 655536;
|
||||
SELECT @@session.query_alloc_block_size;
|
||||
|
||||
@ -109,8 +101,6 @@ SET @@global.query_alloc_block_size = -1;
|
||||
SELECT @@global.query_alloc_block_size;
|
||||
SET @@global.query_alloc_block_size = 1023;
|
||||
SELECT @@global.query_alloc_block_size;
|
||||
SET @@global.query_alloc_block_size = 4294967296;
|
||||
SELECT @@global.query_alloc_block_size;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.query_alloc_block_size = 65530.34;
|
||||
SELECT @@global.query_alloc_block_size;
|
||||
|
@ -41,18 +41,6 @@ Warning 1292 Truncated incorrect query_alloc_block_size value: '1025'
|
||||
SELECT @@global.query_alloc_block_size;
|
||||
@@global.query_alloc_block_size
|
||||
1024
|
||||
SET @@global.query_alloc_block_size = 4294967295;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect query_alloc_block_size value: '4294967295'
|
||||
SELECT @@global.query_alloc_block_size;
|
||||
@@global.query_alloc_block_size
|
||||
4294966272
|
||||
SET @@global.query_alloc_block_size = 4294967294;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect query_alloc_block_size value: '4294967294'
|
||||
SELECT @@global.query_alloc_block_size;
|
||||
@@global.query_alloc_block_size
|
||||
4294966272
|
||||
SET @@global.query_alloc_block_size = 65536;
|
||||
SELECT @@global.query_alloc_block_size;
|
||||
@@global.query_alloc_block_size
|
||||
@ -68,18 +56,6 @@ Warning 1292 Truncated incorrect query_alloc_block_size value: '1025'
|
||||
SELECT @@session.query_alloc_block_size;
|
||||
@@session.query_alloc_block_size
|
||||
1024
|
||||
SET @@session.query_alloc_block_size = 4294967295;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect query_alloc_block_size value: '4294967295'
|
||||
SELECT @@session.query_alloc_block_size;
|
||||
@@session.query_alloc_block_size
|
||||
4294966272
|
||||
SET @@session.query_alloc_block_size = 4294967294;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect query_alloc_block_size value: '4294967294'
|
||||
SELECT @@session.query_alloc_block_size;
|
||||
@@session.query_alloc_block_size
|
||||
4294966272
|
||||
SET @@session.query_alloc_block_size = 655536;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect query_alloc_block_size value: '655536'
|
||||
@ -105,20 +81,16 @@ Warning 1292 Truncated incorrect query_alloc_block_size value: '1023'
|
||||
SELECT @@global.query_alloc_block_size;
|
||||
@@global.query_alloc_block_size
|
||||
1024
|
||||
SET @@global.query_alloc_block_size = 4294967296;
|
||||
SELECT @@global.query_alloc_block_size;
|
||||
@@global.query_alloc_block_size
|
||||
4294967296
|
||||
SET @@global.query_alloc_block_size = 65530.34;
|
||||
ERROR 42000: Incorrect argument type to variable 'query_alloc_block_size'
|
||||
SELECT @@global.query_alloc_block_size;
|
||||
@@global.query_alloc_block_size
|
||||
4294967296
|
||||
1024
|
||||
SET @@global.query_alloc_block_size = test;
|
||||
ERROR 42000: Incorrect argument type to variable 'query_alloc_block_size'
|
||||
SELECT @@global.query_alloc_block_size;
|
||||
@@global.query_alloc_block_size
|
||||
4294967296
|
||||
1024
|
||||
SET @@session.query_alloc_block_size = 64;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect query_alloc_block_size value: '64'
|
||||
|
@ -21,8 +21,3 @@ log_tables-big : Bug#11756699 2010-11-15 mattiasj report already exist
|
||||
mysql_embedded : Bug#12561297 2011-06-15 New test failing on all platforms
|
||||
tablespace : disabled in MariaDB (no TABLESPACE table attribute)
|
||||
derived_view : SergeyP
|
||||
subselect4 : SergeyP
|
||||
subselect_mat : SergeyP
|
||||
subselect_sj_mat : SergeyP
|
||||
subselect_sj2_mat : SergeyP
|
||||
subselect_sj_nonmerged : SergeyP
|
||||
|
@ -9672,6 +9672,7 @@ void JOIN_TAB::cleanup()
|
||||
end_read_record(&read_record);
|
||||
//psergey-merge:
|
||||
table->pos_in_table_list->jtbm_subselect->cleanup();
|
||||
table= NULL;
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
/*
|
||||
@ -9943,8 +9944,12 @@ void JOIN::cleanup(bool full)
|
||||
*/
|
||||
if (table_count > const_tables) // Test for not-const tables
|
||||
{
|
||||
free_io_cache(table[const_tables]);
|
||||
filesort_free_buffers(table[const_tables],full);
|
||||
JOIN_TAB *first_tab= first_top_level_tab(this, WITHOUT_CONST_TABLES);
|
||||
if (first_tab->table)
|
||||
{
|
||||
free_io_cache(first_tab->table);
|
||||
filesort_free_buffers(first_tab->table, full);
|
||||
}
|
||||
}
|
||||
|
||||
if (full)
|
||||
@ -9952,7 +9957,6 @@ void JOIN::cleanup(bool full)
|
||||
for (tab= first_linear_tab(this, WITH_CONST_TABLES); tab;
|
||||
tab= next_linear_tab(this, tab, WITH_BUSH_ROOTS))
|
||||
tab->cleanup();
|
||||
table= 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user