summaryrefslogtreecommitdiff
path: root/sql/ha_partition.cc
diff options
context:
space:
mode:
authorMattias Jonsson <mattias.jonsson@oracle.com>2011-01-24 13:41:44 +0100
committerMattias Jonsson <mattias.jonsson@oracle.com>2011-01-24 13:41:44 +0100
commitfd5782dca76e7c6e2bfa64884d705d59f9aa848e (patch)
tree650a6f2ff8811bc275b9b6fd16c5305094a102ae /sql/ha_partition.cc
parent245c3f497a299af4d2356d817a3fd5afa58dd1ee (diff)
downloadmariadb-git-fd5782dca76e7c6e2bfa64884d705d59f9aa848e.tar.gz
Bug#59297: Can't find record in 'tablename' on update inner join
Regression introduced in bug#52455. Problem was that the fixed function did not set the last used partition variable, resulting in wrong partition used when storing the position of the newly retrieved row. Fixed by setting the last used partition in ha_partition::index_read_idx_map.
Diffstat (limited to 'sql/ha_partition.cc')
-rw-r--r--sql/ha_partition.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc
index 7bcbd241541..f55c48189fe 100644
--- a/sql/ha_partition.cc
+++ b/sql/ha_partition.cc
@@ -4317,6 +4317,7 @@ int ha_partition::index_read_idx_map(uchar *buf, uint index,
break;
}
}
+ m_last_part= part;
}
else
{