mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge gleb.loc:/work/bk/PA/5.0-opt-32335
into gleb.loc:/work/bk/5.1-opt mysql-test/r/select.result: Auto merged mysql-test/t/select.test: Auto merged sql/item_cmpfunc.cc: Merge with 5.0-opt.
This commit is contained in:
@ -4307,6 +4307,12 @@ c3
|
|||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
DROP TABLE t2;
|
DROP TABLE t2;
|
||||||
|
|
||||||
|
CREATE TABLE t1 (c1 BIGINT NOT NULL);
|
||||||
|
INSERT INTO t1 (c1) VALUES (1);
|
||||||
|
SELECT * FROM t1 WHERE c1 > NULL + 1;
|
||||||
|
c1
|
||||||
|
DROP TABLE t1;
|
||||||
|
|
||||||
End of 5.0 tests
|
End of 5.0 tests
|
||||||
create table t1(a INT, KEY (a));
|
create table t1(a INT, KEY (a));
|
||||||
INSERT INTO t1 VALUES (1),(2),(3),(4),(5);
|
INSERT INTO t1 VALUES (1),(2),(3),(4),(5);
|
||||||
|
@ -3650,6 +3650,17 @@ DROP TABLE t2;
|
|||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug #32335: Error on BIGINT > NULL + 1
|
||||||
|
#
|
||||||
|
|
||||||
|
CREATE TABLE t1 (c1 BIGINT NOT NULL);
|
||||||
|
INSERT INTO t1 (c1) VALUES (1);
|
||||||
|
SELECT * FROM t1 WHERE c1 > NULL + 1;
|
||||||
|
DROP TABLE t1;
|
||||||
|
|
||||||
|
--echo
|
||||||
|
|
||||||
--echo End of 5.0 tests
|
--echo End of 5.0 tests
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -398,7 +398,7 @@ static bool convert_constant_item(THD *thd, Field *field, Item **item)
|
|||||||
thd->variables.sql_mode= (orig_sql_mode & ~MODE_NO_ZERO_DATE) |
|
thd->variables.sql_mode= (orig_sql_mode & ~MODE_NO_ZERO_DATE) |
|
||||||
MODE_INVALID_DATES;
|
MODE_INVALID_DATES;
|
||||||
thd->count_cuted_fields= CHECK_FIELD_IGNORE;
|
thd->count_cuted_fields= CHECK_FIELD_IGNORE;
|
||||||
if (!(*item)->save_in_field(field, 1) && !((*item)->null_value))
|
if (!(*item)->is_null() && !(*item)->save_in_field(field, 1))
|
||||||
{
|
{
|
||||||
Item *tmp= new Item_int_with_ref(field->val_int(), *item,
|
Item *tmp= new Item_int_with_ref(field->val_int(), *item,
|
||||||
test(field->flags & UNSIGNED_FLAG));
|
test(field->flags & UNSIGNED_FLAG));
|
||||||
|
Reference in New Issue
Block a user