summaryrefslogtreecommitdiff
path: root/sql/ha_isammrg.cc
diff options
context:
space:
mode:
authormonty@butch. <>2002-11-07 03:54:00 +0200
committermonty@butch. <>2002-11-07 03:54:00 +0200
commita2bdf9265f3a0874f8d58bec690da4af07bca4cb (patch)
tree2cbd26b72e2ab9ce6d8a7e6cf96fab865fec9834 /sql/ha_isammrg.cc
parent5333cfb4298899c0985fc07f229c99866ef656cc (diff)
downloadmariadb-git-a2bdf9265f3a0874f8d58bec690da4af07bca4cb.tar.gz
Portability fixes for Fortre C++ 5.0 (on Sun) in 32 and 64 bit modes.
Diffstat (limited to 'sql/ha_isammrg.cc')
-rw-r--r--sql/ha_isammrg.cc12
1 files changed, 7 insertions, 5 deletions
diff --git a/sql/ha_isammrg.cc b/sql/ha_isammrg.cc
index b110ffba2f9..94e394e7665 100644
--- a/sql/ha_isammrg.cc
+++ b/sql/ha_isammrg.cc
@@ -190,13 +190,15 @@ THR_LOCK_DATA **ha_isammrg::store_lock(THD *thd,
THR_LOCK_DATA **to,
enum thr_lock_type lock_type)
{
- MRG_TABLE *table;
+ MRG_TABLE *open_table;
- for (table=file->open_tables ; table != file->end_table ; table++)
+ for (open_table=file->open_tables ;
+ open_table != file->end_table ;
+ open_table++)
{
- *(to++)= &table->table->lock;
- if (lock_type != TL_IGNORE && table->table->lock.type == TL_UNLOCK)
- table->table->lock.type=lock_type;
+ *(to++)= &open_table->table->lock;
+ if (lock_type != TL_IGNORE && open_table->table->lock.type == TL_UNLOCK)
+ open_table->table->lock.type=lock_type;
}
return to;
}