summaryrefslogtreecommitdiff
path: root/sql/sql_update.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2004-03-20 13:36:26 +0200
committerbell@sanja.is.com.ua <>2004-03-20 13:36:26 +0200
commitd095d4753ea2dad809f9e9d0195e46e8e87fd433 (patch)
treede1ab82158f22c98608b574edb706c1f3de591b5 /sql/sql_update.cc
parentede07fcdcf258fcfb296605dfade9531f3855339 (diff)
downloadmariadb-git-d095d4753ea2dad809f9e9d0195e46e8e87fd433.tar.gz
after review changes
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r--sql/sql_update.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index 42dd0895132..6242a03867b 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -689,7 +689,7 @@ multi_update::initialize_tables(JOIN *join)
{
TABLE *table=table_ref->table;
uint cnt= table_ref->shared;
- Item_field *If;
+ Item_field *ifield;
List<Item> temp_fields= *fields_for_table[cnt];
ORDER group;
@@ -713,10 +713,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, &my_charset_bin);
- if (!(If= new Item_field(((Field *) &offset), 1)))
+ if (!(ifield= new Item_field(((Field *) &offset))))
DBUG_RETURN(1);
- If->maybe_null=0;
- if (temp_fields.push_front(If))
+ ifield->maybe_null= 0;
+ if (temp_fields.push_front(ifield))
DBUG_RETURN(1);
/* Make an unique key over the first field to avoid duplicated updates */