Skip to content

Commit 597f8d5

Browse files
author
MySQL Build Team
committed
Patch adjustments
1 parent 9c62fbf commit 597f8d5

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

mysql-test/r/range.result

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,6 +1216,9 @@ select 'In following EXPLAIN the access method should be ref, #rows~=500 (and no
12161216
Z
12171217
In following EXPLAIN the access method should be ref, #rows~=500 (and not 2)
12181218
explain select * from t2 where a=1000 and b<11;
1219+
id select_type table type possible_keys key key_len ref rows Extra
1220+
1 SIMPLE t2 ref a a 5 const 502 Using where
1221+
drop table t1, t2;
12191222
#
12201223
# Bug #47123: Endless 100% CPU loop with STRAIGHT_JOIN
12211224
#
@@ -1224,9 +1227,6 @@ INSERT INTO t1 VALUES (1), (NULL);
12241227
SELECT * FROM t1 WHERE a <> NULL and (a <> NULL or a <= NULL);
12251228
a
12261229
DROP TABLE t1;
1227-
id select_type table type possible_keys key key_len ref rows Extra
1228-
1 SIMPLE t2 ref a a 5 const 502 Using where
1229-
drop table t1, t2;
12301230
#
12311231
# Bug#47925: regression of range optimizer and date comparison in 5.1.39!
12321232
#

mysql-test/t/range.test

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,8 @@ alter table t2 add index (a,b);
10431043

10441044
select 'In following EXPLAIN the access method should be ref, #rows~=500 (and not 2)' Z;
10451045
explain select * from t2 where a=1000 and b<11;
1046+
drop table t1, t2;
1047+
10461048
--echo #
10471049
--echo # Bug #47123: Endless 100% CPU loop with STRAIGHT_JOIN
10481050
--echo #
@@ -1052,9 +1054,6 @@ INSERT INTO t1 VALUES (1), (NULL);
10521054
SELECT * FROM t1 WHERE a <> NULL and (a <> NULL or a <= NULL);
10531055
DROP TABLE t1;
10541056

1055-
1056-
drop table t1, t2;
1057-
10581057
--echo #
10591058
--echo # Bug#47925: regression of range optimizer and date comparison in 5.1.39!
10601059
--echo #

storage/innodb_plugin/handler/ha_innodb.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3704,7 +3704,10 @@ ha_innobase::store_key_val_for_row(
37043704
} else if (mysql_type == MYSQL_TYPE_TINY_BLOB
37053705
|| mysql_type == MYSQL_TYPE_MEDIUM_BLOB
37063706
|| mysql_type == MYSQL_TYPE_BLOB
3707-
|| mysql_type == MYSQL_TYPE_LONG_BLOB) {
3707+
|| mysql_type == MYSQL_TYPE_LONG_BLOB
3708+
/* MYSQL_TYPE_GEOMETRY data is treated
3709+
as BLOB data in innodb. */
3710+
|| mysql_type == MYSQL_TYPE_GEOMETRY) {
37083711

37093712
CHARSET_INFO* cs;
37103713
ulint key_len;

0 commit comments

Comments
 (0)