From a730bb9cafd7f58b3c5cbce0fa6d4bc8c31fffdf Mon Sep 17 00:00:00 2001 From: Sergey Petrunya <psergey@askmonty.org> Date: Sat, 11 Sep 2010 21:56:43 +0400 Subject: [PATCH] Fix a typo bug in SimpleBuffer.read() --- sql/multi_range_read.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/multi_range_read.cc b/sql/multi_range_read.cc index ba12b520a25..2b43a880564 100644 --- a/sql/multi_range_read.cc +++ b/sql/multi_range_read.cc @@ -356,7 +356,7 @@ void SimpleBuffer::setup_reading(uchar **data1, size_t len1, bool SimpleBuffer::read() { - if (!have_data(read_size1 + read_ptr2? read_size2 : 0)) + if (!have_data(read_size1 + (read_ptr2? read_size2 : 0))) return TRUE; *read_ptr1 =read(read_size1); if (read_ptr2) -- 2.30.9