Skip to content

Commit c676f58

Browse files
committed
Merge 10.1 into 10.2
2 parents ac49345 + 762419a commit c676f58

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

mysql-test/r/ps_error.result

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ PREPARE stmt FROM "CREATE TABLE tmp AS SELECT * FROM t1 WHERE 'foo' && 0";
77
Warnings:
88
Warning 1292 Truncated incorrect DOUBLE value: 'foo'
99
EXECUTE stmt;
10-
ERROR 22007: Truncated incorrect INTEGER value: 'foo'
10+
ERROR 22007: Truncated incorrect DOUBLE value: 'foo'
1111
SELECT a FROM t1 GROUP BY NULL WITH ROLLUP;
1212
a
1313
DROP TABLE t1;
@@ -18,7 +18,7 @@ PREPARE stmt FROM "CREATE TABLE tmp AS SELECT * FROM t1 WHERE 'foo' && 0";
1818
Warnings:
1919
Warning 1292 Truncated incorrect DOUBLE value: 'foo'
2020
EXECUTE stmt;
21-
ERROR 22007: Truncated incorrect INTEGER value: 'foo'
21+
ERROR 22007: Truncated incorrect DOUBLE value: 'foo'
2222
SET @a = REPLACE( @@global.optimizer_switch, '=on', '=off' ) ;
2323
DROP TABLE t1;
2424
SET sql_mode=DEFAULT;
@@ -30,7 +30,7 @@ PREPARE stmt FROM "CREATE TABLE ps AS SELECT 1 FROM DUAL WHERE 'foo' && 0";
3030
Warnings:
3131
Warning 1292 Truncated incorrect DOUBLE value: 'foo'
3232
EXECUTE stmt;
33-
ERROR 22007: Truncated incorrect INTEGER value: 'foo'
33+
ERROR 22007: Truncated incorrect DOUBLE value: 'foo'
3434
SELECT 'All done';
3535
All done
3636
All done
@@ -40,7 +40,7 @@ PREPARE stmt FROM "CREATE TABLE ps AS SELECT 1 FROM DUAL WHERE 'foo' && 0";
4040
Warnings:
4141
Warning 1292 Truncated incorrect DOUBLE value: 'foo'
4242
EXECUTE stmt;
43-
ERROR 22007: Truncated incorrect INTEGER value: 'foo'
43+
ERROR 22007: Truncated incorrect DOUBLE value: 'foo'
4444
DEALLOCATE PREPARE stmt;
4545
SELECT 'All done';
4646
All done
@@ -52,7 +52,7 @@ PREPARE stmt FROM "CREATE TABLE tmp AS SELECT * FROM t1 WHERE 'foo' && 0";
5252
Warnings:
5353
Warning 1292 Truncated incorrect DOUBLE value: 'foo'
5454
EXECUTE stmt;
55-
ERROR 22007: Truncated incorrect INTEGER value: 'foo'
55+
ERROR 22007: Truncated incorrect DOUBLE value: 'foo'
5656
SELECT a FROM t1 GROUP BY a;
5757
a
5858
SELECT * FROM t1;
@@ -65,7 +65,7 @@ PREPARE stmt FROM "CREATE TABLE tmp AS SELECT * FROM t1 WHERE 'foo' && 0";
6565
Warnings:
6666
Warning 1292 Truncated incorrect DOUBLE value: 'foo'
6767
EXECUTE stmt;
68-
ERROR 22007: Truncated incorrect INTEGER value: 'foo'
68+
ERROR 22007: Truncated incorrect DOUBLE value: 'foo'
6969
SELECT a FROM t1 GROUP BY a;
7070
a
7171
INSERT t1 SELECT * FROM ( SELECT * FROM t1 ) sq;

sql/item_cmpfunc.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* Copyright (c) 2000, 2013, Oracle and/or its affiliates.
2-
Copyright (c) 2009, 2016, MariaDB
2+
Copyright (c) 2009, 2019, MariaDB
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License as published by
@@ -4678,7 +4678,7 @@ Item_cond::eval_not_null_tables(void *opt_arg)
46784678
if (item->const_item() && !item->with_param &&
46794679
!item->is_expensive() && !cond_has_datetime_is_null(item))
46804680
{
4681-
if (item->val_int() == is_and_cond && top_level())
4681+
if (item->eval_const_cond() == is_and_cond && top_level())
46824682
{
46834683
/*
46844684
a. This is "... AND true_cond AND ..."

0 commit comments

Comments
 (0)