diff options
author | Sinisa@sinisa.nasamreza.org <> | 2003-08-20 15:33:21 +0300 |
---|---|---|
committer | Sinisa@sinisa.nasamreza.org <> | 2003-08-20 15:33:21 +0300 |
commit | fb774125e807de66294da40aaabc596d444e1d93 (patch) | |
tree | 8fab9476aeb7182e7dda366725f8e743cd6e3f6b /sql/sql_update.cc | |
parent | 299cef5df7fa189d915a2888339a3b274cb453e8 (diff) | |
download | mariadb-git-fb774125e807de66294da40aaabc596d444e1d93.tar.gz |
item_func.h:
Fix for a bug with LEAST() in WHERE clause
ha_innodb.cc:
Fix for a configure bug
multi_update.result, multi_update.test:
Fix for the update with NULL's in the result set
sql_update.cc:
Fix for the update with NULL's in the result set
Fix for the update with NULL's in the result set
Fix for the update with NULL's in the result set
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r-- | sql/sql_update.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc index 3179c8e0f24..2f3f917a962 100644 --- a/sql/sql_update.cc +++ b/sql/sql_update.cc @@ -575,6 +575,7 @@ multi_update::initialize_tables(JOIN *join) { TABLE *table=table_ref->table; uint cnt= table_ref->shared; + Item_field *If; List<Item> temp_fields= *fields_for_table[cnt]; ORDER group; @@ -598,7 +599,10 @@ multi_update::initialize_tables(JOIN *join) /* ok to be on stack as this is not referenced outside of this func */ Field_string offset(table->file->ref_length, 0, "offset", table, 1); - if (temp_fields.push_front(new Item_field(((Field *) &offset)))) + if (!(If=new Item_field(((Field *) &offset)))) + DBUG_RETURN(1); + If->maybe_null=0; + if (temp_fields.push_front(If)) DBUG_RETURN(1); /* Make an unique key over the first field to avoid duplicated updates */ |