Browse Source

MDEV-5778: Valgrind failure in innodb_ext_keys.test

- Fix valgrind failure: make test_if_order_by_key() account for extended keys 
  feature.
pull/22/head
Sergey Petrunya 12 years ago
parent
commit
24d9bf8227
  1. 2
      sql/sql_select.cc

2
sql/sql_select.cc

@ -19492,7 +19492,7 @@ static int test_if_order_by_key(ORDER *order, TABLE *table, uint idx,
for (; const_key_parts & 1 ; const_key_parts>>= 1)
key_part++;
if (key_part == key_part_end)
if (key_part >= key_part_end)
{
/*
We are at the end of the key. Check if the engine has the primary

Loading…
Cancel
Save