mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
mysql-test/r/func_set.result:
merge
This commit is contained in:
parent
7c85205d19
commit
dafa458262
3 changed files with 35 additions and 1 deletions
|
@ -201,3 +201,22 @@ NULL
|
|||
1,2,3,4,5,6,7
|
||||
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# Start of 5.3 tests
|
||||
#
|
||||
#
|
||||
# MDEV-4512 Valgrind warnings in my_long10_to_str_8bit on INTERVAL and DATE_ADD with incorrect types
|
||||
#
|
||||
CREATE TABLE t1 (pk INT PRIMARY KEY);
|
||||
INSERT INTO t1 VALUES (10),(11);
|
||||
SELECT INTERVAL( 9, 1, DATE_ADD( pk, INTERVAL pk MINUTE_SECOND ), 9, 8, 3, 5, 2, 1 ) FROM t1;
|
||||
INTERVAL( 9, 1, DATE_ADD( pk, INTERVAL pk MINUTE_SECOND ), 9, 8, 3, 5, 2, 1 )
|
||||
8
|
||||
8
|
||||
Warnings:
|
||||
Warning 1292 Incorrect datetime value: '10'
|
||||
Warning 1292 Incorrect datetime value: '11'
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# End of 5.3 tests
|
||||
#
|
||||
|
|
|
@ -119,3 +119,18 @@ SELECT * FROM t1 WHERE FIND_IN_SET(NULL, NULL) IS UNKNOWN;
|
|||
|
||||
--echo
|
||||
DROP TABLE t1;
|
||||
--echo #
|
||||
--echo # Start of 5.3 tests
|
||||
--echo #
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-4512 Valgrind warnings in my_long10_to_str_8bit on INTERVAL and DATE_ADD with incorrect types
|
||||
--echo #
|
||||
CREATE TABLE t1 (pk INT PRIMARY KEY);
|
||||
INSERT INTO t1 VALUES (10),(11);
|
||||
SELECT INTERVAL( 9, 1, DATE_ADD( pk, INTERVAL pk MINUTE_SECOND ), 9, 8, 3, 5, 2, 1 ) FROM t1;
|
||||
DROP TABLE t1;
|
||||
|
||||
--echo #
|
||||
--echo # End of 5.3 tests
|
||||
--echo #
|
||||
|
|
|
@ -2006,7 +2006,7 @@ void Item_func_interval::fix_length_and_dec()
|
|||
for (uint i= 1; not_null_consts && i < rows; i++)
|
||||
{
|
||||
Item *el= row->element_index(i);
|
||||
not_null_consts&= el->const_item() & !el->is_null();
|
||||
not_null_consts&= el->const_item() && !el->is_null();
|
||||
}
|
||||
|
||||
if (not_null_consts &&
|
||||
|
|
Loading…
Add table
Reference in a new issue