mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Fix and testcase for BUG#3367.
sql/sql_prepare.cc: value_is_set should be true for NULL value, as for non-NULL values.
This commit is contained in:
@ -465,7 +465,7 @@ static bool insert_params_withlog(Prepared_statement *stmt, uchar *null_array,
|
||||
{
|
||||
if (is_param_null(null_array, it - begin))
|
||||
{
|
||||
param->maybe_null= param->null_value= 1;
|
||||
param->maybe_null= param->null_value= param->value_is_set= 1;
|
||||
res= &my_null_string;
|
||||
}
|
||||
else
|
||||
@ -503,7 +503,7 @@ static bool insert_params(Prepared_statement *stmt, uchar *null_array,
|
||||
if (!param->long_data_supplied)
|
||||
{
|
||||
if (is_param_null(null_array, it - begin))
|
||||
param->maybe_null= param->null_value= 1;
|
||||
param->maybe_null= param->null_value= param->value_is_set= 1;
|
||||
else
|
||||
{
|
||||
param->maybe_null= param->null_value= 0;
|
||||
|
Reference in New Issue
Block a user