[Maria-developers] Please review MDEV-10500 CASE/IF Statement returns multiple values and shifts further result values to the next column
Hi, Alexander! On Aug 08, Alexander Barkov wrote:
Hi Serg,
Please review a patch for MDEV-10500. Thanks.
I think it's a caller's job to test for null_value. Apparently, sometimes it tests for the return value being NULL, isn't that wrong? Regards, Sergei Chief Architect MariaDB and security@mariadb.org
Hi Sergei, On 08/08/2016 03:35 PM, Sergei Golubchik wrote:
Hi, Alexander!
On Aug 08, Alexander Barkov wrote:
Hi Serg,
Please review a patch for MDEV-10500. Thanks.
I think it's a caller's job to test for null_value.
Apparently, sometimes it tests for the return value being NULL, isn't that wrong?
As discussed on IRC, there are many places assuming that null_vallue==true is always in sync with val_decimal()/val_str() returning NULL. So it's safer to fix Item_sum_sum::val_decimal() rather than all callers.
Regards, Sergei Chief Architect MariaDB and security@mariadb.org
participants (2)
-
Alexander Barkov
-
Sergei Golubchik