summaryrefslogtreecommitdiff
path: root/sql/ha_partition.cc
diff options
context:
space:
mode:
authorMattias Jonsson <mattias.jonsson@sun.com>2008-12-04 10:47:25 +0100
committerMattias Jonsson <mattias.jonsson@sun.com>2008-12-04 10:47:25 +0100
commit8adc9d1b86317fceb57611565dc344e5baa05eb0 (patch)
tree23f0a35142902d29fe8cdf73ca4f8eccc19ec068 /sql/ha_partition.cc
parent014143e8588c4313ccf10e269aa34a997f5772b6 (diff)
downloadmariadb-git-8adc9d1b86317fceb57611565dc344e5baa05eb0.tar.gz
Bug#40515: Query on a partitioned table does not return
'lock wait timeout exceeded' Problem was a bug in the implementation of scan in partitioning which masked the error code from the partition's handler. Fixed by returning the value from the underlying handler. mysql-test/suite/parts/r/partition_special_innodb.result: Bug#40515: Query on a partitioned table does not return 'lock wait timeout exceeded' Updated test result mysql-test/suite/parts/t/partition_special_innodb.test: Bug#40515: Query on a partitioned table does not return 'lock wait timeout exceeded' Updated test case for covering the bug. sql/ha_partition.cc: Bug#40515: Query on a partitioned table does not return 'lock wait timeout exceeded' Removing redeclaration of result variable, which resulted in never returning the correct return value.
Diffstat (limited to 'sql/ha_partition.cc')
-rw-r--r--sql/ha_partition.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc
index 0c96b06381c..852f437b213 100644
--- a/sql/ha_partition.cc
+++ b/sql/ha_partition.cc
@@ -3431,7 +3431,7 @@ int ha_partition::rnd_next(uchar *buf)
while (TRUE)
{
- int result= file->rnd_next(buf);
+ result= file->rnd_next(buf);
if (!result)
{
m_last_part= part_id;