mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-4512 Valgrind warnings in my_long10_to_str_8bit on INTERVAL and DATE_ADD with incorrect types
Fixing a typo: bit AND (&) was erroneously used instead of logical AND (&&)
This commit is contained in:
@@ -1960,7 +1960,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 &&
|
||||
|
Reference in New Issue
Block a user