1
0
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:
Alexander Barkov
2013-08-08 11:36:03 +04:00
parent 8de120e2b9
commit e6a6f653a9
3 changed files with 38 additions and 1 deletions

View File

@@ -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 &&