summaryrefslogtreecommitdiff
path: root/sql
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
commite24398ee42c05f6e0589d2c27cb2ab4593b74ad4 (patch)
tree650a6f2ff8811bc275b9b6fd16c5305094a102ae /sql
parent49b7a1f48d4e263e572df825ab89004893963f87 (diff)
downloadmariadb-git-e24398ee42c05f6e0589d2c27cb2ab4593b74ad4.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')
-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
{